*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background-color: #f5f5f7;
    color: #111827;
    min-height: 100vh;
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100vh;
}

/* Шапка и брендинг */
.header {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.brand-logo {
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1d4ed8;
    background-color: #eff6ff;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-title {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.brand-subtitle {
    font-size: 11px;
    color: #6b7280;
}

.title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.subtitle {
    font-size: 14px;
    color: #6b7280;
    max-width: 520px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

/* Карточки ссылок */
.link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease-out;
    position: relative;
}

/* Иконки слева */
.icon-wrap {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.icon-wrap svg {
    width: 22px;
    height: 22px;
    display: block;
}

.link-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.link-label {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

.link-note {
    font-size: 12px;
    color: #9ca3af;
}

/* Бейдж "Официально" */
.badge {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    color: #1d4ed8;
    background-color: #e0ecff;
    border: 1px solid rgba(37, 99, 235, 0.22);
    flex-shrink: 0;
}

/* Официальные сервисы КАИ */
.official {
    border-left: 4px solid #2563eb;
    padding-left: 12px;
}

/* Активные ссылки — hover */
.link-card:hover:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-color: #d1d5db;
}

.link-card:active:not(.disabled) {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

/* "В разработке" */
.disabled {
    cursor: default;
    opacity: 0.7;
    background-color: #fafafa;
    border: 1.5px dashed #d1d5db;
    transition: none;
}

.disabled .link-label {
    color: #6b7280;
}

.disabled .link-note {
    color: #a1a1aa;
}

/* Иконка шестерёнки для "в разработке" */
.gear-icon {
    margin-left: auto;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    opacity: 0.85;
    flex-shrink: 0;
}

.gear-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Лёгкая анимация шестерёнки при hover */
.disabled:hover .gear-icon svg {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Футер */
.footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.footer-text {
    font-size: 11px;
    color: #9ca3af;
}

/* Адаптив */
@media (max-width: 480px) {
    .page {
        padding: 20px 14px 16px;
    }

    .title {
        font-size: 20px;
    }

    .link-card {
        padding: 12px 14px;
    }

    .icon-wrap {
        width: 22px;
        height: 22px;
    }

    .badge {
        display: none;
    }
}
