/* 🌈 Общий фон - статичный градиент */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

/* Градиент как фиксированный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000, #320101, #4c0000);
    z-index: -1;
    pointer-events: none;
}

/* Основной контент поверх градиента */
.min-h-screen {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-8 {
    padding: 2rem;
}

/* 📊 Grid системы */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.gap-6 {
    gap: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

/* Flex системы */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: bold;
}

.text-white {
    color: white;
}

.text-gray-400 {
    color: rgba(156, 163, 175);
}

.text-red-400 {
    color: rgb(251, 84, 84);
}

.text-green-400 {
    color: rgba(52, 211, 153);
}

.channels-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
}

.channels-grid-single {
    display: flex;
    justify-content: center;
}

.channel-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.3rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    max-width: 225px;
    width: 100%;
}

.channel-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5);
}

.channel-card:hover .channel-text {
    color: #ffffff;
}

.channel-card:hover .channel-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.channel-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.channel-icon-img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    object-fit: contain;
    border-radius: 8px;
}

.channel-icon-emoji {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.channel-text {
    font-size: 1.125rem;
    color: white;
}

.tabs-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.tab-button {
    padding: 1rem 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    cursor: pointer;
    border: none;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: #6e6e73;
    box-shadow: 0 0 1.25rem rgba(255, 255, 255, 0.1);
}

.news-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.2);
}

.news-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0 2rem rgba(74, 73, 73, 0.4);
}

.news-img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

.news-content {
    padding: 1rem;
}

.news-title {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.125rem * 1.4 * 2);
}

.news-title a {
    color: white;
    text-decoration: none;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: #bbb;
    margin-top: 0.25rem;
    margin-bottom: 0.625rem;
}

.news-date-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    vertical-align: middle;
}

.news-event_type {
    font-size: 0.875rem;
    color: #bbb;
    margin-top: 0.25rem;
    margin-bottom: 0.625rem;
    font-weight: bold;
}

.news-summary {
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #eee;
}

.accordion-item {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    margin-bottom: 1rem;
}

.accordion-trigger {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.accordion-content.open {
    max-height: 500px;
    opacity: 1;
    padding: 0 1.5rem 1.5rem;
}

.status-group {
    font-family: 'Inter', sans-serif;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.status-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    text-align: left;
}

.status-count {
    font-size: 1rem;
    color: #bbb;
    margin-left: 8px;
}

.status-arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #bbb;
    font-size: 0.875rem;
}

.status-arrow.open {
    transform: rotate(180deg);
}

.endpoint-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.endpoint-item {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #eee;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.endpoint-item:last-child {
    border-bottom: none;
}

.endpoint-name {
    flex: 1;
    font-size: 1rem;
}

.endpoint-error {
    color: rgb(251, 84, 84);
    font-size: 0.875rem;
}

.loader {
    text-align: center;
    padding: 2.5rem;
    font-size: 1.125rem;
    color: white;
    opacity: 0.7;
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.4s;
}

.rotate-180 {
    --tw-rotate: 180deg;
}

@media (min-width: 768px) {
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .md-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

}

.news-card-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.news-card-link:hover {
    text-decoration: none;
}

.news-card-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-card-clickable:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0 2rem rgba(74, 73, 73, 0.4);
    background: rgba(255, 255, 255, 0.15);
}
/* 🚀 Стили для карточек версий */
.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.version-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.version-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0 1.5rem rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.version-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.version-status {
    font-size: 0.875rem;
    color: #30d158;
    font-weight: 500;
}

.version-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.version-label {
    font-size: 0.875rem;
    color: #bbb;
    font-weight: 500;
}

.version-value {
    font-size: 0.875rem;
    color: white;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    min-width: 60px;
    text-align: center;
}

/* 📱 Адаптивность для мобильных */
@media (max-width: 768px) {
    .versions-grid {
        grid-template-columns: 1fr;
    }

    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .version-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .version-value {
        align-self: flex-start;
    }
}

/* 🔧 Утилиты для сетки */
.md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}