/* ai.sodstr.ru — общая шапка-«hero» (адаптировано с info.sodstr.ru/dashboard.css). */

.dash-hero {
    position: relative;
    margin: 0 0 24px;
    padding: 36px 22px 40px;
    background: linear-gradient(135deg, #0f3460 0%, #0a223d 100%);
    overflow: hidden;
    color: #fff;
}

.dash-hero__particles {
    position: absolute; inset: 0; pointer-events: none; opacity: .25;
    will-change: transform;
    background-image:
        radial-gradient(2px 2px at 18% 22%, rgba(34,197,94,.7), transparent),
        radial-gradient(1.5px 1.5px at 72% 38%, rgba(255,255,255,.6), transparent),
        radial-gradient(2px 2px at 88% 78%, rgba(34,197,94,.5), transparent),
        radial-gradient(1px 1px at 32% 88%, rgba(255,255,255,.4), transparent),
        radial-gradient(1.5px 1.5px at 8% 64%, rgba(34,197,94,.4), transparent),
        radial-gradient(2px 2px at 56% 16%, rgba(255,255,255,.5), transparent),
        radial-gradient(1.5px 1.5px at 96% 14%, rgba(255,255,255,.6), transparent),
        radial-gradient(1.5px 1.5px at 44% 56%, rgba(34,197,94,.6), transparent);
    animation: dash-hero-particles 24s linear infinite;
}
@keyframes dash-hero-particles {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-25px, 25px); }
}

.dash-hero__glow {
    position: absolute;
    top: -60px; right: -60px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, .25) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    will-change: transform;
    animation: dash-hero-glow 14s ease-in-out infinite;
}
@keyframes dash-hero-glow {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-30px, 20px); }
}
.dash-hero__glow--alt {
    top: auto; right: auto;
    bottom: -80px; left: -80px;
    background: radial-gradient(circle, rgba(99, 102, 241, .18) 0%, transparent 70%);
    animation-duration: 18s;
}

.dash-hero__inner {
    position: relative; z-index: 2;
    max-width: 1100px; margin: 0 auto;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 22px;
    align-items: center;
}

.dash-hero__icon {
    width: 72px; height: 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
    will-change: transform;
    animation: dash-hero-icon-bob 5s ease-in-out infinite;
    overflow: hidden;
}
.dash-hero__icon img { width: 56px; height: 56px; }
@keyframes dash-hero-icon-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-4px) rotate(-3deg); }
}

.dash-hero__text { min-width: 0; }
.dash-hero__crumbs {
    font-size: 11px; color: rgba(255, 255, 255, .55);
    text-transform: uppercase; letter-spacing: 1.2px;
    margin-bottom: 8px;
    animation: dash-hero-up .5s ease-out .15s both;
}
.dash-hero__title {
    font-size: 28px; font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
    background: linear-gradient(120deg, #fff 0%, #c7d2fe 50%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: dash-hero-up .55s ease-out .25s both,
               dash-hero-shimmer 8s linear infinite 1.5s;
}
@keyframes dash-hero-shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.dash-hero__sub {
    font-size: 14px; color: rgba(255, 255, 255, .75);
    margin: 0;
    line-height: 1.55;
    max-width: 720px;
    animation: dash-hero-up .6s ease-out .35s both;
}
.dash-hero__sub b, .dash-hero__sub code {
    color: var(--c-sro-green);
    font-weight: 600;
    background: rgba(34, 197, 94, .14);
    padding: 1px 7px;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    font-size: 12px;
}
@keyframes dash-hero-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dash-hero__cta {
    margin-top: 20px;
    grid-column: 1 / -1;
    display: flex; gap: 12px; flex-wrap: wrap;
    animation: dash-hero-up .65s ease-out .45s both;
}
.dash-hero__cta .btn {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

@media (max-width: 800px) {
    .dash-hero { padding: 28px 18px 32px; }
    .dash-hero__inner { grid-template-columns: 60px 1fr; gap: 16px; }
    .dash-hero__icon { width: 56px; height: 56px; border-radius: 14px; }
    .dash-hero__icon img { width: 42px; height: 42px; }
    .dash-hero__title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .dash-hero__particles, .dash-hero__glow,
    .dash-hero__icon, .dash-hero__title {
        animation: none !important;
    }
}

/* ───────────── reveal-on-scroll ───────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s ease-out, transform .55s ease-out;
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; }
}

/* ───────────── 3D tilt cards ───────────── */
[data-tilt] {
    transition: transform .15s;
    transform-style: preserve-3d;
}

/* ───────────── feature-cards (для лендинга) ───────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 24px;
}
.feature-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
    box-shadow: var(--shadow-md);
}
.feature-card__icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--c-sro-green-soft);
    color: var(--c-sro-green-dim);
    font-size: 22px;
    margin-bottom: 12px;
}
.feature-card__title {
    font-size: 1.05rem; font-weight: 700;
    color: var(--c-sro-blue);
    margin: 0 0 6px;
}
.feature-card__text {
    font-size: 0.92rem; color: var(--c-muted); margin: 0;
    line-height: 1.5;
}
