/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #4A90E2;
    --color-secondary: #50C9C3;
    --color-accent: #FFD93D;
    --color-bg-light: #F8F9FA;
    --color-bg-white: #FFFFFF;
    --color-text-dark: #2C3E50;
    --color-text-gray: #5A6C7D;
    --color-border: #E1E8ED;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
}

html {
    overflow-x: hidden;
    height: 100%;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
}

/* Применяем Montserrat Alternates ко всем заголовкам */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat Alternates', sans-serif;
}

/* Оптимизация изображений */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Оптимизация анимаций для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    min-width: 0;
}

/* Оптимизация производительности */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Улучшение читаемости текста */
p, li, span, div {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero-блок */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-image: url('/img/11753742_l-2048x1362-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    padding: 0;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Lazy loading для изображений обрабатывается через атрибут loading="lazy" в HTML */

/* Навигация — всегда зафиксирована сверху (ПК и мобильные) */
.hero-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: var(--spacing-sm) 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    background: transparent;
}

.hero-nav.nav-fixed {
    background: rgba(18, 22, 30, 0.45);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.nav-logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Скрываем иконки соцсетей при разрешении меньше 1200px */
/* Планшеты (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --spacing-xs: 0.5rem;
        --spacing-sm: 0.9rem;
        --spacing-md: 1.8rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3rem;
    }
    
    .container {
        max-width: 960px;
        padding: 0 var(--spacing-md);
    }
    
    .section-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }
    
    .bullets-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .photo-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .groups-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .formats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nutrition-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .babies-directions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Десктоп средний (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .nav-social {
        display: none;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Десктоп большой (1201px+) */
@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
    }
}

.social-icon {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.social-icon:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: rem;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover {
    color: #ffffff;
}

.nav-item-dropdown {
    position: relative;
    display: none !important;
}

.nav-menu-trigger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 150px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.nav-menu-trigger-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    margin: 0 auto;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 8px 0 0;
    padding: var(--spacing-xs) 0;
    min-width: 220px;
    list-style: none;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.nav-item-dropdown.open .nav-dropdown,
.nav-menu-trigger[aria-expanded="true"] + .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    margin: 0;
}

.nav-dropdown-link {
    display: block;
    padding: 0.5rem 1.25rem;
    padding-left: 15px !important;
    color: var(--color-text-dark) !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-link:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.nav-contact-main {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.nav-online {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #7CFC7C;
}

.nav-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
}

.nav-online--visible {
    display: inline-flex;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 150px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.6);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
    transition: right 0.3s ease;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--color-text-dark);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.drawer-close:hover {
    background-color: var(--color-bg-light);
}

.mobile-drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mobile-drawer-menu a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: var(--spacing-sm) 0;
}

.mobile-drawer-menu a:hover {
    color: var(--color-primary);
}

.mobile-drawer-header h3 {
    color: var(--color-text-dark);
    margin: 0;
    font-size: 1.25rem;
}

.mobile-drawer-contact {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mobile-drawer .nav-social {
    gap: var(--spacing-sm);
}

.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.mobile-drawer .nav-social .social-icon {
    color: var(--color-primary);
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: none;
}

.mobile-drawer-overlay.open {
    display: block;
}

.nav-phone {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-phone:hover {
    color: var(--color-accent);
}

.nav-btn {
    padding: 0.3rem 2rem;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    border-radius: 150px;
    border: 2px solid #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #ffffff;
    color: var(--color-text-dark);
    transform: translateY(-2px);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Подстраницы (404, page и т.д.): первый экран = только высота меню, с притемнением */
.hero.hero--subpage {
    min-height: 80px;
    height: auto;
    padding-bottom: 0;
    display: block;
    align-items: stretch;
}
.hero.hero--subpage .hero-overlay {
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px var(--spacing-md) var(--spacing-xl);
    display: flex;
    align-items: center;
    flex: 1;
}

.hero-text-wrapper {
    width: 100%;
    max-width: 810px;
    text-align: left;
}

.hero-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    max-width: 530px;
    word-break: normal;
    hyphens: none;
    overflow-wrap: break-word;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 150px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: #ffffff;
    color: #1a1a2e;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.hero-note {
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent) 0%, #FFE55C 100%);
    color: var(--color-text-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 217, 61, 0.4);
    border: 3px solid #FFC700;
    animation: pulse-glow 2s ease-in-out infinite;
}

.hero-address-block {
    margin-top: var(--spacing-md);
    width: 100%;
    max-width: 700px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.hero-address-main {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-accent);
}

.hero-address-image {
    height: 100%;
    max-height: 150px;
    width: auto;
    flex-shrink: 0;
    align-self: flex-start;
    object-fit: contain;
}

.hero-address-content {
    flex: 1;
    min-width: 200px;
}

.hero-address-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.4;
}

.hero-addresses {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-address-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 3;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

section[id] {
    scroll-margin-top: 90px;
}
section {
    padding: var(--spacing-lg) 0;
}

/* Блок с буллитами */
.bullets {
    background-color: var(--color-bg-white);
    padding: var(--spacing-lg) 0;
}

.bullets .container {
    padding-left: calc(var(--spacing-md) / 2);
    padding-right: calc(var(--spacing-md) / 2);
}

.bullets-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.bullet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
    padding: calc(var(--spacing-lg) / 2);
    background: linear-gradient(135deg, #E8F4F8 0%, #F0F8F4 100%);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.bullet-item:nth-child(1) {
    background: linear-gradient(135deg, #E8F4F8 0%, #E0F2F5 100%);
}

.bullet-item:nth-child(1):hover {
    border-color: var(--color-primary);
}

.bullet-item:nth-child(2) {
    background: linear-gradient(135deg, #F0F8F4 0%, #E8F5E8 100%);
}

.bullet-item:nth-child(2):hover {
    border-color: var(--color-secondary);
}

.bullet-item:nth-child(3) {
    background: linear-gradient(135deg, #FFF8E8 0%, #FFF5E0 100%);
}

.bullet-item:nth-child(3):hover {
    border-color: var(--color-accent);
}

.bullet-item:nth-child(4) {
    background: linear-gradient(135deg, #F5E8F8 0%, #F0E5F5 100%);
}

.bullet-item:nth-child(4):hover {
    border-color: #9B6B9E;
}

.bullet-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bullet-icon {
    font-size: 4.5rem;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.bullet-item:nth-child(1) .bullet-icon {
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F0 100%);
}

.bullet-item:nth-child(2) .bullet-icon {
    background: linear-gradient(135deg, #50C9C3 0%, #60D9D3 100%);
}

.bullet-item:nth-child(3) .bullet-icon {
    background: linear-gradient(135deg, #FFD93D 0%, #FFE55C 100%);
}

.bullet-item:nth-child(4) .bullet-icon {
    background: linear-gradient(135deg, #9B6B9E 0%, #B07DB3 100%);
}

.bullet-content {
    flex: 1;
    width: 100%;
}

.bullet-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.bullet-text {
    font-size: 1.05rem;
    color: var(--color-text-gray);
    line-height: 1.6;
    margin: 0;
}

.section-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: clamp(1.8rem, 4vw, 4.0rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
    padding: var(--spacing-sm) 0;
    letter-spacing: 0.5px;line-height: 1.3;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 2px;
}

.subsection-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--color-text-gray);
    margin-top: calc(var(--spacing-sm) * -1);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* О садике и нейроподходе */
.about {
    background-color: var(--color-bg-white);
    background-image: url('https://franchise.umka-club.ru/images/reasons/reasons__decor2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    margin-top: var(--spacing-lg);
}

/* Скролл-блок с ссылками на разделы внутри .about-buttons */
.about-buttons .about-nav-tiles-scroll {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.about-buttons .about-nav-tiles-scroll::-webkit-scrollbar {
    width: 6px;
}

.about-buttons .about-nav-tiles-scroll::-webkit-scrollbar-track {
    background: var(--color-border);
    border-radius: 3px;
}

.about-buttons .about-nav-tiles-scroll::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

/* Ссылки разделов в том же стиле, что и основные кнопки */
.about-buttons .about-nav-tiles-scroll .about-nav-btn {
    justify-content: center;
}

.about-buttons .about-nav-tiles-scroll .about-nav-btn .btn-text {
    font-size: 1rem;
}

.about-buttons.visible .about-nav-tiles-scroll .about-nav-btn:nth-child(1) { transition-delay: 0.3s; }
.about-buttons.visible .about-nav-tiles-scroll .about-nav-btn:nth-child(2) { transition-delay: 0.4s; }
.about-buttons.visible .about-nav-tiles-scroll .about-nav-btn:nth-child(3) { transition-delay: 0.5s; }
.about-buttons.visible .about-nav-tiles-scroll .about-nav-btn:nth-child(4) { transition-delay: 0.6s; }
.about-buttons.visible .about-nav-tiles-scroll .about-nav-btn:nth-child(5) { transition-delay: 0.7s; }
.about-buttons.visible .about-nav-tiles-scroll .about-nav-btn:nth-child(6) { transition-delay: 0.8s; }
.about-buttons.visible .about-nav-tiles-scroll .about-nav-btn:nth-child(7) { transition-delay: 0.9s; }

.about-text p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    color: var(--color-text-gray);
    line-height: 1.8;
}

.about-text strong {
    color: var(--color-primary);
    font-weight: 600;
}

.about-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 500px;
    height: 100%;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-buttons.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-buttons.visible .about-nav-btn {
    opacity: 1;
    transform: translateX(0);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Анимация для каждой кнопки с задержкой */
.about-nav-btn {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-buttons.visible .about-nav-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.about-buttons.visible .about-nav-btn:nth-child(2) {
    transition-delay: 0.2s;
}

.about-buttons.visible .about-nav-btn:nth-child(3) {
    transition-delay: 0.3s;
}

.about-buttons.visible .about-nav-btn:nth-child(4) {
    transition-delay: 0.4s;
}

.about-buttons.visible .about-nav-btn:nth-child(5) {
    transition-delay: 0.5s;
}

.about-buttons.visible .about-nav-btn:nth-child(6) {
    transition-delay: 0.6s;
}

.about-buttons.visible .about-nav-btn:nth-child(7) {
    transition-delay: 0.7s;
}

.about-nav-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-xs);
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 150px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    flex: 1;
}

.about-nav-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #357ABD 0%, #40B9B3 100%);
}

.about-nav-btn-special {
    background: linear-gradient(135deg, var(--color-accent) 0%, #FFE55C 100%);
    color: var(--color-text-dark);
    font-weight: 700;
    border: 3px solid #FFC700;
    box-shadow: 0 4px 20px rgba(255, 217, 61, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    width: auto;
    align-self: center;
    margin: 0 auto;
}

.about-nav-btn-special::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

.about-nav-btn-special:hover {
    background: linear-gradient(135deg, #FFC700 0%, #FFD93D 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(255, 217, 61, 0.6);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 217, 61, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 217, 61, 0.7);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.btn-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-nav-btn-special .btn-icon {
    font-size: 3rem;
    animation: roll 2s ease-in-out infinite;
}

@keyframes roll {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(-15deg) translateY(-3px);
    }
    50% {
        transform: rotate(0deg) translateY(0);
    }
    75% {
        transform: rotate(15deg) translateY(-3px);
    }
}

.btn-text {
    flex: 1;
    text-align: left;
}

/* Малочисленные группы */
.groups {
    position: relative;
    background-color: var(--color-bg-light);
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.groups-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.groups-wave-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

.groups-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.groups-wave-bottom svg {
    width: 100%;
    height: 100%;
    display: block;
}

.groups .container {
    position: relative;
    z-index: 2;
    padding: 0 var(--spacing-md);
}

.groups-card {
    padding: 80px var(--spacing-lg) var(--spacing-lg);
    width: 100%;
}

.groups-list-wrapper {
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 0 var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.groups-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
    margin: 0 auto;
}

.class-card {
    position: relative;
    overflow: hidden;
    /* border-radius: 18px; */
    /* background: #111111; */
    cursor: pointer;
    min-height: 400px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    /* box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); */
    transition: box-shadow 0.4s ease;
}

.class-card-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.class-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.class-card-overlay {
    position: relative;
    z-index: 1;
    margin-top: auto;
    width: 100%;
    padding: 1.25rem 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.88) 20%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.25) 65%, transparent 100%);
    color: #ffffff;
}

.class-card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.class-card-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 0.9rem;
    line-height: 1.4;
}

.class-card-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.class-card-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 150px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.class-card-btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(74, 144, 226, 0.45);
    border-radius: 150px;
}

.class-card-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
    color: #fff;
}

.class-card-btn-more {
    display: none; /* временно скрыто */
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 150px;
}

.class-card-btn-more:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

.class-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.class-card:hover .class-card-image img {
    transform: scale(1.05);
}

.group-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.group-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--border-radius);
}

.group-item:hover .group-image::after {
    opacity: 1;
}

.group-item:hover .group-image {
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.25);
    transform: scale(1.02);
}

.group-photo {
    width: 100%;
    height: 262.5px;
    max-height: 262.5px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.group-item:hover .group-photo {
    transform: scale(1.05);
}

.icon-circle {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.group-text {
    width: 100%;
}

.group-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.group-description {
    font-size: 1.05rem;
    color: var(--color-text-gray);
    line-height: 1.7;
    margin: 0;
    transition: color 0.3s ease;
}

.group-item:hover .group-description {
    color: var(--color-text-dark);
}

/* Питание */
.nutrition {
    background-color: var(--color-bg-white);
    background-image: url('https://franchise.umka-club.ru/images/reasons/reasons__decor2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.nutrition-meals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

.nutrition-meal-card {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--color-bg-white);
    text-align: center;
    width: auto;
    min-width: fit-content;
}

.meal-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.nutrition-list {
    list-style: none;
    margin: var(--spacing-lg) auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.nutrition-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--color-text-gray);
}

.nutrition-list li span:not(.nutrition-icon) {
    display: block;
}

.nutrition-icon {
    font-size: 6rem;
    flex-shrink: 0;
}

.about-mobile-btn-wrapper {
    display: none;
}

.groups-mobile-btn-wrapper,
.formats-mobile-btn-wrapper {
    display: none;
}

/* Фотогалерея */
.photo-gallery {
    width: 100%;
    padding: var(--spacing-sm);
    margin: 0;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm);
    width: 100%;
}

.gallery-item {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Модальное окно для просмотра изображения */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--border-radius);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
    color: var(--color-primary);
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-primary);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-content {
    cursor: default;
}

/* 15 видов занятий - Расписание */
.activities {
    background-color: var(--color-bg-light);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.activities-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.activities-wave-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

.activities-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.activities-wave-bottom svg {
    width: 100%;
    height: 100%;
    display: block;
}

.activities .container {
    position: relative;
    z-index: 2;
    padding: var(--spacing-xl) var(--spacing-md);
}

.schedule-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(90deg, #FF6B9D 0%, #FFB3D1 50%, #FF6B9D 100%);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    z-index: 1;
}


.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.schedule-form-card .schedule-day-title {
    text-transform: none;
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.schedule-day-card {
    background: linear-gradient(135deg, #E8F4F8 0%, #F0F8F4 100%);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    border: 2px solid transparent;
}

.schedule-day-card:nth-child(1) {
    background: linear-gradient(135deg, #E8F4F8 0%, #E0F2F5 100%);
}

.schedule-day-card:nth-child(1):hover {
    border-color: var(--color-primary);
}

.schedule-day-card:nth-child(2) {
    background: linear-gradient(135deg, #F0F8F4 0%, #E8F5E8 100%);
}

.schedule-day-card:nth-child(2):hover {
    border-color: var(--color-secondary);
}

.schedule-day-card:nth-child(3) {
    background: linear-gradient(135deg, #FFF8E8 0%, #FFF5E0 100%);
}

.schedule-day-card:nth-child(3):hover {
    border-color: var(--color-accent);
}

.schedule-day-card:nth-child(4) {
    background: linear-gradient(135deg, #F5E8F8 0%, #F0E0F5 100%);
}

.schedule-day-card:nth-child(4):hover {
    border-color: #9B59B6;
}

.schedule-day-card:nth-child(5) {
    background: linear-gradient(135deg, #E8F0F8 0%, #E0E8F5 100%);
}

.schedule-day-card:nth-child(5):hover {
    border-color: #3498DB;
}

.schedule-day-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.schedule-day-card::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    border-radius: 0 0 12px 0;
    transform: rotate(5deg);
}


.schedule-pin {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #ff4444 0%, #cc0000 100%);
    border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.schedule-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.schedule-day-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: var(--spacing-xs);
}

.schedule-activities {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-activities li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
    color: var(--color-text-dark);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    text-transform: uppercase;
}

.schedule-activities li span:not(.activity-icon-small) {
    text-transform: uppercase;
}

.activity-icon-small {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

/* Форма записи */
.schedule-form-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff !important;
}

.schedule-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.schedule-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.schedule-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.schedule-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.schedule-input.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.schedule-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--color-text-gray);
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.schedule-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.schedule-checkbox-label span {
    flex: 1;
}

.schedule-checkbox-label.error {
    border: 2px solid #e74c3c;
    border-radius: var(--border-radius);
    padding: var(--spacing-xs);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
}

.privacy-link {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.privacy-link:hover {
    border-bottom-color: var(--color-primary);
}

.schedule-submit-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    border-radius: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.schedule-submit-btn:active {
    transform: translateY(0);
}

/* Режим дня */
.schedule {
    background-color: var(--color-bg-white);
    background-image: url('https://franchise.umka-club.ru/images/reasons/reasons__decor2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: var(--spacing-xl) 0;
}

.schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.schedule-time-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: #fff;
    border-radius: var(--border-radius);
    border: 2px solid rgba(74, 144, 226, 0.2);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.schedule-time-item:nth-child(1) { animation-delay: 0.1s; }
.schedule-time-item:nth-child(2) { animation-delay: 0.2s; }
.schedule-time-item:nth-child(3) { animation-delay: 0.3s; }
.schedule-time-item:nth-child(4) { animation-delay: 0.4s; }
.schedule-time-item:nth-child(5) { animation-delay: 0.5s; }
.schedule-time-item:nth-child(6) { animation-delay: 0.6s; }
.schedule-time-item:nth-child(7) { animation-delay: 0.7s; }
.schedule-time-item:nth-child(8) { animation-delay: 0.8s; }
.schedule-time-item:nth-child(9) { animation-delay: 0.9s; }
.schedule-time-item:nth-child(10) { animation-delay: 1s; }
.schedule-time-item:nth-child(11) { animation-delay: 1.1s; }
.schedule-time-item:nth-child(12) { animation-delay: 1.2s; }
.schedule-time-item:nth-child(13) { animation-delay: 1.3s; }
.schedule-time-item:nth-child(14) { animation-delay: 1.4s; }



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-time-item:last-child {
    border-bottom: none;
}

.time-badge {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.3rem;
    min-width: 140px;
    text-align: left;
    letter-spacing: 0.5px;
}

.time-description {
    color: var(--color-text-dark);
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 500;
    flex: 1;text-transform: uppercase;
}

/* Блок отзывов (main__reviews) со слайдером */
.main__reviews.reviews {
    padding: var(--spacing-xl) 0;
    overflow-x: clip;
    overflow-y: visible;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(74, 144, 226, 0.08), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 100%, rgba(80, 201, 195, 0.08), transparent 50%),
        var(--color-bg-light);
}

.reviews__container {
    position: relative;
}

.reviews__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-lg);
}

.reviews__title.section-title {
    margin: 0;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
}

.reviews__subtitle {
    margin: 0.35rem 0 0;
    font-size: 1rem;
    color: var(--color-text-gray);
    max-width: 36rem;
}

.reviews__rating-block {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.7rem;
    text-decoration: none;
    margin-top: 0.35rem;
    padding: 0.7rem 1.1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reviews__rating-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.reviews__rating-value {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
}

.reviews__rating-stars {
    color: #F5B301;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    line-height: 1;
}

.reviews__rating-label {
    width: 100%;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-gray);
}

/* Слайдер на всю ширину экрана */
.reviews__slider-full {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 clamp(10px, 2vw, 28px);
    box-sizing: border-box;
}

.reviews__slider-wrap {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: clamp(8px, 1.2vw, 16px);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.reviews__arrow {
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.reviews__arrow:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.reviews__arrow--prev::before,
.reviews__arrow--next::before {
    content: '';
    width: 11px;
    height: 11px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
}

.reviews__arrow--prev::before {
    transform: rotate(45deg);
    margin-left: 3px;
}

.reviews__arrow--next::before {
    transform: rotate(-135deg);
    margin-right: 3px;
}

.reviews__slider {
    min-width: 0;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    container-type: inline-size;
    container-name: reviews-slider;
}

.reviews__track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    transition: transform 0.35s ease-out;
    will-change: transform;
}

.reviews__card {
    --reviews-gap: 20px;
    --reviews-card-h: 340px;
    flex: 0 0 100cqw;
    width: 100cqw;
    max-width: 100cqw;
    height: var(--reviews-card-h);
    min-height: var(--reviews-card-h);
    max-height: var(--reviews-card-h);
    padding: 1.25rem 1.3rem 1.1rem;
    border-radius: 16px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(225, 232, 237, 0.95);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    user-select: none;
}

@container reviews-slider (min-width: 560px) {
    .reviews__card {
        flex-basis: calc((100cqw - var(--reviews-gap)) / 2);
        width: calc((100cqw - var(--reviews-gap)) / 2);
        max-width: calc((100cqw - var(--reviews-gap)) / 2);
    }
}

@container reviews-slider (min-width: 860px) {
    .reviews__card {
        flex-basis: calc((100cqw - 2 * var(--reviews-gap)) / 3);
        width: calc((100cqw - 2 * var(--reviews-gap)) / 3);
        max-width: calc((100cqw - 2 * var(--reviews-gap)) / 3);
        --reviews-card-h: 350px;
    }
}

@container reviews-slider (min-width: 1180px) {
    .reviews__card {
        flex-basis: calc((100cqw - 3 * var(--reviews-gap)) / 4);
        width: calc((100cqw - 3 * var(--reviews-gap)) / 4);
        max-width: calc((100cqw - 3 * var(--reviews-gap)) / 4);
    }
}

@container reviews-slider (min-width: 1480px) {
    .reviews__card {
        flex-basis: calc((100cqw - 4 * var(--reviews-gap)) / 5);
        width: calc((100cqw - 4 * var(--reviews-gap)) / 5);
        max-width: calc((100cqw - 4 * var(--reviews-gap)) / 5);
    }
}

@container reviews-slider (min-width: 1780px) {
    .reviews__card {
        flex-basis: calc((100cqw - 5 * var(--reviews-gap)) / 6);
        width: calc((100cqw - 5 * var(--reviews-gap)) / 6);
        max-width: calc((100cqw - 5 * var(--reviews-gap)) / 6);
    }
}

.reviews__card-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    align-items: center;
    flex-shrink: 0;
}

.reviews__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    flex-shrink: 0;
}

.reviews__meta {
    min-width: 0;
    text-align: left;
}

.reviews__author {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-dark);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reviews__date {
    font-size: 0.8rem;
    color: var(--color-text-gray);
    margin-top: 0.15rem;
}

.reviews__card-stars {
    color: #F5B301;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.reviews__text {
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-text-dark);
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.reviews__source {
    margin-top: auto;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-gray);
    letter-spacing: 0.02em;
    text-align: left;
}

.reviews__footer {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.reviews__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.reviews__link:hover {
    background-color: var(--color-primary);
    color: #fff;
}

@media (max-width: 900px) {
    .reviews__slider-wrap {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
    }
    .reviews__arrow {
        width: 40px;
        height: 40px;
    }
    .reviews__card {
        --reviews-card-h: 320px;
    }
}

@media (max-width: 640px) {
    .main__reviews.reviews {
        padding: var(--spacing-lg) 0;
    }
    .reviews__title.section-title {
        max-width: 12ch;
        font-size: clamp(1.45rem, 7vw, 2rem);
    }
    .reviews__subtitle {
        font-size: 0.92rem;
    }
    .reviews__rating-block {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
    }
    .reviews__slider-full {
        padding: 0 12px;
    }
    .reviews__slider-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .reviews__arrow {
        display: none;
    }
    .reviews__card {
        --reviews-card-h: 300px;
        padding: 1.1rem;
    }
    .reviews__card-top {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "avatar meta"
            "stars stars";
        row-gap: 0.35rem;
    }
    .reviews__avatar { grid-area: avatar; }
    .reviews__meta { grid-area: meta; }
    .reviews__card-stars {
        grid-area: stars;
        justify-self: start;
    }
    .reviews__text {
        font-size: 0.88rem;
        -webkit-line-clamp: 7;
    }
    .reviews__link {
        width: 100%;
        max-width: 340px;
        box-sizing: border-box;
    }
}

/* Вопрос-ответ */
.faq {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-light);
}

.faq-subtitle {
    max-width: 760px;
    margin: 0 auto;
    margin-top: var(--spacing-sm);
    color: var(--color-text-gray);
    font-size: 1.05rem;
    text-align: center;
}

.faq-list {
    max-width: 900px;
    margin: var(--spacing-lg) auto 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-border);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
}

.faq-question {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    margin-top: var(--spacing-xs);
    color: var(--color-text-gray);
    font-size: 0.98rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .faq {
        padding: var(--spacing-lg) 0;
    }

    .faq-item {
        padding: var(--spacing-sm) var(--spacing-sm);
    }

    .faq-question {
        font-size: 1rem;
    }
}

/* Форматы посещения */
.formats {
    background-color: var(--color-bg-light);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.format-card {
    background-color: var(--color-bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.format-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.format-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.format-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.format-card p {
    color: var(--color-text-gray);
    font-size: 1.05rem;
}

.schedule-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent) 0%, #FFE55C 100%);
    color: var(--color-text-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
    border: 3px solid #FFC700;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* УМКА для самых маленьких */
.babies {
    background-image: url('https://franchise.umka-club.ru/images/reviews/reviews__bg.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.babies .container {
    position: relative;
    z-index: 2;
}

.babies-params {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin: var(--spacing-md) 0 var(--spacing-lg);
}

.param-item {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    color: var(--color-text-gray);
    box-shadow: var(--shadow-sm);
}

.babies-content {
    max-width: 800px;
    margin: var(--spacing-lg) auto;
}

.babies-content p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    color: var(--color-text-gray);
    line-height: 1.8;
}

.babies-directions {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
    max-width: 900px;
    margin: var(--spacing-sm) auto 0;
    padding: 0;
}

.babies-directions li {
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: 2px solid #ffffff;
    border-radius: var(--border-radius);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    padding-left: var(--spacing-md);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.babies-directions li:nth-child(1) { animation-delay: 0.1s; }
.babies-directions li:nth-child(2) { animation-delay: 0.2s; }
.babies-directions li:nth-child(3) { animation-delay: 0.3s; }
.babies-directions li:nth-child(4) { animation-delay: 0.4s; }
.babies-directions li:nth-child(5) { animation-delay: 0.5s; }
.babies-directions li:nth-child(6) { animation-delay: 0.6s; }
.babies-directions li:nth-child(7) { animation-delay: 0.7s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стоимость абонементов */
.pricing-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(165deg, #d0e8f7 0%, #b8dff2 25%, #e8f8f0 50%, #fff4e0 100%);
    position: relative;
}

.pricing-section .section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: #1a365d;
}

.pricing-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--spacing-lg);
    color: #2d3748;
    font-size: 1.08rem;
    line-height: 1.7;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.pricing-card {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 28px rgba(74, 144, 226, 0.22), 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: var(--spacing-lg);
    border: 2px solid rgba(74, 144, 226, 0.4);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(74, 144, 226, 0.28), 0 4px 14px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.pricing-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: var(--spacing-sm);
    color: #2563eb;
}

.pricing-card__icon svg {
    width: 100%;
    height: 100%;
}

.pricing-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

.pricing-card__duration {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2563eb;
}

.pricing-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pricing-list__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--spacing-sm);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(74, 144, 226, 0.25);
    font-size: 1rem;
}

.pricing-list__row:last-child {
    border-bottom: none;
}

.pricing-list__name {
    color: #1a365d;
    flex: 1;
    min-width: 0;
    font-weight: 500;
}

.pricing-list__name small {
    display: block;
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 400;
}

.pricing-list__price {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: #2563eb;
}

.pricing-list__price em {
    font-style: normal;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.pricing-card__btn {
    display: block;
    margin-top: var(--spacing-md);
    padding: 0.75rem var(--spacing-md);
    background: linear-gradient(135deg, #2563eb 0%, var(--color-secondary) 100%);
    color: #fff !important;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 150px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.pricing-card__btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #3bb5ae 100%);
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

/* Планшеты и маленький десктоп (до 992px) */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-buttons .about-nav-tiles-scroll {
        max-height: 260px;
    }
    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    .section-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .pricing-card {
        padding: var(--spacing-md);
    }
    .pricing-list__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Фотогалерея */
.gallery-section {
    background-color: var(--color-bg-white);
    padding: var(--spacing-xl) 0;
    padding-bottom:0px;
}

.gallery-container {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.gallery-container .section-title {
    text-align: center;
    padding: 0 var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-top: 0;
    width: 100%;
    padding: 4px;
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: none;
    transition: all 0.3s ease;
    aspect-ratio: 4 / 3; /* Горизонтальный формат */
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-show-more {
    display: block;
    margin: var(--spacing-lg) auto 0;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    border: none;
    border-radius: 150px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat Alternates', sans-serif;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.gallery-show-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

@media (max-width: 768px) {
    .gallery-container {
        padding: 0 var(--spacing-sm);
    }
    .gallery-container .section-title {
        padding: 0 var(--spacing-md);
    }
    
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        padding: 4px;
    }
    
    .gallery-item {
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
}

.babies-directions li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
    border-color: #ffffff;
    background: linear-gradient(135deg, #357ABD 0%, #40B9B3 100%);
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.15) rotate(180deg);
        opacity: 0.85;
    }
}

/* Записаться на экскурсию + контакты */
.contact {
    background-color: var(--color-bg-light);
    padding: var(--spacing-md) 0;
    position: relative;
    overflow: hidden;
}

.contact-bg-image {
    position: absolute;
    top: -73px;
    left: 0;
    -webkit-filter: drop-shadow(8px 4px 19px rgb(87 87 87 / 5%));
    filter: drop-shadow(8px 4px 19px rgb(87 87 87 / 5%));
    max-width: none;
    height: auto;
    z-index: 0;
    pointer-events: none;
    max-width: 400px;
    animation: floatImage 3s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.contact-info-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin: 0 0 var(--spacing-md) 0;
}

.contact-info-title-large {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin: 0 0 var(--spacing-xs) 0;
}

.contact-info-title-small {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
    color: var(--color-text-gray);
    line-height: 1.4;
    margin: 0;
}

.contact-info-arrow {
    width: 50px;
    height: 50px;
    position: relative;
    margin-top: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-arrow::after {
    content: '→';
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: bold;
    animation: arrowPulse 2s ease-in-out infinite;
    display: block;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(15px);
        opacity: 0.8;
    }
}

.contact-info-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    color: var(--color-text-gray);
    line-height: 1.4;
    margin: 0;
}

.contact-form-wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.contact-form-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-gray);
    line-height: 1.4;
    margin: 0 0 var(--spacing-md) 0;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: #ffffff;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--color-text-gray);
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.form-checkbox-label span {
    flex: 1;
}

.form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    border-radius: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--spacing-sm);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit-btn svg {
    width: 20px;
    height: 20px;
}

.phone-link:hover {
    text-decoration: underline;
}

.addresses-list {
    list-style: none;
    max-width: 600px;
    margin: var(--spacing-lg) auto 0;
    display: grid;
    gap: var(--spacing-sm);
}

.addresses-list li {
    padding: var(--spacing-md);
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    color: var(--color-text-gray);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/* Текстовый блок перед футером */
.text-content-section {
    background-color: var(--color-bg-white);
    padding: var(--spacing-xl) 0;
}

.text-content-section .container {
 
}

.text-content-section h2 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.text-content-section h2:first-child {
    margin-top: 32px;
}

.text-content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-gray);
    
}

/* Footer */
footer {
    background-color: #2d2d2d;
    color: white;
    padding: var(--spacing-sm) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

/* Левая колонка */
.footer-column-left {
    align-items: flex-start;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0;
}

.footer-description {
    font-size: 0.75rem;
    color: white;
    line-height: 1.3;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 0;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-credit {
    color: #fff;
    font-size: 0.7rem;
    margin-top: 0;
    margin-bottom: 0;
}

/* Правая колонка */
.footer-column-right {
    align-items: flex-end;
    text-align: right;
}

.footer-phone {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
   
    transition: opacity 0.3s ease;
    display: block;
    line-height: 1.2;
}

.footer-phone:hover {
    opacity: 0.8;
}

.footer-schedule {
    display: flex;
    flex-direction: column;
   
}

.schedule-item {
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
    color: white;
}

.schedule-label {
    font-size: 0.9rem;
    color: white;
    display: inline;
}

.schedule-time {
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 500;
    display: inline;
}

.schedule-time.schedule-off {
    color: #f15b5b;
}

.footer-sitemap {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
    margin-top: 0;
    display: block;
}

.footer-sitemap:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Мобильные устройства и маленькие планшеты (до 768px) */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 0.4rem;
        --spacing-sm: 0.8rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }

    .bullets .container {
        padding-left: calc(var(--spacing-sm) / 2);
        padding-right: calc(var(--spacing-sm) / 2);
    }

    section {
        padding: var(--spacing-md) 0;
    }

    .hero {
        min-height: 100vh;
        padding: 0;
    }
    
    .groups-wave-top,
    .groups-wave-bottom,
    .activities-wave-top,
    .activities-wave-bottom,
    .hero-wave {
        height: 0;
        display: none;
    }
    
    .activities .container {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .nav-content {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-xs);
        width: 100%;
    }
    
    .nav-logo-section {
        width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        min-width: 0;
    }
    
    .nav-logo-img {
        height: 30px;
        width: auto;
        flex-shrink: 0;
    }
    
    /* Убираем соцсети полностью на мобильных */
    .nav-social {
        display: none !important;
    }
    
    .nav-menu,
    .nav-btn {
        display: none;
    }

    .nav-contact {
        margin-left: 0;
        gap: var(--spacing-xs);
        flex-shrink: 1;
        display: flex;
        align-items: center;
        min-width: 0;
        overflow: hidden;
    }

    .nav-phone {
        font-size: 1.3rem;
        color: #ffffff;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 0;
    }

    .nav-hamburger {
        display: flex;
        flex-shrink: 0;
        margin-left: 0;
    }
    
    .hero-content {
        padding: 80px var(--spacing-sm) var(--spacing-md);
    }
    
    .hero-text-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .hero-buttons .btn {
        min-width: 160px;
    }
    
    .bullets-list {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .bullet-item {
        padding: calc(var(--spacing-md) / 2);
    }
    
    .bullet-title {
        font-size: 1.1rem;
    }
    
    .bullet-text {
        font-size: 1rem;
    }
    

    .about-mobile-btn-wrapper {
        display: block !important;
        margin-bottom: var(--spacing-lg);
        text-align: center;
        width: 100%;
    }
    
    .about-mobile-btn {
        width: 100%;
        max-width: 100%;
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .groups-mobile-btn-wrapper,
    .formats-mobile-btn-wrapper {
        display: block !important;
        margin: var(--spacing-lg) auto;
        text-align: center;
        width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    .groups-mobile-btn,
    .formats-mobile-btn {
        width: 100%;
        max-width: 100%;
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-buttons .about-nav-tiles-scroll {
        max-height: 220px;
    }

    .about-buttons {
        max-width: 100%;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .groups .container {
        padding: 0;
    }
    
    .groups-card {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .groups-list {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .class-card-title {
        font-size: 1.5rem;
    }
    
    .class-card-subtitle {
        font-size: 0.95rem;
    }
    
    .group-item {
        text-align: center;
    }
    
    .icon-circle {
        height: 250px;
        font-size: 4rem;
    }
    
    .about-nav-btn {
        font-size: 1rem;
        padding: 0.7rem 0.9rem;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .btn-icon {
        font-size: 1.3rem;
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .schedule-day-card {
        padding: var(--spacing-sm);
    }
    
    .schedule-day-title {
        font-size: 1.3rem;
    }
    
    .schedule-activities li {
        font-size: 1.1rem;
    }
    
    .schedule-form-card .schedule-day-title {
        font-size: 1.2rem;
    }
    
    .schedule-input {
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }
    
    .schedule-submit-btn {
        font-size: 1.1rem;
        padding: 0.9rem 1.5rem;
    }

    .formats-grid {
        grid-template-columns: 1fr;
    }

    .babies-directions {
        grid-template-columns: 1fr;
    }
    
    .nutrition-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item {
        height: 250px;
    }

    .schedule-timeline {
        gap: var(--spacing-sm);
    }
    
    .schedule-time-item {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .time-badge {
        min-width: 120px;
        font-size: 1.2rem;
    }
    
    .time-description {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    /* Оптимизация контактов */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: var(--spacing-md);
    }
    
    /* Оптимизация форм */
    .form-input,
    .form-select {
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }
    
    .form-submit-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
    
    /* Оптимизация расписания */
    .schedule-timeline {
        gap: var(--spacing-sm);
    }
    
    .schedule-time-item {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }
    
    .time-badge {
        min-width: 100px;
        font-size: 1rem;
    }
    
    /* Адаптивный футер */
    footer {
        padding: var(--spacing-sm) 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .footer-column {
        align-items: center;
        gap: var(--spacing-xs);
    }
    
    .footer-column-left {
        align-items: center;
    }
    
    .footer-column-right {
        align-items: center;
        text-align: center;
    }
    
    .footer-logo-img {
        height: 35px;
    }
    
    .footer-description {
        text-align: center;
        font-size: 0.7rem;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-link {
        font-size: 0.7rem;
    }
    
    .footer-credit {
        font-size: 0.65rem;
    }
    
    .footer-phone {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .footer-schedule {
        gap: var(--spacing-xs);
        margin-bottom: var(--spacing-xs);
    }
    
    .schedule-item {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .schedule-label {
        font-size: 0.8rem;
    }
    
    .schedule-time {
        font-size: 0.8rem;
    }
    
    .footer-sitemap {
        font-size: 0.8rem;
    }
}

/* Оптимизация для маленьких мобильных */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.3rem;
        --spacing-sm: 0.6rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-note {
        font-size: 1rem;
        padding: var(--spacing-sm);
        margin-top: var(--spacing-sm);
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.8rem 1.5rem;
    }
    
    .hero-address-block {
        max-width: 100%;
    }
    
    .hero-address-main {
        font-size: 1.15rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        padding: var(--spacing-xs) 0;
        line-height: 1.2;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .subsection-title {
        font-size: 1.1rem;
    }

    .about-text p,
    .babies-content p {
        font-size: 0.95rem;
    }
    
    .contact {
        padding: var(--spacing-sm) 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-info {
        padding: var(--spacing-sm);
        align-items: center;
        text-align: center;
    }
    
    .contact-info-arrow {
        margin: var(--spacing-xs) auto 0;
    }
    
    .contact-bg-image {
        display: none;
    }
    
    .contact-info-title-large {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: var(--spacing-xs);
    }
    
    .contact-info-title-small {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
    
    .contact-info-title {
        font-size: 1.2rem;
    }
    
    .contact-form-wrapper {
        padding: var(--spacing-md);
    }
    
    .contact-form-subtitle {
        font-size: 0.9rem;
    }
    
    .contact-form-title {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .contact-form-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .contact-form {
        gap: var(--spacing-xs);
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .schedule-day-card {
        padding: var(--spacing-sm);
    }
    
    .schedule-day-title {
        font-size: 1.2rem;
    }
    
    .schedule-activities li {
        font-size: 1rem;
    }
    
    .activity-icon-small {
        font-size: 1.5rem;
        width: 32px;
    }
    
    .schedule-form-card .schedule-day-title {
        font-size: 1.1rem;
    }
    
    .schedule-input {
        font-size: 0.95rem;
        padding: 0.8rem 0.9rem;
    }
    
    .schedule-submit-btn {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
    
    .schedule-checkbox-label {
        font-size: 0.85rem;
    }
    
    .schedule-main-title {
        margin-top: 80px;
        font-size: 1.8rem;
    }
    
    .schedule-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .schedule-timeline {
        grid-template-columns: 1fr;
    }
    
    .schedule-timeline {
        gap: var(--spacing-sm);
    }
    
    .schedule-time-item {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .time-badge {
        font-size: 1.1rem;
        min-width: 100px;
    }
    
    .time-description {
        font-size: 1rem;
    }
    
    .nutrition-meals {
        gap: var(--spacing-xs);
    }
    
    .meal-title {
        font-size: 0.95rem;
    }
    
    .nutrition-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nutrition-list {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .nutrition-list li {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .nutrition-icon {
        font-size: 3rem;
        flex-shrink: 0;
        width: auto;
        text-align: left;
    }
    
    .nutrition-list li span:not(.nutrition-icon) {
        flex: 1;
        text-align: left;
    }
    
    /* Адаптивный футер для маленьких мобильных */
    footer {
        padding: var(--spacing-xs) 0;
    }
    
    .footer-logo-img {
        height: 30px;
    }
    
    .footer-description {
        font-size: 0.65rem;
    }
    
    .footer-link {
        font-size: 0.65rem;
    }
    
    .footer-credit {
        font-size: 0.6rem;
    }
    
    .footer-phone {
        font-size: 1rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .footer-schedule {
        gap: 2px;
        margin-bottom: var(--spacing-xs);
    }
    
    .schedule-item {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .schedule-label {
        font-size: 0.75rem;
    }
    
    .schedule-time {
        font-size: 0.75rem;
    }
    
    .footer-sitemap {
        font-size: 0.75rem;
    }
    
    .contact-info-title-large {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    
    .contact-info-title-small {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }
}

@media (max-width: 480px) {
    .nutrition-meals {
        gap: var(--spacing-xs);
    }
    
    .meal-title {
        font-size: 0.9rem;
    }
    
    .nutrition-list {
        grid-template-columns: 1fr;
    }
    
    .nutrition-list {
        grid-template-columns: 1fr;
    }
    
    .nutrition-list li {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .nutrition-icon {
        font-size: 2.5rem;
        flex-shrink: 0;
        width: auto;
        text-align: left;
    }
    
    .nutrition-list li span:not(.nutrition-icon) {
        flex: 1;
        text-align: left;
        font-size: 0.95rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item {
        height: 200px;
    }
}

/* Квиз модальное окно */
.quiz-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    overflow-y: auto;
}

.quiz-modal-content {
    background-color: #ffffff;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: quizSlideIn 0.3s ease-out;
}

@keyframes quizSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quiz-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--color-text-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.quiz-close:hover {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.quiz-step {
    display: none;
   
}

.quiz-step.active {
    display: block;
}

.quiz-step-content {
    text-align: center;
}

.quiz-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.quiz-description {
    font-size: 1.1rem;
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.quiz-subtitle {
    font-size: 1rem;
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-md);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border: 2px solid var(--color-border);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--color-bg-white);
}

.quiz-option:hover {
    border-color: var(--color-primary);
    background-color: var(--color-bg-light);
    transform: translateX(5px);
}

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
    margin-right: var(--spacing-sm);
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.quiz-option input[type="radio"]:checked + span,
.quiz-option input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: var(--color-primary);
}

.quiz-option:has(input:checked) {
    border-color: var(--color-primary);
    background-color: rgba(74, 144, 226, 0.1);
}

.quiz-option span {
    flex: 1;
    font-size: 1rem;
    color: var(--color-text-dark);
}

.quiz-options-multiple .quiz-option {
    border-style: dashed;
}

.quiz-options-contact .quiz-option {
    padding: var(--spacing-sm) var(--spacing-md);
}

.quiz-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.quiz-btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.quiz-btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.quiz-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quiz-btn-secondary {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    border: 2px solid var(--color-border);
}

.quiz-btn-secondary:hover {
    background-color: var(--color-border);
    transform: translateY(-2px);
}

.quiz-input {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-bottom: var(--spacing-sm);
}

.quiz-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.quiz-input.error {
    border-color: #e74c3c;
}

.quiz-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
    min-height: 20px;
    text-align: left;
}

.form-group {

    text-align: left;
}

.quiz-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.quiz-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--color-text-gray);
    line-height: 1.5;
    cursor: pointer;
    margin: var(--spacing-md) 0;
    text-align: left;
}

.quiz-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.quiz-step-thanks {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.quiz-thanks-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Адаптивность квиза */
@media (max-width: 768px) {
    .quiz-modal-content {
        max-width: 100%;
        border-radius: 15px;
        margin: var(--spacing-sm);
    }

    .quiz-step {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .quiz-title {
        font-size: 1.5rem;
    }

    .quiz-description {
        font-size: 1rem;
    }

    .quiz-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .quiz-option {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .quiz-modal {
        padding: var(--spacing-xs);
    }

    .quiz-modal-content {
        border-radius: 10px;
    }

    .quiz-step {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .quiz-title {
        font-size: 1.3rem;
    }

    .quiz-thanks-icon {
        font-size: 4rem;
    }

    .quiz-buttons {
        flex-direction: column;
    }

    .quiz-btn {
        width: 100%;
    }
}

/* Интерактивный квиз */
.quiz-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.quiz-modal-container {
    background: #ffffff;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: quizSlideIn 0.4s ease-out;
    padding: var(--spacing-md);
}

@keyframes quizSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quiz-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-bg-light);
    border: none;
    font-size: 24px;
    color: var(--color-text-gray);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.quiz-close-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Прогресс-бар */
.quiz-progress {

    position: relative;
}

.quiz-progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}

.quiz-progress-text {
    text-align: center;
    margin-top: var(--spacing-xs);
    font-size: 0.8rem;
    color: var(--color-text-gray);
    font-weight: 600;
}

/* Шаги квиза */
.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.quiz-step-main-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 900;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    text-align: center;
    line-height: 1.2;
}

.quiz-step-subtitle {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.quiz-step-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.2rem);
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-step-description {
    font-size: 0.95rem;
    color: var(--color-text-gray);
    margin-bottom: var(--spacing-md);
    text-align: center;
    line-height: 1.5;
}

/* Плитки выбора */
.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.quiz-option-tile {
    position: relative;
    cursor: pointer;
    border: 2px solid var(--color-border);
    border-radius: 0;
  
    background: var(--color-bg-white);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.quiz-option-tile:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.2);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(80, 201, 195, 0.05) 100%);
}

.quiz-option-tile input[type="radio"],
.quiz-option-tile input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-option-tile input[type="radio"]:checked + .tile-content,
.quiz-option-tile input[type="checkbox"]:checked + .tile-content {
    color: var(--color-primary);
}

.quiz-option-tile:has(input:checked) {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(80, 201, 195, 0.1) 100%);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.tile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-xs);
}

.tile-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.tile-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-gray);
}

/* Форма контактов */
.quiz-form-fields {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.quiz-form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quiz-input,
.quiz-select,
.quiz-textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
}

.quiz-input:focus,
.quiz-select:focus,
.quiz-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.quiz-input.error,
.quiz-select.error,
.quiz-textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.quiz-textarea {
    resize: vertical;
    min-height: 50px;
}

.quiz-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.quiz-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    font-size: 0.8rem;
    color: var(--color-text-gray);
    line-height: 1.4;
    cursor: pointer;
    margin-top: var(--spacing-xs);
    padding: var(--spacing-xs);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.quiz-checkbox-label.error {
    border: 2px solid #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.quiz-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.quiz-error {
    display: none !important;
}

/* Навигация */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
   
    padding-top: var(--spacing-sm);
    border-top: 2px solid var(--color-border);
}

.quiz-nav-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat Alternates', sans-serif;
    flex: 1;
}

.quiz-btn-back {
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    border: 2px solid var(--color-border);
}

.quiz-btn-back:hover {
    background: var(--color-border);
    transform: translateY(-2px);
}

.quiz-btn-next,
.quiz-btn-submit {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.quiz-btn-next:hover,
.quiz-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Экран благодарности */
.quiz-thanks-content {
    text-align: center;
    padding: var(--spacing-md) 0;
}

.quiz-thanks-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.quiz-social-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.quiz-social-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
   
}

.quiz-social-vk {
    background: #4C75A3;
    color: #ffffff;
}

.quiz-social-vk:hover {
    background: #3d5f8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 117, 163, 0.4);
}

.quiz-social-telegram {
    background: #0088cc;
    color: #ffffff;
}

.quiz-social-telegram:hover {
    background: #006ba3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.quiz-social-whatsapp {
    background: #25D366;
    color: #ffffff;
}

.quiz-social-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Модальное окно "Спасибо" для форм */
.thanks-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thanks-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.thanks-modal-container {
    background: #ffffff;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: quizSlideIn 0.4s ease-out;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.thanks-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-bg-light);
    border: none;
    font-size: 24px;
    color: var(--color-text-gray);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.thanks-close-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: rotate(90deg);
}

.thanks-content {
    text-align: center;
    padding: var(--spacing-md) 0;
}

.thanks-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    animation: bounce 1s ease-in-out;
}

.thanks-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thanks-description {
    font-size: 1.05rem;
    color: var(--color-text-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.thanks-social-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.thanks-social-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat Alternates', sans-serif;
}

.thanks-social-vk {
    background: #4C75A3;
    color: #ffffff;
}

.thanks-social-vk:hover {
    background: #3d5f8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 117, 163, 0.4);
}

.thanks-social-telegram {
    background: #0088cc;
    color: #ffffff;
}

.thanks-social-telegram:hover {
    background: #006ba3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.thanks-close-button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat Alternates', sans-serif;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.thanks-close-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

@media (max-width: 768px) {
    .thanks-modal-container {
        padding: var(--spacing-lg) var(--spacing-md);
        max-width: 95%;
    }
    
    .thanks-title {
        font-size: 1.5rem;
    }
    
    .thanks-description {
        font-size: 1rem;
    }
    
    .thanks-social-buttons {
        flex-direction: column;
    }
    
    .thanks-social-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .thanks-modal-container {
        padding: var(--spacing-md);
        border-radius: 12px;
        max-width: 98%;
    }
    
    .thanks-icon {
        font-size: 3rem;
    }
    
    .thanks-title {
        font-size: 1.3rem;
    }
    
    .thanks-description {
        font-size: 0.9rem;
    }
}

/* Адаптивность квиза */
@media (max-width: 768px) {
    .contact-bg-image {

        opacity: 0.4;
    }
    .quiz-modal-container {
        padding: var(--spacing-md) var(--spacing-sm);
        max-height: 90vh;
        max-width: 95%;
    }
    
    .quiz-step-title {
        font-size: 1.2rem;
    }
    
    .quiz-step-description {
        font-size: 0.85rem;
    }
    
    .quiz-options-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    
    .quiz-option-tile {
        min-height: 60px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .tile-title {
        font-size: 0.9rem;
    }
    
    .tile-subtitle {
        font-size: 0.75rem;
    }
    
    .quiz-navigation {
        flex-direction: row-reverse;
        gap: var(--spacing-sm);
    }
    
    .quiz-nav-btn {
        flex: 1;
    }
    
    .quiz-btn-next {
        flex: 2;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        order: -1;
    }
    
    .quiz-btn-back {
        order: 1;
    }
    
    .quiz-social-buttons {
        flex-direction: column;
    }
    
    .quiz-social-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quiz-modal-container {
        padding: var(--spacing-sm);
        border-radius: 12px;
        max-width: 98%;
    }
    
    .quiz-close-btn {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    
    .quiz-step-main-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        margin-bottom: var(--spacing-xs);
    }
    
    .quiz-step-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    
    .quiz-step-title {
        font-size: 1.1rem;
    }
    
    .quiz-step-description {
        font-size: 0.8rem;
    }
    
    .quiz-thanks-icon {
        font-size: 3rem;
    }
    
    .quiz-nav-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .quiz-btn-next {
        padding: 1.1rem 1.5rem;
        font-size: 1.1rem;
        flex: 2;
    }
}

/* ========== Адаптив: средние мобильные (до 576px) ========== */
@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        min-width: 0;
    }
    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    .bullets-list {
        gap: var(--spacing-sm);
    }
    .bullet-item {
        padding: var(--spacing-sm);
    }
    .class-card-title {
        font-size: 1.35rem;
    }
    .class-card-subtitle {
        font-size: 0.9rem;
    }
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    .pricing-card__title {
        font-size: 1.05rem;
    }
    .pricing-list__row {
        font-size: 0.95rem;
    }
    .mobile-drawer {
        width: 85%;
        max-width: 300px;
    }
    .footer-content {
        gap: var(--spacing-md);
    }
    .faq-list {
        width: 100%;
    }
    .faq-question {
        font-size: 0.95rem;
    }
    .form-input,
    .form-select {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ========== Адаптив: маленькие мобильные (до 360px) ========== */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero-content {
        padding: 70px 12px var(--spacing-sm);
    }
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    .nav-phone {
        font-size: 1rem;
    }
    .nav-logo-img {
        height: 26px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .footer-phone {
        font-size: 1.1rem;
    }
    .footer-logo-img {
        height: 30px;
    }
    .mobile-drawer {
        width: 92%;
        max-width: none;
        padding: var(--spacing-sm);
    }
    .about-buttons .about-nav-tiles-scroll .about-nav-btn .btn-text {
        font-size: 0.9rem;
    }
    .pricing-card {
        padding: var(--spacing-sm);
    }
}

/* ========== Cookie consent (слева внизу) ========== */
.cookie-consent {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 10050;
    max-width: 360px;
    width: calc(100% - 32px);
    padding: 16px 18px;
    background: #ffffff;
    color: var(--color-text-dark);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent--hide {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.cookie-consent__text {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-gray);
}

.cookie-consent__link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-consent__link:hover {
    color: var(--color-secondary);
}

.cookie-consent__btn {
    align-self: flex-start;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cookie-consent__btn:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        width: auto;
    }
}
