:root {
    /* Цветовая палитра: Графит, Золото, Белый */
    --primary: #F4C430;       /* Золотисто-желтый (акцент) */
    --primary-dark: #D4A010;  /* Темное золото для ховера */
    --dark: #1A1A1D;          /* Глубокий графит (основной текст/фон) */
    --gray: #4E4E50;          /* Серый текст */
    --light: #F5F5F5;         /* Светлый фон секций */
    --white: #FFFFFF;
    
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
    --radius: 16px;
    --transition: all 0.3s ease;
}

 img, svg { pointer-events: none; }

/* ===== Honeypot-поле для защиты от ботов ===== */
input[name="honeypot"] {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* ===== FLOATING GLASS HEADER (CAPSULE) ===== */
.site-header {
    /* Полупрозрачный фон */
    background: rgba(255, 255, 255, 0.45);
    
    /* Размытие фона (эффект стекла) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Для Safari */
    
    /* Тонкая белая обводка для объема */
    border: 1px solid rgba(255, 255, 255, 0.6);
    
    /* Мягкая тень, чтобы отделить от фона */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Делаем овал/капсулу */
    border-radius: 50px; /* Сильное скругление */
    
    /* Открепляем от верха */
    position: fixed; /* Фиксируем, чтобы плавала при скролле */
    top: 20px;       /* Отступ сверху 20px */
    z-index: 1000;
    
    /* Центрируем и задаем ширину */
    left: 50%;
    transform: translateX(-50%); /* Сдвигаем назад на 50% ширины для идеального центра */
    width: 90%;                  /* Ширина шапки (не во весь экран) */
    max-width: 1200px;           /* Максимальная ширина как у контейнера */
    
    padding: 12px 30px;          /* Внутренние отступы */
    transition: all 0.3s ease;
}

/* Корректировка контейнера внутри шапки, чтобы он не мешал центрированию */
.site-header .container {
    max-width: 100%; /* Убираем ограничения внутреннего контейнера */
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Адаптив для мобильных: делаем чуть меньше отступы и ширину почти 100% */
@media (max-width: 768px) {
    .site-header {
        top: 15px;
        width: 95%;
        padding: 10px 20px;
        border-radius: 40px;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 1px; /* Расстояние между лого и текстом */
    z-index: 1001;
    text-decoration: none; /* На случай если обернете в ссылку */
}

/* Стили для изображения логотипа */
.logo-img {
    height: 55px;       /* Фиксированная высота (подбирайте под ваш логотип) */
    width: auto;        /* Ширина подстроится автоматически, сохраняя пропорции */
    object-fit: contain; /* Гарантирует, что лого не обрежется */
    display: block;
}

/* Текст названия команды */
.logo-text {
    line-height: 1.2;
    white-space: nowrap; /* Чтобы название не переносилось на новую строку */
}

.logo-icon {
    color: var(--primary);
}

@media (max-width: 768px) {
    .logo-img {
        height: 35px; /* Чуть меньше на телефоне */
    }
    
    .logo {
        font-size: 1.4rem;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.header-phone {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap; /* Чтобы номер не переносился */
    transition: var(--transition);
}

.header-phone:hover {
    color: var(--primary);
}

.btn-telegram {
    background-color: #0088cc;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3);
    white-space: nowrap;
}

.btn-telegram:hover {
    background-color: #0077b5;
    transform: translateY(-2px);
}

/* Кнопка бургер-меню (скрыта) */
.mobile-menu-btn {
    display: none !important;
}

/* Мобильные кнопки контактов (скрыты на ПК) */
.mobile-contact-buttons {
    display: none;
    gap: 10px;
}

/* ===== HERO ===== */
.hero {
    /* Убираем старый градиент */
    /* background: linear-gradient(135deg, var(--dark) 0%, #333333 100%); */
    
    color: var(--white);
    padding: 150px 0 80px 0; 
    text-align: center;
    border-radius: 0 0 var(--radius) var(--radius); 
    margin-bottom: 40px;
    margin-top: 0;
    
    /* Важно для позиционирования фона */
    position: relative;
    overflow: hidden; /* Чтобы размытие не вылезало за скругленные углы */
    z-index: 1; /* Создаем контекст наложения */
}

/* Добавляем псевдоэлемент для фона */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* ВСТАВЬТЕ СЮДА ССЫЛКУ НА ВАШЕ ФОТО */
    background-image: url('../gallery/bg-intro.jpg'); 
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Применяем размытие */
    filter: blur(8px);
    
    /* Немного увеличиваем фон, чтобы убрать белые края от размытия */
    transform: scale(1.1);
    
    /* Затемнение, чтобы текст читался (опционально) */
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
    
    z-index: -1; /* Уводим фон под текст */
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(244, 196, 48, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(244, 196, 48, 0.6);
}

/* ===== SECTIONS GENERAL ===== */
.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light);
    border-radius: var(--radius);
    margin: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--primary);
    border-radius: 2px;
}

.text-white {
    color: var(--white);
}

/* ===== CARDS & CONTENT ===== */
.content-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 1.1rem;
    color: var(--gray);
}

/* ===== SCHEDULE ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.schedule-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary);
    transition: var(--transition);
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.day-badge {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.time-list {
    list-style: none;
}

.time-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.time-list li:last-child {
    border-bottom: none;
}

.time-list small {
    color: var(--gray);
    font-weight: 400;
}

/* ===== COACHES (BARS STYLE) ===== */
.coaches-grid {
    display: grid;
    /* 2 карточки в ряд */
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.coach-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.coach-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.coach-photo {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #ddd;
    position: relative;
}

/* Добавим затемнение сверху фото для стиля */
.coach-photo::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.coach-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.coach-card:hover .coach-photo img {
    transform: scale(1.05);
}

.coach-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.coach-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.coach-role {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coach-desc {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-link {
    display: inline-block;
    background: var(--light);
    color: var(--dark);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    align-self: center;
    border: 2px solid transparent;
}

.contact-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}
/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 350px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== FORM ===== */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark);
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ===== CONTACTS (3 BARS ROW) ===== */
.bg-dark {
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius) var(--radius) 0 0;
}

.contacts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-bar:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.contact-bar h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-bar a, .contact-bar p {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.map-container {
    border-radius: var(--radius);
    overflow: hidden; /* Самое важное: обрезает всё, что вылезает за углы */
    box-shadow: var(--shadow);
    border: 5px solid var(--white);
    position: relative; /* Для корректного позиционирования */
    background: #fff;   /* Фон на случай долгой загрузки карты */
    line-height: 0;     /* Убирает нижний отступ у строчных элементов внутри */
}

/* Принудительно убираем любые отступы у самой карты */
.map-container iframe {
    display: block;     /* Превращаем iframe в блочный элемент, чтобы убрать щель снизу */
    width: 100%;
    height: 400px;
    border: none;       /* Убираем рамку iframe, если она вдруг есть */
    margin: 0;
    padding: 0;
}

/* ===== FOOTER ===== */
footer {
    background: #111;
    color: #888;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    /* Планшеты и меньше: оставляем 2 в ряд */
    .coaches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Мобильная шапка */
    .mobile-menu-btn {
        display: none !important;
    }

    .header-actions {
        display: none;
    }

    /* Показываем мобильные кнопки */
    .mobile-contact-buttons {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Стили для мобильных кнопок */
    .mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        text-decoration: none;
        transition: var(--transition);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .mobile-btn-phone {
        background: var(--primary);
        color: var(--dark);
        font-size: 1.2rem;
    }

    .mobile-btn-phone:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

    .mobile-btn-telegram {
        background: #0088cc;
        color: var(--white);
    }

    .mobile-btn-telegram:hover {
        background: #0077b5;
        transform: translateY(-2px);
    }

    .mobile-btn-home,
    .mobile-btn-apps,
    .mobile-btn-logout {
        background: var(--primary);
        color: var(--dark);
    }

    .mobile-btn-home:hover,
    .mobile-btn-apps:hover,
    .mobile-btn-logout:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

    .mobile-btn-users {
        background: var(--primary);
        color: var(--dark);
    }

    .mobile-btn-users:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

    /* Затемнение фона (оставляем для других целей) */
    .body-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .body-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Тренеры в 1 колонку на телефоне */
    .coaches-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 10px; /* Небольшие отступы по бокам */
    }
    
    .coach-photo {
        height: 350px; /* Фото чуть выше на мобильном */
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contacts-row {
        grid-template-columns: 1fr; /* Контакты тоже в столбик */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .coach-photo {
        height: 300px;
    }
}

/* ===== CUSTOM NOTIFICATION (TOAST) ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Чтобы клики проходили сквозь контейнер */
}

.notification {
    background: var(--white);
    min-width: 320px;
    max-width: 400px;
    padding: 20px 25px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-left: 6px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
    
    /* Анимация появления */
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    overflow: hidden;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.hide {
    opacity: 0;
    transform: translateX(100%);
}

/* Иконка статуса */
.notify-icon {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(244, 196, 48, 0.2); /* Прозрачный желтый */
    border-radius: 50%;
    color: var(--dark);
    flex-shrink: 0;
}

.notify-content {
    flex-grow: 1;
}

.notify-title {
    font-weight: 800;
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 4px;
    display: block;
}

.notify-message {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Кнопка закрытия */
.notify-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #ccc;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    line-height: 1;
}

.notify-close:hover {
    color: var(--dark);
}

/* Прогресс бар времени */
.notify-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    width: 100%;
    transform-origin: left;
    animation: shrink 4s linear forwards;
}

@keyframes shrink {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .notification-container {
        left: 20px;
        right: 20px;
        top: 10px;
    }
    
    .notification {
        min-width: auto;
        width: 100%;
    }
}

/* ===== IOS STYLE SEGMENTED CONTROL ===== */
.ios-segmented-control {
    position: relative;
    background: rgba(255, 255, 255, 0.5); /* Полупрозрачный фон */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 4px;
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto 40px auto; /* Отступ снизу до контента */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    user-select: none;
}

/* Скрываем реальные радиокнопки */
.ios-segmented-control input[type="radio"] {
    display: none;
}

/* Стили лейблов (кнопок) */
.tab-label {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-icon {
    font-size: 1.1rem;
}

/* Плавающий индикатор (белая подложка) */
.tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px); /* Ширина для 2 кнопок */
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Плавная анимация как в iOS */
    z-index: 1;
}

/* Логика переключения индикатора */
#tab-training:checked ~ .tab-indicator { transform: translateX(0%); }
#tab-prices:checked ~ .tab-indicator { transform: translateX(100%); }

/* Активный текст (темный, когда под ним белый фон) */
#tab-training:checked ~ label[for="tab-training"],
#tab-prices:checked ~ label[for="tab-prices"] {
    color: var(--dark);
    font-weight: 700;
}

/* Неактивный текст (серый) */
.tab-label {
    color: rgba(44, 62, 80, 0.6);
}

/* ===== CONTENT STYLES ===== */
.tabs-content-wrapper {
    position: relative;
    min-height: 400px; /* Чтобы не прыгало при переключении */
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для карточек цен */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.price-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, #fff 0%, #fffcf5 100%);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 15px 0;
}

.btn-select {
    margin-top: 20px;
    background: var(--dark);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
}

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

/* Стили для сезонной информации */
.season-info {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.season-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.season-action {
    text-align: center;
    margin-top: 30px;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .ios-segmented-control {
        border-radius: 10px;
    }
    
    .tab-label {
        font-size: 0.8rem;
        padding: 8px 2px;
    }
    
    .tab-icon {
        display: block; /* Иконка над текстом на очень узких экранах, если нужно */
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    .tab-label {
        flex-direction: column;
        line-height: 1.2;
    }
    
    .price-value {
        font-size: 2rem;
    }
    /* ===== NEWS FEED STYLES ===== */
    .news-header {
        margin-bottom: 40px;
    }

    .news-feed {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
        /* Делаем первую карточку широкой, если места много */
        grid-auto-flow: dense; 
    }

    .news-card {
        background: var(--white);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        display: flex;
        flex-direction: column;
        position: relative;
        border: 1px solid rgba(0,0,0,0.03);
    }

    .news-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    }

    /* Большая карточка (первая новость) */
    .news-card-large {
        grid-column: span 2; /* Занимает 2 колонки */
        grid-row: span 1;
        flex-direction: row; /* Картинка слева, текст справа */
    }

    @media (max-width: 768px) {
        .news-card-large {
            grid-column: span 1; /* На мобильном обычная */
            flex-direction: column;
        }
    }

    .news-image {
        height: 200px;
        background-size: cover;
        background-position: center;
        position: relative;
        flex-shrink: 0;
    }

    .news-card-large .news-image {
        width: 50%;
        height: auto;
        min-height: 250px;
    }

    @media (max-width: 768px) {
        .news-card-large .news-image {
            width: 100%;
            height: 200px;
        }
    }

}

/* ===== NEWS FEED STYLES ===== */
.news-header {
    margin-bottom: 40px;
}

.news-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    /* Делаем первую карточку широкой, если места много */
    grid-auto-flow: dense; 
}

.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* Большая карточка (первая новость) */
.news-card-large {
    grid-column: span 2; /* Занимает 2 колонки */
    grid-row: span 1;
    flex-direction: row; /* Картинка слева, текст справа */
}

@media (max-width: 768px) {
    .news-card-large {
        grid-column: span 1; /* На мобильном обычная */
        flex-direction: column;
    }
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.news-card-large .news-image {
    width: 50%;
    height: auto;
    min-height: 250px;
}

@media (max-width: 768px) {
    .news-card-large .news-image {
        width: 100%;
        height: 200px;
    }
}

/* Бейджи статусов */
.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.badge-win { background: linear-gradient(135deg, #FFD700, #F4C430); color: #000; }
.badge-info { background: linear-gradient(135deg, #4ECDC4, #2cb5ac); }
.badge-new { background: linear-gradient(135deg, #FF6B6B, #ff5252); }
.badge-event { background: linear-gradient(135deg, #A8E063, #56ab2f); }

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-large .news-content {
    width: 50%;
    justify-content: center;
}

@media (max-width: 768px) {
    .news-card-large .news-content {
        width: 100%;
    }
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.news-category {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--dark);
}

.news-content h3 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: var(--dark);
    line-height: 1.3;
}

.news-card-large h3 {
    font-size: 1.8rem;
}

.news-content p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    line-clamp: 3; /* Обрезать после 3 строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px;
    color: var(--dark);
}

/* Анимация появления */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-card {
    animation: slideUpFade 0.6s ease forwards;
    opacity: 0; /* Скрыто до анимации */
}

/* Задержка анимации для каждой карточки */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== APPLICATIONS PAGE STYLES ===== */
.applications-hero {
    padding-top: 120px;
    margin-bottom: 20px;
}

.push-settings-card {
    background: linear-gradient(135deg, rgba(26, 26, 29, 0.98), rgba(36, 36, 42, 0.95));
    color: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    position: relative;
}

.push-settings-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(244, 196, 48, 0.22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 30%);
    pointer-events: none;
}

.push-settings-toolbar,
.push-settings-shell,
.push-settings-main,
.push-settings-side,
.push-settings-head,
.push-status-panel,
.push-settings-actions,
.push-status-details {
    position: relative;
    z-index: 1;
}

.push-settings-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.push-settings-toolbar-copy h2 {
    font-size: 1.2rem;
    margin-top: 4px;
    line-height: 1.15;
}

.push-settings-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.push-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.push-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.push-toggle-btn svg {
    transition: transform 0.3s ease;
}

.push-settings-card.collapsed .push-toggle-btn svg {
    transform: rotate(-90deg);
}

.push-settings-card.collapsed .push-settings-toolbar {
    margin-bottom: 0;
}

.push-settings-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
    gap: 22px;
    align-items: stretch;
}

.push-settings-shell[hidden] {
    display: none !important;
}

.push-settings-main {
    min-width: 0;
}

.push-settings-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.push-title-wrap {
    min-width: 0;
}

.push-settings-head h2 {
    font-size: 1.65rem;
    line-height: 1.15;
    margin: 6px 0 12px;
}

.push-intro {
    color: rgba(255, 255, 255, 0.86);
    max-width: 720px;
    line-height: 1.6;
}

.push-settings-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(244, 196, 48, 0.92);
}

.push-status-panel {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 18px;
    margin: 20px 0 18px;
}

.push-status-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 196, 48, 0.18);
    color: var(--primary);
}

.push-status-copy {
    min-width: 0;
}

.push-status-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}

.push-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    text-align: center;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.push-status-badge[data-tone="success"] {
    background: rgba(78, 205, 196, 0.22);
    border-color: rgba(78, 205, 196, 0.4);
}

.push-status-badge[data-tone="warning"] {
    background: rgba(244, 196, 48, 0.24);
    border-color: rgba(244, 196, 48, 0.42);
}

.push-status-badge[data-tone="danger"] {
    background: rgba(255, 107, 107, 0.22);
    border-color: rgba(255, 107, 107, 0.4);
}

.push-status-badge[data-tone="neutral"] {
    background: rgba(255, 255, 255, 0.14);
}

.push-status-details {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.push-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.push-settings-actions .btn-telegram {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.push-settings-actions .btn-telegram:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.push-secondary-btn {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.push-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.push-ghost-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: none;
}

.push-ghost-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.push-settings-side {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 22px;
    align-self: stretch;
}

.push-settings-side h3 {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--white);
}

.push-checklist {
    list-style: none;
    display: grid;
    gap: 12px;
}

.push-checklist li {
    position: relative;
    padding-left: 24px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

.push-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(244, 196, 48, 0.12);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.application-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
    transition: var(--transition);
    position: relative;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.application-card.processed {
    border-left-color: #4ECDC4;
    opacity: 0.85;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.app-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.app-date {
    font-size: 0.85rem;
    color: var(--gray);
    white-space: nowrap;
}

.app-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.app-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.app-field-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.app-field-value {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
}

.app-field-value.phone {
    color: var(--primary);
}

.app-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.app-comment {
    padding: 15px;
    background: var(--light);
    border-radius: 10px;
    margin-bottom: 15px;
}

.app-comment-text {
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 5px;
}

.app-processed-by {
    padding: 12px 15px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-processed-by-name {
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-app-action {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-app-complete {
    background: linear-gradient(135deg, #4ECDC4, #2cb5ac);
    color: var(--white);
}

.btn-app-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.btn-app-delete {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: var(--white);
}

.btn-app-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-app-back {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: var(--white);
}

.btn-app-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 10px;
}

/* Badge count */
.badge-count {
    background: var(--primary);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-window {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-window h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.modal-window p {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-modal-cancel,
.btn-modal-confirm {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-cancel {
    background: #f0f0f0;
    color: var(--dark);
}

.btn-modal-cancel:hover {
    background: #e0e0e0;
}

.btn-modal-confirm {
    background: var(--primary);
    color: var(--dark);
}

.btn-modal-confirm:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Адаптив для заявок */
@media (max-width: 768px) {
    .push-settings-card {
        padding: 22px;
    }

    .push-settings-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .push-settings-toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .push-toggle-btn {
        margin-left: auto;
    }

    .push-settings-shell {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .push-settings-head {
        flex-direction: column;
    }

    .push-status-badge {
        min-width: 0;
    }

    .push-status-panel {
        padding: 16px;
    }

    .push-settings-actions {
        flex-direction: column;
    }

    .push-settings-actions .btn-telegram {
        width: 100%;
    }

    .push-settings-side {
        padding: 18px;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }

    .app-body {
        grid-template-columns: 1fr;
    }

    .app-actions {
        flex-direction: column;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

/* ===== FLASH MESSAGES ===== */
.flash-message {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.flash-error {
    background: #ffe6e6;
    color: #d63031;
    border: 1px solid #ff7675;
}

.flash-success {
    background: #e6ffed;
    color: #27ae60;
    border: 1px solid #58d68d;
}

.flash-info {
    background: #e6f3ff;
    color: #0984e3;
    border: 1px solid #74b9ff;
}

/* ===== TEXTAREA ===== */
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: var(--transition);
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}
