/* Подключение шрифтов */
@font-face {
    font-family: 'Benzin';
    src: url('/static/fonts/Benzin-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Benzin';
    src: url('/static/fonts/Benzin-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Benzin';
    src: url('/static/fonts/Benzin-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Benzin';
    src: url('/static/fonts/Benzin-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Benzin';
    src: url('/static/fonts/Benzin-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Крестик закрытия — SVG для точного центрирования во всех модалках */
.close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-icon svg {
    display: block;
}

/* Убираем красный/серый круг при тапе (в т.ч. в Telegram WebView) — глобально */
*, *::before, *::after {
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent !important;
}

a:focus, button:focus, [role="button"]:focus,
.city-btn:focus, .contact-btn:focus,
input:focus, select:focus, textarea:focus {
    outline: none !important;
}

html, body {
    overscroll-behavior-y: contain;
}

body {
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: transparent;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}
/* Фиксированный фон через слой (iOS Safari не поддерживает background-attachment: fixed) — без растягивания и засветов */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a12 url('/static/background/main.webp') center/cover no-repeat;
    z-index: -1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Скролл-трек «Стеклянный морфизм» (Glassmorphism) - АГРЕССИВНАЯ ВЕРСИЯ */
/* Для Firefox */
html, body, * {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.6) rgba(0, 0, 0, 0.4);
}

/* Для Webkit браузеров (Chrome, Safari, Edge) - применяем ВЕЗДЕ */
*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 14px !important;
    height: 14px !important;
}

/* Дорожка скролла - стеклянный эффект с размытием */
*::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 !important;
}

/* Ползунок - стеклянный морфизм с отступами и скруглением */
*::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4) !important;
    background-clip: padding-box !important;
    border: 4px solid transparent !important;
    border-radius: 10px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.3),
        0 0 25px rgba(119, 246, 1, 0.5) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-height: 50px !important;
    min-width: 50px !important;
}

/* Ползунок при наведении - более яркий стеклянный эффект */
*::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5) !important;
    background-clip: padding-box !important;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        0 0 35px rgba(119, 246, 1, 0.7),
        0 0 60px rgba(196, 0, 251, 0.5) !important;
}

/* Ползунок при активном состоянии */
*::-webkit-scrollbar-thumb:active,
html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.6) !important;
    background-clip: padding-box !important;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        0 0 50px rgba(119, 246, 1, 0.8) !important;
}

/* Скрываем кнопки со стрелками */
*::-webkit-scrollbar-button,
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Горизонтальный скроллбар тоже стилизуем */
*::-webkit-scrollbar:horizontal {
    height: 14px !important;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Заголовок */
.header {
    padding: 20px 0 10px; /* Кардинально уменьшили отступы */
    text-align: center;
}

.logo-section {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.logo {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.logo-image {
    max-width: 400px; /* Уменьшили с 600px до 400px */
    height: auto;
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}


.tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    font-weight: 300;
}

/* Главная секция */
.main-content {
    padding-bottom: 60px;
}

.hero-section {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: #00ff88;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00cc66);
    border-radius: 2px;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Навигационные карточки */
.navigation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.nav-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.nav-card:nth-child(1) { animation-delay: 0.5s; }
.nav-card:nth-child(2) { animation-delay: 0.7s; }
.nav-card:nth-child(3) { animation-delay: 0.9s; }

.nav-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.card-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.card-arrow {
    font-size: 1.5rem;
    color: #00ff88;
    transition: transform 0.3s ease;
}

.nav-card:hover .card-arrow {
    transform: translateX(5px);
}

/* Секция преимуществ */
.features-section {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.1s;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Футер */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.3s;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Загрузочный экран: лого в центре + крутящееся кольцо (спиннер) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

/* Классический спиннер — тонкое кольцо с «хвостом», бесконечное вращение */
.loading-spinner {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.92);
    animation: loading-spin 0.85s linear infinite;
    pointer-events: none;
}

.loading-logo {
    position: relative;
    width: 52px;
    height: 52px;
    overflow: hidden;
}

.loading-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(0%) invert(1);
    opacity: 0.82;
}

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}

.loading-quote {
    width: 90%;
    max-width: 320px;
    margin: 24px 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    line-height: 1.4;
    font-style: italic;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Блок: аватарка + город + категории — ширина от аватарки до конца кнопок города */
.home-top-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 0 0 40px 0;
}

.home-top-section .service-categories {
    width: 100%;
}

/* Обёртка: аватар+города и категории — одинаковая ширина */
.city-and-categories-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.city-and-categories-wrap .service-categories {
    margin-bottom: 0;
}

/* Плашка «Вы записаны» — нейтральный фон, аккуратный текст */
.booking-success-plaque-wrap {
    width: 100%;
}
.booking-success-plaque {
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-height: 52px;
    padding: 10px 12px 10px 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}
.booking-success-plaque-img-wrap {
    flex-shrink: 0;
    width: 64px;
    align-self: stretch;
    margin: -10px 0 -10px 0;
    min-height: 72px;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}
.booking-success-plaque-img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: bottom center;
    display: block;
    vertical-align: bottom;
}
.booking-success-plaque-text {
    flex: 1;
    margin: 0;
    padding: 4px 0;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.28;
    min-width: 0;
}
.booking-success-plaque-text-inner {
    display: block;
}
.booking-success-plaque-text .booking-success-date {
    color: rgba(119, 246, 1, 0.9);
    font-weight: 500;
}
.booking-success-plaque-help {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 50%;
    background: rgba(119, 246, 1, 0.15);
    color: #77F601;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    line-height: 1;
}
.booking-success-plaque-help:hover {
    background: rgba(119, 246, 1, 0.25);
    border-color: rgba(119, 246, 1, 0.6);
}

/* Модалка «Как добраться» (не на весь экран) */
.navigation-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.navigation-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}
.navigation-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #1a1a1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.navigation-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.navigation-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}
.navigation-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.navigation-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.navigation-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.navigation-modal-video-wrap {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.navigation-modal-video {
    width: 100%;
    display: block;
    vertical-align: top;
}
.navigation-modal-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-wrap;
}

/* Ряд: аватарка + кнопки города */
.city-selector-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

/* Алиас для совместимости (studios, works и др.) */
.city-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(119, 246, 1, 0.1);
    border: 1px solid rgba(119, 246, 1, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.location-icon:hover {
    background: rgba(119, 246, 1, 0.15);
    border-color: rgba(119, 246, 1, 0.5);
}

/* Контейнер для аватара пользователя */
.user-avatar-container {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

/* Аватар пользователя */
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(119, 246, 1, 0.5);
    box-shadow: 0 0 15px rgba(119, 246, 1, 0.3);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    border-color: rgba(119, 246, 1, 0.8);
    box-shadow: 0 0 25px rgba(119, 246, 1, 0.5);
    transform: scale(1.05);
}

/* Fallback иконка локации */
.location-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(119, 246, 1, 0.1);
    border: 1px solid rgba(119, 246, 1, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.location-icon-fallback:hover {
    background: rgba(119, 246, 1, 0.15);
    border-color: rgba(119, 246, 1, 0.5);
}

.city-buttons {
    position: relative;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(119, 246, 1, 0.2);
    border-radius: 25px;
    padding: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.city-btn {
    position: relative;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    outline: none;
    z-index: 2;
    white-space: nowrap;
}

.city-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.city-btn:active {
    transform: translateY(0);
}

/* Плавающая плашка-индикатор (border-radius: 9999px — идеальная капсула) */
.city-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: linear-gradient(45deg, #77F601, #C400FB);
    border-radius: 9999px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(119, 246, 1, 0.3);
    z-index: 1;
    opacity: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.city-indicator[style*="opacity"] {
    opacity: 1 !important;
}

/* Выбранный город: чёрный текст на градиенте для контраста */
.city-btn.active {
    color: #000000 !important;
    font-weight: 600;
}

.city-btn.active:hover {
    color: #000000 !important;
}

/* Категории услуг — одна кнопка, по нажатию раскрывается список */
.service-categories {
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.service-categories-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    backdrop-filter: blur(12px);
}

.service-categories-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(119, 246, 1, 0.35);
}

.service-categories.is-open .service-categories-trigger {
    background: rgba(119, 246, 1, 0.12);
    border-color: rgba(119, 246, 1, 0.45);
    color: #77F601;
}

.service-categories-trigger-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.service-categories-trigger-icon svg {
    display: block;
    transform-origin: center center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-categories.is-open .service-categories-trigger-icon svg {
    transform: rotate(180deg);
}

.service-categories-dropdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
    padding: 0 14px 0;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease, margin 0.25s ease;
}

.service-categories.is-open .service-categories-dropdown {
    margin-top: 12px;
    padding: 14px;
    max-height: 240px;
    overflow-y: auto;
    opacity: 1;
}

.category-filter-btn {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.category-filter-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(119, 246, 1, 0.35);
    color: #ffffff;
}

.category-filter-btn.active {
    background: rgba(119, 246, 1, 0.2);
    border-color: rgba(119, 246, 1, 0.5);
    color: #77F601;
}

/* Lab School — отдельная строка на всю ширину */
.lab-school-teaser {
    grid-column: 1 / -1;
    justify-content: center;
    overflow: visible;
    gap: 8px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-school-teaser-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.lab-school-teaser-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(119, 246, 1, 0.9);
    background: rgba(119, 246, 1, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
}

.lab-school-teaser:hover,
.lab-school-teaser.active {
    background: rgba(119, 246, 1, 0.08);
    border-color: rgba(119, 246, 1, 0.25);
}

.lab-school-teaser.active .lab-school-teaser-label {
    color: #77F601;
}

.category-filter-btn:disabled {
    cursor: default;
}

.coming-soon-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(119, 246, 1, 0.9);
    background: rgba(119, 246, 1, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

.services-grid-wrap {
    position: relative;
}

.services-coming-soon {
    display: none;
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(119, 246, 1, 0.3);
    border-radius: 20px;
    margin-top: 16px;
    margin-bottom: 28px;
}

.services-grid-wrap.is-lab-school .services-grid {
    display: none;
}

.services-grid-wrap.is-lab-school .services-coming-soon {
    display: block;
}

.services-coming-soon-text {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-image {
        max-width: 350px; /* Уменьшили с 500px до 350px */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .navigation-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .card-icon {
        width: 80px;
        height: 80px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header {
        padding: 15px 0 5px; /* Кардинально уменьшили отступы для мобильных */
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-width: 300px; /* Уменьшили с 400px до 300px */
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .nav-card {
        padding: 15px;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
    
    .home-top-section {
        margin: 0 0 20px 0;
        gap: 12px;
    }

    .city-selector-row,
    .city-selector {
        gap: 12px;
    }
    
    .location-icon {
        width: 40px;
        height: 40px;
    }
    
    .location-icon svg {
        width: 18px;
        height: 18px;
    }
    
    /* Адаптивные стили для аватара */
    .user-avatar-container {
        width: 40px;
        height: 40px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .location-icon-fallback {
        width: 40px;
        height: 40px;
    }
    
    .location-icon-fallback svg {
        width: 18px;
        height: 18px;
    }
    
    .city-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .service-categories {
        margin-bottom: 20px;
    }

    .service-categories-trigger {
        max-width: 100%;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .service-categories-dropdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-filter-btn {
        font-size: 0.72rem;
        padding: 8px 10px;
    }

    .coming-soon-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

/* Нижняя навигация приложения (подключение стилей) */
@import url('/static/css/nav.css');
