.topbar nav a.active {
    background: var(--accent-soft);
    color: var(--accent-text);
}

.brand::before {
    display: none;
}
.brand-logo {
    position: relative;
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, .28);
    background: radial-gradient(circle at 50% 50%, #ffffff 0 26%, var(--accent-soft) 27% 100%);
    box-shadow: inset 0 0 0 6px rgba(255,255,255,.72), 0 10px 24px rgba(37,99,235,.18);
}
.brand-logo::before,
.brand-logo::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, .36);
    animation: logoPulse 2.8s ease-in-out infinite;
}
.brand-logo::after {
    inset: -4px;
    opacity: .35;
    animation-delay: .55s;
}
.brand-logo span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 -8px 0 rgba(37,99,235,.5), 7px 5px 0 rgba(37,99,235,.28), -7px 5px 0 rgba(37,99,235,.28);
}
@keyframes logoPulse {
    0%, 100% { transform: scale(.92); opacity: .36; }
    50% { transform: scale(1.08); opacity: .9; }
}

.brand-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, .55fr);
    align-items: center;
}
.hero-copy {
    max-width: 840px;
}
.hero-logo {
    position: relative;
    min-height: 260px;
    display: grid;
    place-items: center;
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(219,234,254,.78));
    border: 1px solid rgba(226,232,240,.92);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero-logo::before {
    content: "";
    position: absolute;
    width: 310px;
    height: 310px;
    border-radius: 999px;
    background: conic-gradient(from 120deg, rgba(37,99,235,.05), rgba(37,99,235,.32), rgba(5,150,105,.22), rgba(37,99,235,.05));
    animation: heroSpin 10s linear infinite;
}
.hero-logo-orbit {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    border: 1px solid rgba(37,99,235,.28);
}
.hero-logo-core {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: #fff;
    color: var(--accent-text);
    font-size: 58px;
    font-weight: 950;
    box-shadow: 0 20px 54px rgba(15,23,42,.14);
}
.hero-logo-line {
    position: absolute;
    width: 3px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    animation: tempRise 3.6s ease-in-out infinite;
}
@keyframes heroSpin { to { transform: rotate(360deg); } }
@keyframes tempRise {
    0%, 100% { transform: translateY(52px); opacity: .35; }
    50% { transform: translateY(-52px); opacity: .9; }
}

.download-panel {
    position: relative;
    overflow: hidden;
}
.download-panel::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: var(--accent-soft);
    opacity: .7;
    pointer-events: none;
}
.download-grid {
    position: relative;
    z-index: 1;
}
.download-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
}
.download-icon,
.auth-provider-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-weight: 950;
    letter-spacing: -.04em;
}
.download-card h3 {
    margin-bottom: 6px;
}
.download-card p {
    margin-top: 0;
}

.auth-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0;
}
.auth-provider-icon {
    width: 62px;
    height: 62px;
    border: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(15,23,42,.08);
    font-size: 22px;
}
.auth-provider-icon.yandex {
    background: #fc3f1d;
    color: #fff;
    border-color: rgba(252,63,29,.38);
}
.auth-provider-icon.disabled {
    opacity: .42;
    cursor: not-allowed;
    box-shadow: none;
}
.form-hint {
    color: var(--muted);
    font-size: 14px;
}
.provider-card-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}
.provider-callback {
    display: grid;
    gap: 6px;
    margin: 14px 0;
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 760px) {
    .brand-hero {
        grid-template-columns: 1fr;
    }
    .hero-logo {
        min-height: 210px;
        order: -1;
    }
}
@media (max-width: 640px) {
    .brand {
        font-size: 20px;
    }
    .hero h1 {
        font-size: clamp(46px, 15vw, 72px);
    }
    .hero p,
    .lead {
        font-size: 16px;
    }
    .button,
    button {
        min-height: 42px;
    }
    .metric-value {
        font-size: 28px;
        word-break: break-word;
    }
    .download-card,
    .provider-card-head {
        grid-template-columns: 1fr;
    }
    .download-card .button {
        width: 100%;
    }
    table.responsive-table td[data-label="Действия"] {
        grid-template-columns: 1fr;
    }
    table.responsive-table td[data-label="Действия"]::before {
        margin-bottom: -2px;
    }
}
