:root {
    --bg-main: #141826;
    --bg-card: #262435;
    --accent: #FF2E8A;
    --text-sec: #49475B;
    --hover: #FF78B5;
    --text-main: #FFFFFF;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 50px 20px;
}

/* Обертка всего контента */
.hub-wrapper {
    width: 100%;
    max-width: 1000px; /* Расширили для 2 колонок */
    display: flex;
    flex-direction: column;
}

/* --- Заголовки --- */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    animation: fadeIn 0.5s ease forwards;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(255, 46, 138, 0.5);
    font-size: 2.5rem;
    text-transform: uppercase;
}

.subtitle {
    color: var(--text-sec);
    font-size: 1.1rem;
    animation: fadeIn 0.8s ease forwards;
}

/* --- Сетка Карточек (Магия 2 колонок) --- */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr; /* По умолчанию для телефонов 1 колонка */
    gap: 30px;
}

@media (min-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr; /* Для ПК 2 колонки */
        gap: 30px 40px;
    }
    
    /* Центрируем одиночную карточку Mus */
    .center-card {
        grid-column: 1 / -1; 
        justify-self: center;
        width: 100%;
        max-width: 480px; 
    }
}

/* --- Общие стили карточек --- */
.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 2;
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.card:hover {
    transform: translateY(-3px);
    background-color: #2c2a3d;
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(255, 46, 138, 0.2);
}

.card-logo {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text-sec);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .card-logo {
    border-color: var(--accent);
}

.card-text h3 {
    color: var(--text-main);
    transition: color 0.3s ease;
}

.card:hover .card-text h3 {
    color: var(--hover);
}

.card-text p {
    color: #9E9CB5;
    line-height: 1.4;
}

/* --- Размеры Главных Карточек --- */
.main-card {
    padding: 20px 25px;
    gap: 20px;
}

.main-card .card-logo {
    width: 75px;
    height: 75px;
    min-width: 75px;
}

.main-card h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.main-card p {
    font-size: 0.95rem;
}

/* --- Размеры Дочерних Карточек --- */
.sub-card {
    padding: 12px 15px;
    gap: 15px;
    margin-left: 80px; /* Отступ вправо */
    width: calc(100% - 80px);
}

.sub-card .card-logo {
    width: 50px;
    height: 50px;
    min-width: 50px;
}

.sub-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.sub-card p {
    font-size: 0.85rem;
}

/* --- Текстовые логотипы (PRO и BOT) --- */
.text-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--bg-main), var(--bg-card));
}

/* Золотой акцент для PRO */
.pro-logo {
    color: #FFB347; 
    border-color: #FFB347 !important;
}
.pro-card:hover .pro-logo {
    box-shadow: 0 0 15px rgba(255, 179, 71, 0.4);
}

/* Фиолетовый акцент для BOT */
.bot-logo {
    color: #D58BFF;
    border-color: #B232FF !important;
}
.bot-card:hover {
    border-color: #B232FF;
    box-shadow: 0 5px 20px rgba(178, 50, 255, 0.2);
}
.bot-card:hover .card-text h3 { color: #D58BFF; }
.bot-card:hover .bot-logo {
    box-shadow: 0 0 15px rgba(178, 50, 255, 0.4);
}

/* --- Ветки и связь (Киберпанк линия) --- */
.branch {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.branch::before {
    content: '';
    position: absolute;
    top: 57px; /* Центр логотипа главной карточки */
    left: 57px; /* Центр логотипа по оси X */
    width: 23px; /* Горизонтальная линия дочерней карточки */
    height: calc(100% - 95px); /* Длина вертикальной линии */
    border-left: 2px solid var(--text-sec);
    border-bottom: 2px solid var(--text-sec);
    border-bottom-left-radius: 12px;
    z-index: 1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.branch:hover::before {
    border-color: var(--accent);
    box-shadow: -2px 2px 10px rgba(255, 46, 138, 0.3);
}

/* Анимация появления */
.branch:nth-child(1) .card { animation-delay: 0.1s; }
.branch:nth-child(2) .card { animation-delay: 0.2s; }
.branch:nth-child(3) .card { animation-delay: 0.3s; }
.branch:nth-child(4) .card { animation-delay: 0.4s; }
.center-card { animation-delay: 0.5s !important; }

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

/* Мобильная адаптация заголовка */
@media (max-width: 600px) {
    .main-title { font-size: 1.6rem; }
    .highlight { font-size: 1.9rem; }
    .sub-card { margin-left: 50px; width: calc(100% - 50px); }
    .branch::before { width: 15px; } /* Делаем линию короче на узких экранах */
}

/* Голубой акцент для Teletype (BLOG) */
.blog-logo {
    color: #00E5FF;
    border-color: #00B3CC !important;
}
.blog-card:hover {
    border-color: #00E5FF;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.2);
}
.blog-card:hover .card-text h3 { color: #00E5FF; }
.blog-card:hover .blog-logo {
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}