/* АстРоРод — живой первый экран (FZ-RF 1089): ночное небо, зодиакальный круг, форма из трёх шагов. */
.al-hero {
    position: relative;
    margin: 0.5rem 0 1.5rem;
    padding: 2.6rem 2rem;
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 75% 40%, rgba(124, 77, 255, 0.35), transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(232, 194, 82, 0.16), transparent 50%),
        linear-gradient(160deg, #0b0a24 0%, #120c33 45%, #070915 100%);
    border: 1px solid rgba(196, 166, 255, 0.3);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(124, 77, 255, 0.12);
}
.al-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.al-stars { position: absolute; inset: -40px; background-repeat: repeat; transition: transform 0.25s ease-out; }
.al-stars-1 {
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 120px 80px, #cfc2ff 50%, transparent 51%),
        radial-gradient(1px 1px at 200px 150px, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 60px 190px, #ffe9a8 50%, transparent 51%);
    background-size: 240px 240px; opacity: 0.55;
}
.al-stars-2 {
    background-image:
        radial-gradient(1.5px 1.5px at 40px 60px, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 170px 20px, #e8d8ff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 260px 210px, #fff 50%, transparent 51%);
    background-size: 320px 320px; opacity: 0.7; animation: al-twinkle 4s ease-in-out infinite;
}
.al-stars-3 {
    background-image:
        radial-gradient(2px 2px at 90px 120px, #ffe08a 50%, transparent 51%),
        radial-gradient(2px 2px at 330px 60px, #fff 50%, transparent 51%);
    background-size: 420px 420px; opacity: 0.8; animation: al-twinkle 6s 1.5s ease-in-out infinite;
}
@keyframes al-twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.95; } }
.al-constellation {
    position: absolute; left: 3%; bottom: 6%; width: 38%; max-width: 420px; opacity: 0.55; transition: transform 0.25s ease-out;
}
.al-constellation polyline { fill: none; stroke: rgba(232, 194, 82, 0.45); stroke-width: 1; stroke-dasharray: 600; stroke-dashoffset: 600; animation: al-draw 4s 0.4s ease forwards; }
.al-constellation circle { fill: #ffe9a8; animation: al-twinkle 3s ease-in-out infinite; }
.al-constellation circle:nth-child(odd) { animation-delay: 1.2s; }
@keyframes al-draw { to { stroke-dashoffset: 0; } }
.al-wheel-wrap {
    position: absolute; right: -8%; top: 50%; width: min(64%, 640px); aspect-ratio: 1; transform: translateY(-50%);
    opacity: 0.55; transition: transform 0.25s ease-out;
}
.al-wheel { width: 100%; height: 100%; overflow: visible; }
.al-wheel-rot { transform-origin: 300px 300px; animation: al-spin 160s linear infinite; }
.al-planets-rot { transform-origin: 300px 300px; animation: al-spin 90s linear infinite reverse; }
@keyframes al-spin { to { transform: rotate(360deg); } }
.al-ring { fill: none; stroke: rgba(196, 166, 255, 0.4); stroke-width: 1.2; }
.al-ring-outer { stroke: rgba(232, 194, 82, 0.55); stroke-width: 1.6; }
.al-ring-inner { stroke: rgba(196, 166, 255, 0.25); }
.al-tick { stroke: rgba(232, 194, 82, 0.5); stroke-width: 1.2; }
.al-spoke { stroke: rgba(196, 166, 255, 0.14); stroke-width: 1; }
.al-deg { stroke: rgba(232, 194, 82, 0.28); stroke-width: 0.8; }
.al-sign { fill: #e8c252; font-size: 26px; text-anchor: middle; dominant-baseline: central; }
.al-asp { stroke-width: 1; opacity: 0.55; }
.al-asp-0 { stroke: #ffd166; } .al-asp-1 { stroke: #8ab4ff; } .al-asp-2 { stroke: #ef6f8f; }
.al-pl-dot { fill: rgba(16, 12, 40, 0.9); stroke: #e8d8ff; stroke-width: 1.3; }
.al-pl-glyph { fill: #f3e9ff; font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.al-shooting {
    position: absolute; top: 12%; left: 30%; width: 140px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
    transform: rotate(-24deg); opacity: 0; animation: al-shoot 9s 2s ease-in infinite;
}
@keyframes al-shoot {
    0% { opacity: 0; transform: translate(0, 0) rotate(-24deg); }
    3% { opacity: 1; }
    9% { opacity: 0; transform: translate(-260px, 120px) rotate(-24deg); }
    100% { opacity: 0; }
}

.al-hero-grid { position: relative; display: grid; gap: 1.6rem; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.al-badge {
    display: inline-flex; gap: 6px; align-items: center; padding: 0.35rem 0.85rem; border-radius: 999px;
    border: 1px solid rgba(196, 166, 255, 0.45); color: #d9c8ff; font-size: 0.82rem; background: rgba(124, 77, 255, 0.15);
}
.al-title {
    font-family: var(--font-heading); color: #f3e9ff; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.12; margin: 0.8rem 0 0.7rem;
    text-shadow: 0 0 30px rgba(156, 112, 255, 0.45);
}
.al-title span { display: block; color: #e8c252; }
.al-lead { color: rgba(239, 230, 255, 0.86); font-size: 1.08rem; line-height: 1.55; margin-bottom: 1rem; max-width: 34rem; }
.al-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.al-chips li {
    padding: 6px 12px; border-radius: 999px; font-size: 0.86rem; color: #efe6ff;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
}
.al-hero-form .mcalc-form {
    background: rgba(14, 10, 34, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(196, 166, 255, 0.4); border-radius: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.mcalc-form .mcalc-submit { position: relative; overflow: hidden; }
.al-hero-form .mcalc-submit::after {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: al-shine 3.5s 1.5s ease-in-out infinite;
}
@keyframes al-shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }

.al-learn, .al-forecast { padding: 1.5rem 0; }
.al-learn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.al-learn-card, .al-fc {
    padding: 16px; border-radius: 18px; background: rgba(18, 14, 34, 0.7); border: 1px solid rgba(196, 166, 255, 0.25);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.al-learn-card:hover, .al-fc:hover { transform: translateY(-3px); border-color: #e8c252; box-shadow: 0 12px 28px rgba(232, 194, 82, 0.14); }
.al-learn-ico { font-size: 2rem; display: block; margin-bottom: 6px; }
.al-learn-card h3 { font-size: 1.02rem; color: #fff; margin: 0 0 4px; }
.al-learn-card p { color: rgba(239, 230, 255, 0.78); font-size: 0.9rem; margin: 0; line-height: 1.45; }
.al-forecast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0.8rem 0 1.1rem; }
.al-fc { display: flex; flex-direction: column; gap: 2px; }
.al-fc span { font-size: 1.6rem; }
.al-fc strong { color: #fff; font-size: 0.98rem; }
.al-fc small { color: rgba(239, 230, 255, 0.72); font-size: 0.8rem; line-height: 1.35; }
.al-cta {
    display: inline-block; padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none;
    color: #1b1236; background: linear-gradient(135deg, #e8d8ff, #c4a6ff 45%, #e8c252); box-shadow: 0 10px 26px rgba(156, 112, 255, 0.35);
}
.al-cta:hover { color: #1b1236; filter: brightness(1.07); }

@media (max-width: 899.98px) {
    .al-hero { padding: 1.6rem 1rem; border-radius: 20px; }
    .al-hero-grid { grid-template-columns: 1fr; }
    .al-wheel-wrap { right: -30%; top: 4%; width: 95%; transform: none; opacity: 0.32; }
    .al-learn-grid, .al-forecast-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .al-wheel-rot, .al-planets-rot, .al-stars, .al-shooting, .al-constellation polyline, .al-constellation circle,
    .al-hero-form .mcalc-submit::after { animation: none !important; }
    .al-constellation polyline { stroke-dashoffset: 0; }
}
