/**
 * Заголовки и надписи: читаемость на фоне флага, лёгкий 3D и анимация появления.
 */

.glass--readable,
.glass h1,
.glass > h2:first-child,
.groups-page__head,
.compose-panel,
.settings-page,
.install-hero,
.feed-layout > .compose-panel {
    --glass-text-scrim: rgba(6, 16, 32, 0.42);
}

.glass h1,
.app-body h1,
.install-hero h1 {
    font-family: 'Onest', 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #f4f9ff;
    text-shadow:
        0 1px 0 rgba(0, 28, 56, 0.95),
        0 2px 3px rgba(0, 0, 0, 0.55),
        0 6px 20px rgba(0, 12, 32, 0.45);
    animation: epoch-heading-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.glass > h1,
.groups-page__head h1 {
    margin-bottom: 0.35rem;
}

.glass .form-hint,
.groups-page__head .form-hint {
    display: inline-block;
    max-width: 100%;
    padding: 0.35rem 0.55rem;
    margin-top: 0.15rem;
    border-radius: 8px;
    background: var(--glass-text-scrim);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.section-label,
.epoch-label {
    font-family: 'Onest', 'Manrope', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    background: linear-gradient(105deg, #e8f8ff 0%, var(--accent) 55%, #9ed4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 1px rgba(0, 20, 40, 0.85));
    animation: epoch-label-in 0.5s ease both;
}

.app-topbar__brand {
    flex-shrink: 0;
}

.post-card__id {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@keyframes epoch-heading-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes epoch-label-in {
    from {
        opacity: 0;
        letter-spacing: 0.22em;
    }
    to {
        opacity: 1;
        letter-spacing: 0.14em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .glass h1,
    .app-body h1,
    .install-hero h1,
    .section-label,
    .epoch-label {
        animation: none;
    }
}

html[data-theme="light"] .glass h1,
html[data-theme="light"] .app-body h1 {
    color: #0a1628;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 6px rgba(13, 126, 168, 0.15);
}

html[data-theme="light"] .section-label,
html[data-theme="light"] .epoch-label {
    background: linear-gradient(105deg, #0a4a62 0%, #0d7ea8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: none;
}

html[data-theme="light"] .glass .form-hint {
    background: rgba(255, 255, 255, 0.72);
    color: rgba(15, 26, 40, 0.85);
    text-shadow: none;
}
