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;
    }
}