/* ЦифРаРод — живой первый экран (FZ-RF 1090): плывущие цифры, круг девяти чисел, светящийся квадрат Пифагора. */
.cl-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(64, 214, 170, 0.28), transparent 55%),
        radial-gradient(ellipse at 12% 88%, rgba(232, 194, 82, 0.16), transparent 50%),
        linear-gradient(160deg, #031a1c 0%, #062a2a 45%, #020f12 100%);
    border: 1px solid rgba(110, 231, 192, 0.32);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(64, 214, 170, 0.1);
}
.cl-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cl-glow {
    position: absolute; right: 6%; top: 50%; width: 46%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 231, 192, 0.22), transparent 65%); animation: cl-pulse 6s ease-in-out infinite;
}
@keyframes cl-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.cl-floats { position: absolute; inset: 0; transition: transform 0.25s ease-out; }
.cl-floats span {
    position: absolute; bottom: -40px; font-family: var(--font-heading, serif); font-weight: 700;
    color: rgba(110, 231, 192, 0.5); text-shadow: 0 0 12px rgba(110, 231, 192, 0.55);
    animation-name: cl-float; animation-timing-function: linear; animation-iteration-count: infinite;
}
.cl-floats span:nth-child(3n) { color: rgba(232, 194, 82, 0.55); text-shadow: 0 0 12px rgba(232, 194, 82, 0.5); }
@keyframes cl-float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    85% { opacity: 0.8; }
    100% { transform: translateY(-560px) rotate(25deg); opacity: 0; }
}

.cl-wheel-wrap {
    position: absolute; right: -4%; top: 50%; width: min(56%, 560px); aspect-ratio: 1; transform: translateY(-50%);
    opacity: 0.8; transition: transform 0.25s ease-out;
}
.cl-wheel { width: 100%; height: 100%; overflow: visible; }
.cl-wheel-rot { transform-origin: 300px 300px; animation: cl-spin 140s linear infinite; }
@keyframes cl-spin { to { transform: rotate(360deg); } }
.cl-ring { fill: none; stroke: rgba(110, 231, 192, 0.35); stroke-width: 1.2; }
.cl-ring-outer { stroke: rgba(232, 194, 82, 0.5); stroke-width: 1.6; }
.cl-ring-inner { stroke: rgba(110, 231, 192, 0.18); stroke-dasharray: 4 6; }
.cl-tick { stroke: rgba(232, 194, 82, 0.35); stroke-width: 1; }
.cl-star { fill: none; stroke-width: 1.3; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: cl-draw 5s 0.3s ease forwards; }
.cl-star-tri { stroke: rgba(232, 194, 82, 0.55); }
.cl-star-hex { stroke: rgba(110, 231, 192, 0.45); animation-delay: 1.2s; }
@keyframes cl-draw { to { stroke-dashoffset: 0; } }
.cl-node circle { fill: rgba(3, 26, 28, 0.92); stroke: #6ee7c0; stroke-width: 1.4; }
.cl-node text {
    fill: #e8fff6; font-size: 20px; font-weight: 700; text-anchor: middle; dominant-baseline: central;
    font-family: var(--font-heading, serif);
}
.cl-node { animation: cl-node 9s ease-in-out infinite; animation-delay: calc(var(--i) * 1s); }
@keyframes cl-node {
    0%, 80%, 100% { opacity: 0.75; }
    88% { opacity: 1; filter: drop-shadow(0 0 8px #6ee7c0); }
}

/* Пример квадрата Пифагора под текстом: ячейки загораются по очереди. */
.cl-square-fig { margin: 1.3rem 0 0; width: 270px; }
.cl-square-fig figcaption { margin-top: 6px; font-size: 0.78rem; color: rgba(230, 255, 245, 0.6); }
.cl-square { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cl-sq-cell {
    aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(3, 30, 30, 0.85); border: 1px solid rgba(110, 231, 192, 0.35);
    animation: cl-cell 9s ease-in-out infinite; animation-delay: calc(var(--d) * 0.6s);
}
.cl-sq-cell b { color: #e8fff6; font-size: 1.1rem; line-height: 1; }
.cl-sq-cell small { color: rgba(220, 255, 240, 0.6); font-size: 0.62rem; margin-top: 3px; white-space: nowrap; }
@keyframes cl-cell {
    0%, 14%, 100% { border-color: rgba(110, 231, 192, 0.35); box-shadow: none; }
    6% { border-color: #e8c252; box-shadow: 0 0 18px rgba(232, 194, 82, 0.55), inset 0 0 12px rgba(232, 194, 82, 0.25); }
}

.cl-hero-grid { position: relative; display: grid; gap: 1.6rem; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.cl-badge {
    display: inline-flex; gap: 6px; align-items: center; padding: 0.35rem 0.85rem; border-radius: 999px;
    border: 1px solid rgba(110, 231, 192, 0.45); color: #b9f5df; font-size: 0.82rem; background: rgba(64, 214, 170, 0.12);
}
.cl-title {
    font-family: var(--font-heading); color: #effff8; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.12; margin: 0.8rem 0 0.7rem;
    text-shadow: 0 0 30px rgba(64, 214, 170, 0.4);
}
.cl-title span { display: block; color: #e8c252; }
.cl-lead { color: rgba(230, 255, 245, 0.86); font-size: 1.08rem; line-height: 1.55; margin-bottom: 1rem; max-width: 34rem; }
.cl-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cl-chips li {
    padding: 6px 12px; border-radius: 999px; font-size: 0.86rem; color: #e8fff6;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
}
.cl-hero-form .mcalc-form {
    background: rgba(2, 22, 24, 0.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 231, 192, 0.4); border-radius: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.cl-hero-form .mcalc-submit { position: relative; overflow: hidden; }
.cl-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: cl-shine 3.5s 1.5s ease-in-out infinite;
}
@keyframes cl-shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }

.cl-learn, .cl-forecast { padding: 1.5rem 0; }
.cl-learn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cl-learn-card, .cl-fc {
    padding: 16px; border-radius: 18px; background: rgba(6, 30, 30, 0.72); border: 1px solid rgba(110, 231, 192, 0.25);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.cl-learn-card:hover, .cl-fc:hover { transform: translateY(-3px); border-color: #e8c252; box-shadow: 0 12px 28px rgba(232, 194, 82, 0.14); }
.cl-learn-ico { font-size: 2rem; display: block; margin-bottom: 6px; }
.cl-learn-card h3 { font-size: 1.02rem; color: #fff; margin: 0 0 4px; }
.cl-learn-card p { color: rgba(230, 255, 245, 0.78); font-size: 0.9rem; margin: 0; line-height: 1.45; }
.cl-forecast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0.8rem 0 1.1rem; }
.cl-fc { display: flex; flex-direction: column; gap: 2px; }
.cl-fc span { font-size: 1.6rem; }
.cl-fc strong { color: #fff; font-size: 0.98rem; }
.cl-fc small { color: rgba(230, 255, 245, 0.72); font-size: 0.8rem; line-height: 1.35; }
.cl-fc em { font-style: normal; font-size: 0.72rem; margin-top: 6px; align-self: flex-start; padding: 2px 8px; border-radius: 999px; }
.cl-free { color: #0b2b24; background: #6ee7c0; }
.cl-paid { color: #2a1f05; background: #e8c252; }
.cl-cta {
    display: inline-block; padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none;
    color: #06231d; background: linear-gradient(135deg, #c9fbe8, #6ee7c0 45%, #e8c252); box-shadow: 0 10px 26px rgba(64, 214, 170, 0.3);
}
.cl-cta:hover { color: #06231d; filter: brightness(1.07); }
.cl-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.22), rgba(6, 30, 30, 0.7)); border: 1px dashed rgba(110, 231, 192, 0.45);
}
.cl-rod-ico { font-size: 2.6rem; line-height: 1; }
.cl-rod .mland-h2 { margin-top: 0; }

@media (max-width: 899.98px) {
    .cl-hero { padding: 1.6rem 1rem; border-radius: 20px; }
    .cl-hero-grid { grid-template-columns: 1fr; }
    .cl-wheel-wrap { right: -28%; top: 2%; width: 92%; transform: none; opacity: 0.35; }
    .cl-glow, .cl-square-fig { display: none; }
    .cl-learn-grid, .cl-forecast-grid { grid-template-columns: 1fr 1fr; }
    .cl-rod { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .cl-wheel-rot, .cl-floats span, .cl-glow, .cl-star, .cl-node, .cl-sq-cell, .cl-hero-form .mcalc-submit::after { animation: none !important; }
    .cl-star { stroke-dashoffset: 0; }
    .cl-floats span { display: none; }
}
.cl-rod-link {
    display: inline-block; margin-top: 4px; padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600; text-decoration: none;
    color: #e8fff6; border: 1px solid rgba(110, 231, 192, 0.6); background: rgba(64, 214, 170, 0.12);
}
.cl-rod-link:hover { color: #fff; background: rgba(64, 214, 170, 0.24); }
