/* НейРоРод — живой первый экран (FZ-RF 1091): «дышащее» колесо баланса Рода, плывущие триграммы, расклад из трёх карт. */
.nl-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 74% 45%, rgba(157, 120, 255, 0.3), transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(232, 194, 82, 0.16), transparent 50%),
        linear-gradient(160deg, #120a26 0%, #1d0f3a 45%, #0a0618 100%);
    border: 1px solid rgba(183, 156, 255, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(157, 120, 255, 0.12);
}
.nl-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nl-glow {
    position: absolute; right: 6%; top: 50%; width: 46%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 156, 255, 0.24), transparent 65%); animation: nl-pulse 6s ease-in-out infinite;
}
@keyframes nl-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.nl-floats { position: absolute; inset: 0; transition: transform 0.25s ease-out; }
.nl-floats span {
    position: absolute; bottom: -40px; line-height: 1;
    color: rgba(196, 175, 255, 0.5); text-shadow: 0 0 12px rgba(183, 156, 255, 0.6);
    animation-name: nl-float; animation-timing-function: linear; animation-iteration-count: infinite;
}
.nl-floats span:nth-child(3n) { color: rgba(232, 194, 82, 0.55); text-shadow: 0 0 12px rgba(232, 194, 82, 0.5); }
@keyframes nl-float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    85% { opacity: 0.8; }
    100% { transform: translateY(-560px) rotate(-30deg); opacity: 0; }
}

.nl-wheel-wrap {
    position: absolute; right: -4%; top: 50%; width: min(56%, 560px); aspect-ratio: 1; transform: translateY(-50%);
    opacity: 0.85; transition: transform 0.25s ease-out;
}
.nl-wheel { width: 100%; height: 100%; overflow: visible; }
.nl-wheel-rot { transform-origin: 300px 300px; animation: nl-spin 180s linear infinite; }
@keyframes nl-spin { to { transform: rotate(360deg); } }
.nl-ring { fill: none; stroke: rgba(196, 175, 255, 0.22); stroke-width: 1; stroke-dasharray: 3 6; }
.nl-ring-outer { stroke: rgba(232, 194, 82, 0.5); stroke-width: 1.6; stroke-dasharray: none; }
.nl-spoke { stroke: rgba(196, 175, 255, 0.25); stroke-width: 1; }
/* Каждая сфера «дышит» в своём ритме: колесо то выравнивается, то проседает — как жизнь. */
.nl-sector {
    fill: var(--c); fill-opacity: 0.42; stroke: var(--c); stroke-width: 1.5; stroke-opacity: 0.9;
    transform-origin: 300px 300px; transform-box: view-box;
    animation-name: nl-breathe; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
    filter: drop-shadow(0 0 6px var(--c));
}
@keyframes nl-breathe { from { transform: scale(0.42); } to { transform: scale(0.98); } }
.nl-node circle { fill: rgba(18, 10, 38, 0.92); stroke: var(--c); stroke-width: 1.6; }
.nl-node text { font-size: 22px; text-anchor: middle; dominant-baseline: central; }
.nl-node { animation: nl-node 8s ease-in-out infinite; animation-delay: calc(var(--i) * 1s); }
@keyframes nl-node {
    0%, 80%, 100% { opacity: 0.8; }
    88% { opacity: 1; filter: drop-shadow(0 0 10px var(--c)); }
}
.nl-core { fill: rgba(18, 10, 38, 0.95); stroke: #e8c252; stroke-width: 1.6; }
.nl-core-text { fill: #f5ecff; font-size: 30px; text-anchor: middle; dominant-baseline: central; }

/* Пример расклада под текстом: три карты, которые по очереди «переворачиваются». */
.nl-cards-fig { margin: 1.4rem 0 0; }
.nl-cards { display: flex; gap: 10px; }
.nl-card {
    width: 104px; padding: 12px 8px; border-radius: 14px; text-align: center; display: flex; flex-direction: column; gap: 2px;
    background: linear-gradient(165deg, color-mix(in srgb, var(--c) 30%, transparent), rgba(18, 10, 38, 0.94) 70%);
    border: 1px solid color-mix(in srgb, var(--c) 65%, transparent);
    transform: rotate(var(--r)); animation: nl-card 6s ease-in-out infinite; animation-delay: var(--d);
}
.nl-card span { font-size: 1.7rem; }
.nl-card b { color: #fff; font-size: 0.95rem; }
.nl-card small { color: rgba(240, 232, 255, 0.7); font-size: 0.7rem; line-height: 1.2; }
@keyframes nl-card {
    0%, 70%, 100% { transform: rotate(var(--r)) translateY(0); box-shadow: none; }
    80% { transform: rotate(var(--r)) translateY(-8px); box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 45%, transparent); }
}
.nl-cards-fig figcaption { margin-top: 8px; font-size: 0.78rem; color: rgba(240, 232, 255, 0.6); }

.nl-hero-grid { position: relative; display: grid; gap: 1.6rem; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
.nl-badge {
    display: inline-flex; gap: 6px; align-items: center; padding: 0.35rem 0.85rem; border-radius: 999px;
    border: 1px solid rgba(196, 175, 255, 0.5); color: #e2d6ff; font-size: 0.82rem; background: rgba(157, 120, 255, 0.14);
}
.nl-title {
    font-family: var(--font-heading); color: #f6f0ff; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.12; margin: 0.8rem 0 0.7rem;
    text-shadow: 0 0 30px rgba(157, 120, 255, 0.45);
}
.nl-title span { display: block; color: #e8c252; }
.nl-lead { color: rgba(240, 232, 255, 0.88); font-size: 1.08rem; line-height: 1.55; margin-bottom: 1rem; max-width: 34rem; }
.nl-chips-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nl-chips-row li {
    padding: 6px 12px; border-radius: 999px; font-size: 0.86rem; color: #f5efff;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
}
.nl-hero-form .mcalc-form {
    background: rgba(16, 9, 34, 0.76); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(196, 175, 255, 0.42); border-radius: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.nl-hero-form .mcalc-submit { position: relative; overflow: hidden; }
.nl-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: nl-shine 3.5s 1.5s ease-in-out infinite;
}
@keyframes nl-shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }

/* Выбор задачи в форме — яркие плашки. */
.nl-problems { border: 0; padding: 0; margin: 0; min-width: 0; }
.nl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nl-chip { position: relative; cursor: pointer; margin: 0; }
.nl-chip input { position: absolute; opacity: 0; pointer-events: none; }
.nl-chip span {
    display: inline-block; padding: 6px 11px; border-radius: 999px; font-size: 0.85rem; color: #efe7ff;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(196, 175, 255, 0.35); transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.nl-chip:hover span { border-color: #c4afff; }
.nl-chip input:checked + span {
    color: #1a0f33; font-weight: 700; background: linear-gradient(135deg, #e2d6ff, #c4afff 50%, #e8c252);
    border-color: transparent; box-shadow: 0 0 16px rgba(196, 175, 255, 0.45);
}
.nl-chip input:focus-visible + span { outline: 2px solid #e8c252; outline-offset: 2px; }

.nl-learn, .nl-problems-sec { padding: 1.5rem 0; }
.nl-learn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nl-learn-card, .nl-prob {
    padding: 16px; border-radius: 18px; background: rgba(20, 11, 42, 0.74); border: 1px solid color-mix(in srgb, var(--c, #c4afff) 40%, transparent);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.nl-learn-card:hover, .nl-prob:hover { transform: translateY(-3px); border-color: #e8c252; box-shadow: 0 12px 28px rgba(232, 194, 82, 0.14); }
.nl-learn-ico { font-size: 2rem; display: block; margin-bottom: 6px; }
.nl-learn-card h3 { font-size: 1.02rem; color: #fff; margin: 0 0 4px; }
.nl-learn-card p { color: rgba(240, 232, 255, 0.8); font-size: 0.9rem; margin: 0; line-height: 1.45; }
.nl-problems-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 0.8rem; }
.nl-prob { display: flex; flex-direction: column; gap: 2px; text-align: left; color: inherit; cursor: pointer; }
.nl-prob span { font-size: 1.6rem; }
.nl-prob strong { color: #fff; font-size: 0.98rem; }
.nl-prob small { color: rgba(240, 232, 255, 0.72); font-size: 0.82rem; line-height: 1.35; }
.nl-rod {
    display: flex; gap: 18px; align-items: flex-start; margin: 0.5rem 0 1.5rem; padding: 18px 20px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.24), rgba(20, 11, 42, 0.72)); border: 1px dashed rgba(111, 207, 151, 0.5);
}
.nl-rod-ico { font-size: 2.6rem; line-height: 1; }
.nl-rod .mland-h2 { margin-top: 0; }
.nl-rod-link {
    display: inline-block; margin-top: 4px; padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600; text-decoration: none;
    color: #eafff1; border: 1px solid rgba(111, 207, 151, 0.65); background: rgba(111, 207, 151, 0.14);
}
.nl-rod-link:hover { color: #fff; background: rgba(111, 207, 151, 0.26); }

@media (max-width: 899.98px) {
    .nl-hero { padding: 1.6rem 1rem; border-radius: 20px; }
    .nl-hero-grid { grid-template-columns: 1fr; }
    .nl-wheel-wrap { right: -30%; top: 1%; width: 95%; transform: none; opacity: 0.35; }
    .nl-glow, .nl-cards-fig { display: none; }
    .nl-learn-grid, .nl-problems-grid { grid-template-columns: 1fr 1fr; }
    .nl-rod { flex-direction: column; gap: 6px; }
}
@media (max-width: 479.98px) {
    .nl-problems-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .nl-wheel-rot, .nl-floats span, .nl-glow, .nl-sector, .nl-node, .nl-card, .nl-hero-form .mcalc-submit::after { animation: none !important; }
    .nl-sector { transform: scale(0.8); }
    .nl-floats span { display: none; }
}
