/* --- СТИЛИ МОДАЛЬНЫХ ОКОН (App Store Style) --- */

/* Фон-подложка */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);     /* Эффект матового стекла */
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000; /* Поверх всего */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Само окно */
.modal-window {
    width: 95%; /* Чуть больше отступов по бокам на мобилках */
    max-width: 800px; /* БЫЛО: 500px. Сделали намного шире */
    height: 75vh;     /* БЫЛО: 85vh. Сделали немного ниже */
    
    background: #1c1c1e;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    
    transform: scale(0.95); /* Чуть меньше начальный скейл */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

/* Кнопка закрытия (Крестик) */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}
.modal-close:hover { transform: scale(1.1); background: rgba(255,255,255,0.2); }

/* Обложка курса */
.modal-cover {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}
.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #1c1c1e 0%, transparent 100%);
}
.cover-title {
    position: absolute;
    bottom: 20px;
    left: 25px;
    right: 25px;
}
.cover-title h2 {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-top: 8px;
    color: #fff;
}

/* Основной контент (Скролл) */
.modal-body {
    padding: 10px 25px 25px 25px;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: none; /* Скрываем скроллбар */
}
.modal-body::-webkit-scrollbar { display: none; }

.course-desc {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Сетка характеристик */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.feature-cell {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-cell i { font-size: 1.2rem; color: #4da6ff; }
.feature-cell span { font-size: 0.8rem; font-weight: 500; color: #eee; line-height: 1.3; }

/* Бонус блок */
.bonus-block {
    background: rgba(255, 206, 68, 0.1);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 206, 68, 0.2);
}
.bonus-block h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #ffce44;
}
.bonus-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ddd;
}
.check-icon { color: #ffce44; min-width: 20px; }

.highlight-bonus {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    align-items: center;
    margin-bottom: 0;
}
.gift-icon { font-size: 1.2rem; color: #ff4757; animation: bounce 2s infinite; }

/* Футер (Цена и кнопка) */
.modal-footer {
    padding: 20px 25px;
    background: #252527;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-block { display: flex; flex-direction: column; }
.old-price { font-size: 0.85rem; text-decoration: line-through; color: #777; }
.new-price { font-size: 1.4rem; font-weight: 700; color: #fff; }
.installment { font-size: 0.75rem; color: #4da6ff; font-weight: 600; margin-top: 2px; }

.buy-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}
.buy-btn:hover { transform: scale(1.05); background: #f0f0f0; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* --- СТИЛИ ДЛЯ БЕСПЛАТНОГО ОКНА --- */

/* Список уроков */
.free-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.free-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.free-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.play-icon-box {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.free-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.free-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.free-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 3px;
}

.free-tag {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #ccc;
    font-weight: 600;
}

/* --- TELEGRAM FOOTER --- */
.telegram-footer {
    background: linear-gradient(135deg, #229ED9 0%, #1c87b9 100%); /* Telegram Blue */
    border-top: none;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tg-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tg-icon {
    font-size: 2.2rem;
    color: #fff;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.tg-text {
    display: flex;
    flex-direction: column;
}

.tg-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.tg-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.tg-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.tg-price {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.tg-btn {
    background: #fff;
    color: #229ED9; /* Цвет текста как фон футера */
    border: none;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.tg-btn:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}

/* Адаптив для футера */
@media (max-width: 600px) {
    .telegram-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .tg-action {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ... (Остальные стили модалок остаются прежними) ... */

/* --- НОВАЯ КРАСИВАЯ СЕТКА (Bento Grid) --- */

.portfolio-bento-grid {
    display: grid;
    /* Автоматическое заполнение колонками мин. 200px */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Базовая высота ряда - 200px */
    grid-auto-rows: 200px; 
    gap: 15px;
    /* Магия: плотная упаковка, заполняет пустые места */
    grid-auto-flow: dense; 
}

.bento-item {
    position: relative;
    border-radius: 16px; /* Более скругленные углы */
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Классы для размеров ячеек */
.bento-item.wide {
    grid-column: span 2; /* Широкий: занимает 2 колонки */
}

.bento-item.tall {
    grid-row: span 2; /* Высокий: занимает 2 ряда */
}

.bento-item.big {
    grid-column: span 2; /* Большой: 2x2 */
    grid-row: span 2;
}

/* Изображение */
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Ховер эффекты */
.bento-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    z-index: 2; /* Чтобы приподнятый элемент был выше соседей */
}

.bento-item:hover img {
    transform: scale(1.05); /* Плавное увеличение картинки */
}

/* Оверлей при наведении */
.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.bento-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.bento-item:hover .item-overlay span {
    transform: translateY(0);
}

.action-icon {
    color: #fff;
    font-size: 1.2rem;
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.bento-item:hover .action-icon { opacity: 1; }

/* АДАПТИВ ДЛЯ СЕТКИ */
@media (max-width: 768px) {
    .portfolio-bento-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
        grid-auto-rows: 180px;
    }
    /* На мобильных отключаем "большие" ячейки, чтобы не ломать ритм */
    .bento-item.big, .bento-item.wide { grid-column: span 1; }
}

@media (max-width: 480px) {
     .portfolio-bento-grid {
        grid-template-columns: 1fr; /* 1 колонка на узком телефоне */
        grid-auto-rows: 240px;
    }
    .bento-item.tall { grid-row: span 1; }
}

/* --- СТИЛИ ДЛЯ ЛЕНТЫ НОВОСТЕЙ --- */

/* Заголовок новостей */
.modal-header-simple {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 20px;
    background: #1c1c1e; /* Цвет фона окна */
    z-index: 10;
    position: sticky;
    top: 0;
}

.header-left { display: flex; align-items: center; gap: 12px; }
.header-left h2 { font-size: 1.5rem; margin: 0; color: #fff; }

.news-counter-badge {
    background: #ff4757; color: #fff; font-size: 0.75rem; font-weight: 700;
    padding: 4px 10px; border-radius: 100px;
}

.mark-read-btn {
    background: transparent; border: none; color: #4da6ff;
    font-size: 0.9rem; font-weight: 500; cursor: pointer;
}
.mark-read-btn:hover { text-decoration: underline; }


/* Список новостей */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Карточка новости */
.news-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.2s;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Миниатюра */
.news-thumb {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}

/* Контент */
.news-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Мета-инфо (Тег + Дата) */
.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.n-tag {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    padding: 3px 8px; border-radius: 6px;
}
.tag-blue { background: rgba(77, 166, 255, 0.2); color: #4da6ff; }
.tag-purple { background: rgba(191, 90, 242, 0.2); color: #bf5af2; }
.tag-green { background: rgba(46, 213, 115, 0.2); color: #2ed573; }
.tag-gray { background: rgba(255,255,255,0.1); color: #ccc; }

.n-date {
    font-size: 0.75rem; color: #777;
}

/* Текст новости */
.news-content h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 0 6px 0;
    color: #fff;
    font-weight: 600;
}

.n-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #aaa;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничение в 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Кнопка "Читать дальше" */
.read-more-link {
    background: transparent;
    border: none;
    padding: 0;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
    transition: opacity 0.2s;
    width: fit-content;
}

.read-more-link:hover { opacity: 1; }
.read-more-link i { font-size: 0.7rem; }

/* Адаптив для новостей */
@media (max-width: 480px) {
    .news-card { flex-direction: column; }
    .news-thumb { width: 100%; height: 160px; }
}

/* --- FAQ / О КУРСАХ --- */

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

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.2s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Вопрос (Кнопка) */
.faq-question {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    user-select: none;
}

.faq-question i {
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

/* Состояние "Открыто" */
.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: #fff;
}
.faq-item.open {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Ответ (Скрытый блок) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.faq-item.open .faq-answer {
    padding-bottom: 20px; /* Отступ снизу только когда открыто */
}

/* Футер поддержки */
.support-footer {
    background: #202022;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.sf-text {
    display: flex;
    flex-direction: column;
}
.sf-text span { font-weight: 600; font-size: 0.95rem; color: #fff; }
.sf-sub { font-size: 0.8rem; color: #777; font-weight: 400 !important; margin-top: 2px; }

.support-btn {
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.support-btn:hover {
    background: #fff;
    color: #0088cc; /* Telegram color */
}

/* --- КАТАЛОГ УСЛУГ --- */

.services-grid {
    display: grid;
    /* Адаптивная сетка: минимум 300px, иначе перенос */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 20px;
    margin-top: 10px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Обложка товара */
.service-img {
    height: 180px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.service-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.service-card:hover .service-img img { transform: scale(1.05); }

.badge-popular {
    position: absolute;
    top: 10px; left: 10px;
    background: #ff4757; color: #fff;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    padding: 4px 8px; border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Контент товара */
.service-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Растягиваем, чтобы кнопки были внизу на одном уровне */
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.service-header h3 {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.service-cat {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.service-content p {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Толкает футер вниз */
}

/* Футер с ценой и кнопкой */
.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.service-price {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

.unit {
    font-size: 0.8rem;
    color: #777;
    font-weight: 400;
}

.order-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.order-btn:hover {
    background: #4da6ff;
    color: #fff;
}

/* --- СТИЛИ КОМАНДЫ --- */

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 20px;
    margin-top: 10px;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.2s, background 0.2s;
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Шапка карточки (Аватар + Имя) */
.member-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.member-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
}

.member-role {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 2px;
}

.member-exp {
    font-size: 0.75rem;
    color: #4da6ff;
    font-weight: 600;
    margin-top: 4px;
    background: rgba(77, 166, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

/* Описание */
.member-bio p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
    margin: 0;
}

/* Секция "Работал с" */
.member-section h4 {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #eee;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Соц сети */
.member-socials {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Прижимаем к низу */
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.social-btn.insta {
    background: rgba(225, 48, 108, 0.1);
    color: #E1306C;
}
.social-btn.insta:hover { background: #E1306C; color: #fff; }

.social-btn.behance {
    background: rgba(0, 87, 255, 0.1);
    color: #0057ff;
}
.social-btn.behance:hover { background: #0057ff; color: #fff; }

/* Адаптив */
@media (max-width: 768px) {
    .team-grid { grid-template-columns: 1fr; }
}

/* --- ФОРМА КОНТАКТОВ --- */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.8rem;
    color: #aaa;
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px 12px 40px; /* Отступ слева под иконку */
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.modal-textarea {
    padding: 12px 15px; /* Без иконки */
    height: 100px;
    resize: none;
    font-family: inherit;
}

/* Эффект фокуса */
.modal-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4da6ff;
    box-shadow: 0 0 0 4px rgba(77, 166, 255, 0.1);
}
.input-wrapper:focus-within i { color: #4da6ff; }

/* Кнопка отправки */
.send-msg-btn {
    margin-top: 10px;
    background: #fff;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}
.send-msg-btn:hover { transform: scale(1.02); background: #f0f0f0; }

/* --- ФУТЕР СОЦСЕТЕЙ --- */
.contact-footer {
    flex-direction: column;
    gap: 15px;
    background: #202022;
    padding: 20px;
}

.cf-label { font-size: 0.8rem; color: #777; }

.social-row {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.soc-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
    background: rgba(255,255,255,0.05);
}

.soc-icon:hover { transform: translateY(-3px); }

/* Цвета брендов */
.soc-icon.support { color: #fff; }
.soc-icon.support:hover { background: rgba(255,255,255,0.2); }

.soc-icon.tg { color: #229ED9; }
.soc-icon.tg:hover { background: rgba(34, 158, 217, 0.2); }

.soc-icon.wa { color: #25D366; }
.soc-icon.wa:hover { background: rgba(37, 211, 102, 0.2); }

.soc-icon.ds { color: #5865F2; }
.soc-icon.ds:hover { background: rgba(88, 101, 242, 0.2); }

/* --- КАТАЛОГ (HUB) --- */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.catalog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.cat-img {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.cat-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.catalog-card:hover .cat-img img { transform: scale(1.05); }

/* Бейджики */
.cat-badge {
    position: absolute; top: 10px; left: 10px;
    font-size: 0.7rem; font-weight: 800; padding: 4px 8px; border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.cat-badge.pro { background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.cat-badge.hit { background: #ff4757; color: #fff; }
.cat-badge.free { background: #2ed573; color: #000; }

.cat-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cat-content h3 {
    font-size: 1rem; color: #fff; margin: 0 0 5px 0; font-weight: 600;
}

.cat-desc {
    font-size: 0.8rem; color: #aaa; margin: 0 0 15px 0; line-height: 1.4;
    flex-grow: 1;
}

.cat-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 10px;
}

.cat-price {
    font-weight: 700; color: #fff; font-size: 1rem;
}

.cat-link {
    font-size: 0.8rem; color: #4da6ff; display: flex; align-items: center; gap: 5px;
    font-weight: 500;
}
.catalog-card:hover .cat-link i { transform: translateX(3px); transition: transform 0.2s; }

/* --- ЮРИДИЧЕСКИЙ ТЕКСТ --- */

.legal-text {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-text h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.legal-text h3:first-child {
    margin-top: 0;
}

.legal-text p {
    margin-bottom: 15px;
}

.legal-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-text ul li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.legal-contact {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
}

/* --- ПАРТНЕРЫ --- */

.partners-grid {
    display: grid;
    /* 4 колонки на десктопе */
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
    margin-top: 20px;
}

.partner-logo {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.5; /* Полупрозрачные по умолчанию */
    filter: grayscale(100%); /* Черно-белые */
    transition: all 0.3s ease;
}

/* Эффект при наведении */
.partner-logo:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.partner-logo:hover img {
    opacity: 1;
    filter: grayscale(0%); /* Возвращаем цвет (если он есть) */
    transform: scale(1.05);
}

/* Адаптив */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на телефоне */
    }
}

/* --- ПОДДЕРЖКА (TICKETS) --- */

/* Кнопка "Создать" в шапке */
.create-ticket-btn {
    background: #4da6ff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: background 0.2s;
}
.create-ticket-btn:hover { background: #3d8bdb; }

/* Поиск */
.support-search-bar {
    position: relative;
    margin-bottom: 15px;
}
.support-search-bar i {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: #666;
}
.support-search-bar input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 15px 12px 40px;
    border-radius: 12px;
    color: #fff;
    outline: none;
}
.support-search-bar input:focus { border-color: #4da6ff; background: rgba(255,255,255,0.08); }

/* Вкладки */
.support-tabs {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.05);
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.s-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #aaa;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.s-tab.active { background: #4da6ff; color: #fff; font-weight: 600; }

/* Списки */
.ticket-list { display: none; flex-direction: column; gap: 10px; }
.ticket-list.active { display: flex; }

/* Карточка тикета */
.ticket-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.ticket-item:hover { background: rgba(255,255,255,0.08); }

.ticket-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.status-progress { background: rgba(77, 166, 255, 0.2); color: #4da6ff; }
.status-new { background: rgba(255, 159, 67, 0.2); color: #ff9f43; }
.status-done { background: rgba(46, 213, 115, 0.2); color: #2ed573; }

.ticket-info { flex-grow: 1; }
.ticket-top { display: flex; gap: 10px; margin-bottom: 4px; }
.t-id { color: #fff; font-weight: 700; font-size: 0.8rem; }
.t-date { color: #666; font-size: 0.8rem; }

.ticket-info h3 { font-size: 0.95rem; color: #fff; margin: 0 0 2px 0; }
.ticket-info p { font-size: 0.8rem; color: #aaa; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

.ticket-badge { font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.badge-blue { background: rgba(77, 166, 255, 0.1); color: #4da6ff; border: 1px solid rgba(77, 166, 255, 0.3); }
.badge-orange { background: rgba(255, 159, 67, 0.1); color: #ff9f43; border: 1px solid rgba(255, 159, 67, 0.3); }
.badge-green { background: rgba(46, 213, 115, 0.1); color: #2ed573; border: 1px solid rgba(46, 213, 115, 0.3); }

/* --- ЭКРАН СОЗДАНИЯ --- */
.support-view.hidden { display: none; }
.create-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.create-header h3 { color: #fff; margin: 0; font-size: 1.1rem; }

.back-link {
    background: transparent; border: none; color: #aaa;
    cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 5px;
}
.back-link:hover { color: #fff; }

.file-upload-box {
    border: 1px dashed rgba(255,255,255,0.2);
    padding: 15px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    color: #aaa; font-size: 0.9rem; cursor: pointer;
    transition: all 0.2s;
}
.file-upload-box:hover { border-color: #4da6ff; color: #4da6ff; background: rgba(77, 166, 255, 0.05); }

/* --- МОДАЛКА ПРИЛОЖЕНИЯ --- */

.app-icon-wrapper {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #4da6ff 0%, #0057ff 100%);
    border-radius: 20px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 2.5rem; color: #fff;
    box-shadow: 0 10px 30px rgba(0, 87, 255, 0.4);
    margin-bottom: 10px;
}

.qr-box {
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.qr-box img { width: 120px; height: 120px; }
.qr-box span { font-size: 0.75rem; color: #000; font-weight: 600; opacity: 0.6; line-height: 1.2; }

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex; align-items: center; justify-content: center; gap: 15px;
    text-decoration: none; color: #fff;
    transition: all 0.2s;
}

.store-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

.store-btn i { font-size: 1.8rem; }

.btn-text {
    display: flex; flex-direction: column; align-items: flex-start;
}
.btn-text span { font-size: 0.6rem; text-transform: uppercase; opacity: 0.7; }
.btn-text strong { font-size: 1rem; }