body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
header {
    background: white;
    padding: 40px 0;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.header-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 10px;
    margin: 0 20px;
    backdrop-filter: blur(5px);
}
h1 {
    color: #2c3e50;
    font-size: 2.8em;
    margin-bottom: 10px;
}
.domain {
    color: #3498db;
    font-weight: bold;
    font-size: 1.2em;
}
.status {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    margin-top: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.status:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Иконки соцсетей */
.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
.social-icon-telegram {
    background: linear-gradient(135deg, #0088cc, #34aadc);
}
.social-icon-vk {
    background: linear-gradient(135deg, #45668e, #5a7bab);
}
.social-icon-dzen {
    background: linear-gradient(135deg, #333333, #000000);
}
.social-icon-rutube {
    background: linear-gradient(135deg, #34aadc, #0077b5);
}
.social-icon-youtube {
    background: linear-gradient(135deg, #cd201f, #a51c1b);
}

/* Сетка блоков - без фиксированной высоты */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.info-card h3 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
}
.info-card h3 a {
    text-decoration: none;
    color: inherit;
}
.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin: 15px 0;
    border: 1px solid #eee;
}
.card-content {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
    flex: 1;
}
.card-content p {
    margin-bottom: 15px;
}
.card-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #3498db, transparent);
    margin: 20px 0;
}
.card-content ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}
.card-content li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}
.card-content li:before {
    content: "✓";
    color: #27ae60;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Футер */
footer {
    text-align: center;
    margin-top: 50px;
    color: white;
    padding: 30px 20px;
}
.footer-social {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.footer-icon:hover {
    transform: scale(1.1);
    border-color: white;
}
.footer-icon-telegram {
    background: rgba(0, 136, 204, 0.8);
}
.footer-icon-vk {
    background: rgba(69, 102, 142, 0.8);
}
.footer-icon-dzen {
    background: rgba(51, 51, 51, 0.8);
}
.footer-icon-rutube {
    background: rgba(0, 119, 181, 0.8);
}
.footer-icon-youtube {
    background: rgba(205, 32, 31, 0.8);
}
h2 {
    text-align: center;
    color: white;
    margin: 40px 0 30px;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.status-container {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
}

/* Стили для верхней навигации */
.top-nav {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
}
.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.nav-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

/* Стили для header с фоновым изображением */
.header-with-bg {
    background-image: url("/static/foto/fon.png");
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    border-radius: 0;
    margin-bottom: 30px;
    padding: 0;
}
.header-with-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}
.header-with-bg .header-content {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 40px 20px;
    margin: 0;
    backdrop-filter: none;
}

/* Стили для всплывающих окон */
.tooltip-trigger {
    cursor: pointer;
    color: #3498db;
    text-decoration: underline;
    text-decoration-style: dotted;
    position: relative;
    display: inline-block;
    transition: color 0.3s;
}
.tooltip-trigger:hover {
    color: #667eea;
}
.tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tooltip-popup {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    padding: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border-top: 4px solid #667eea;
}
.tooltip-popup .close-tooltip {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}
.tooltip-popup .close-tooltip:hover {
    color: #e74c3c;
}
.tooltip-popup h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}
.tooltip-popup ul {
    list-style-type: none;
    padding: 0;
}
.tooltip-popup li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.tooltip-popup li:before {
    content: "✓";
    color: #27ae60;
    position: absolute;
    left: 0;
}

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

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .header-content {
        padding: 20px;
        margin: 0 10px;
    }
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    .footer-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
    }
}
/* ========== НОВАЯ ПАНЕЛЬ БЫСТРЫХ ССЫЛОК ========== */
.quick-links {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
}

.quick-links-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 40px;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.quick-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102,126,234,0.2);
    border-color: transparent;
}

.quick-icon {
    font-size: 1.4rem;
}

/* Адаптивность для мобильных (дополнение к существующему медиазапросу) */
@media (max-width: 768px) {
    .quick-links-container {
        gap: 12px;
    }
    .quick-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    .quick-icon {
        font-size: 1.2rem;
    }
}
/* ========== СТИЛИ ДЛЯ СТРАНИЦЫ ВИДЕО ========== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.video-preview {
    background: #1a1a2e;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: white;
}

.video-info {
    padding: 15px;
    text-align: center;
}

.video-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

/* Модальное окно для видео */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    background: white;
    border-radius: 15px;
    padding: 20px;
    max-width: 90%;
    width: 900px;
    position: relative;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.video-modal-close:hover {
    color: #e74c3c;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .video-preview {
        height: 140px;
        font-size: 48px;
    }
    .video-info h3 {
        font-size: 1rem;
    }
}
/* ============================================
   СТИЛИ ДЛЯ КЛИКАБЕЛЬНЫХ ТЕЛЕФОНОВ И EMAIL
   ============================================ */

/* Стили для телефонов на странице контактов */
.card-content a[href^="tel:"] {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.card-content a[href^="tel:"]:hover {
    color: #27ae60 !important;
    border-bottom-color: #27ae60;
    text-decoration: none !important;
}

.card-content a[href^="mailto:"] {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.card-content a[href^="mailto:"]:hover {
    color: #27ae60 !important;
    border-bottom-color: #27ae60;
    text-decoration: none !important;
}

/* Стили для ссылок на соцсети в карточках */
.card-content a[href^="https://t.me"],
.card-content a[href^="https://vk.com"] {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.card-content a[href^="https://t.me"]:hover,
.card-content a[href^="https://vk.com"]:hover {
    color: #667eea !important;
    border-bottom-color: #667eea;
    text-decoration: none !important;
}

/* Стили для телефонов и email в футере */
footer a[href^="tel:"],
footer a[href^="mailto:"] {
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    padding: 2px 4px;
}

footer a[href^="tel:"]:hover,
footer a[href^="mailto:"]:hover {
    color: #27ae60 !important;
    border-bottom-color: #27ae60;
}

/* Общие стили для всех кликабельных телефонов */
a[href^="tel:"] {
    cursor: pointer;
    touch-action: manipulation;
}

/* Увеличиваем область клика для мобильных устройств */
@media (max-width: 768px) {
    a[href^="tel:"],
    a[href^="mailto:"] {
        padding: 8px 6px;
        display: inline-block;
    }
    
    .card-content a[href^="tel:"] {
        font-size: 1.1em;
        padding: 10px 6px;
    }
}

/* Анимация для иконки телефона при наведении */
.card-content .fa-phone {
    transition: transform 0.3s ease;
}

.card-content a[href^="tel:"]:hover .fa-phone {
    transform: scale(1.2) rotate(-15deg);
}

/* ============================================
   КОНЕЦ СТИЛЕЙ ДЛЯ КЛИКАБЕЛЬНЫХ ТЕЛЕФОНОВ
   ============================================ */
/* ============================================
   МОБИЛЬНОЕ БУРГЕР-МЕНЮ
   ============================================ */

/* Кнопка бургер-меню (скрыта на десктопе) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Анимация бургера в крестик */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Кнопка "Заказать звонок" в мобильном меню */
.nav-container .callback-btn-mobile {
    display: none;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    /* Показываем бургер */
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 15px;
        top: 5px;
    }
    
    /* Контейнер навигации */
    .nav-container {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        padding: 10px 20px;
        justify-content: flex-start;
    }
    
    /* Скрываем меню по умолчанию */
    .nav-container .nav-link {
        display: none;
        width: 100%;
        text-align: center;
        padding: 10px;
        margin: 3px 0;
    }
    
    /* Показываем при открытом меню */
    .nav-container.open .nav-link {
        display: block;
    }
    
    /* Показываем кнопку заказа в меню */
    .nav-container .callback-btn-mobile {
        display: none;
        width: 100%;
        text-align: center;
        padding: 12px;
        margin: 8px 0 5px 0;
        background: linear-gradient(135deg, #27ae60, #1e8449);
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
    }
    
    .nav-container.open .callback-btn-mobile {
        display: block;
    }
    
    /* Стили для ссылок в мобильном меню */
    .nav-container .nav-link {
        font-size: 1em;
        padding: 10px;
        border-radius: 8px;
    }
    
    .nav-container .nav-link:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }
    
    /* Скрываем обычную кнопку "Заказать звонок" на мобильных */
    .nav-container .callback-btn-desktop {
        display: none !important;
    }
}

/* На десктопе скрываем мобильную кнопку */
@media (min-width: 769px) {
    .nav-container .callback-btn-mobile {
        display: none !important;
    }
}
/* ============================================
   УЛУЧШЕНИЯ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ
   ============================================ */

@media (max-width: 768px) {
    /* Увеличиваем размер шрифта для лучшей читаемости */
    body {
        font-size: 16px;
    }
    
    /* Улучшаем карточки */
    .info-card {
        padding: 15px;
    }
    
    .info-card h3 {
        font-size: 1.2em;
    }
    
    /* Увеличиваем кнопки для удобства нажатия */
    .btn, .status, .quick-link {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Улучшаем шапку */
    .header-content {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    /* Увеличиваем отступы для контента */
    .container {
        padding: 10px 15px;
    }
    
    /* Кнопка заказа звонка в меню */
    .callback-btn-mobile {
        display: block;
        width: 100%;
        padding: 14px;
        margin: 8px 0 5px 0;
        background: linear-gradient(135deg, #27ae60, #1e8449);
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        text-align: center;
    }
}

/* Стили для кнопок с иконками на мобильных */
@media (max-width: 480px) {
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .footer-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    /* Уменьшаем отступы в футере */
    footer {
        padding: 15px 10px;
    }
}
