/* ==================== KIDS EDTECH REDESIGN ==================== */
:root {
    --kids-blue: #5d7cff;
    --kids-blue-strong: #315df5;
    --kids-blue-dark: #18265f;
    --kids-sky: #eaf2ff;
    --kids-yellow: #ffc533;
    --kids-yellow-dark: #ffae00;
    --kids-coral: #ff6b5f;
    --kids-mint: #19c7b7;
    --kids-ink: #151829;
    --kids-muted: #58667a;
    --kids-line: #dfe7f5;
    --kids-shadow: 0 18px 42px rgba(49, 93, 245, 0.13);
    --kids-shadow-hard: 0 22px 0 rgba(24, 38, 95, 0.08);
    --kids-radius: 22px;
}

html {
    background: #f6f9ff;
}

body {
    background:
        linear-gradient(rgba(49, 93, 245, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 93, 245, 0.045) 1px, transparent 1px),
        #f6f9ff;
    background-size: 34px 34px;
    color: var(--kids-ink);
}

.container {
    max-width: 1320px;
}

.header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(24, 38, 95, 0.09);
    box-shadow: 0 10px 28px rgba(24, 38, 95, 0.05);
}

.nav {
    height: 64px;
}

.logo-icon {
    width: 42px;
    height: 42px;
}

.logo-text,
.nav-links a,
.hamburger span {
    color: var(--kids-ink);
}

.nav-links {
    gap: clamp(1.1rem, 2vw, 2rem);
}

.nav-links a {
    font-size: 0.94rem;
    font-weight: 850;
}

.nav-links a::after {
    height: 3px;
    background: var(--kids-blue-strong);
    border-radius: 999px;
}

.hero {
    min-height: calc(100vh - 64px);
    padding: clamp(1.35rem, 3vw, 2rem) 0 0;
    background:
        radial-gradient(circle at 82% 22%, rgba(255, 197, 51, 0.26), transparent 24%),
        radial-gradient(circle at 8% 18%, rgba(25, 199, 183, 0.18), transparent 26%),
        linear-gradient(rgba(49, 93, 245, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 93, 245, 0.08) 1px, transparent 1px),
        #fffdf8;
    background-size: auto, auto, 33px 33px, 33px 33px, auto;
    border-bottom: 0;
    overflow: hidden;
}

.hero::after {
    content: "♞";
    position: absolute;
    right: clamp(1rem, 6vw, 5rem);
    top: 12%;
    width: auto;
    height: auto;
    background: none;
    color: rgba(93, 124, 255, 0.2);
    font-size: clamp(7rem, 16vw, 15rem);
    line-height: 1;
    transform: rotate(-10deg);
}

.hero .container {
    position: relative;
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
}

.hero-content {
    padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.hero-badge {
    display: inline-flex;
    margin: 0 0 1.15rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(49, 93, 245, 0.14);
    color: var(--kids-blue-dark);
    box-shadow: 0 12px 26px rgba(49, 93, 245, 0.1);
    font-size: 0.94rem;
    font-weight: 850;
}

.badge-icon {
    color: var(--kids-coral);
}

.hero-title {
    max-width: 710px;
    color: #303030;
    font-size: clamp(3.2rem, 5.65vw, 5.35rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: 0;
}

.hero-title::first-line {
    color: #303030;
}

.hero-title strong,
.hero-title em,
.hero-title span {
    color: var(--kids-blue-strong);
}

.hero-subtitle {
    max-width: 620px;
    margin: 1.55rem 0 1.7rem;
    color: #263042;
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    line-height: 1.48;
}

.hero-actions {
    align-items: center;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    min-height: 58px;
    border-radius: 999px;
    font-size: 1.03rem;
    font-weight: 900;
}

.btn-primary {
    background: var(--kids-yellow);
    color: #242424;
    border: 2px solid rgba(24, 38, 95, 0.08);
    box-shadow: 0 7px 0 var(--kids-yellow-dark), 0 18px 34px rgba(255, 197, 51, 0.35);
}

.btn-primary:hover {
    background: #ffd45c;
    color: #1e2430;
    box-shadow: 0 5px 0 var(--kids-yellow-dark), 0 16px 30px rgba(255, 197, 51, 0.34);
    transform: translateY(2px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--kids-blue-dark);
    border: 2px solid rgba(24, 38, 95, 0.14);
    box-shadow: 0 7px 0 rgba(24, 38, 95, 0.1);
}

.btn-secondary:hover {
    background: #f7f9ff;
    border-color: rgba(49, 93, 245, 0.32);
    transform: translateY(2px);
}

.hero-trust {
    max-width: 780px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.45rem;
}

.hero-trust-item {
    min-height: 86px;
    align-items: flex-start;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid rgba(24, 38, 95, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 0 rgba(24, 38, 95, 0.04), 0 12px 30px rgba(24, 38, 95, 0.08);
    color: var(--kids-ink);
    font-weight: 850;
}

.hero-trust-item span:first-child {
    width: 24px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--kids-mint);
    color: #fff;
}

.hero-note {
    display: none;
}

.hero-image {
    justify-self: stretch;
    min-height: min(620px, 72vh);
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 0;
    border-radius: 32px;
    background:
        radial-gradient(circle at 22% 30%, rgba(255,255,255,0.34), transparent 30%),
        linear-gradient(135deg, #6a88ff 0%, #315df5 62%, #243a9b 100%);
    box-shadow: 0 28px 0 rgba(49, 93, 245, 0.11), 0 42px 90px rgba(24, 38, 95, 0.24);
    overflow: visible;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 1.1rem;
    width: auto;
    height: auto;
    border-radius: 24px;
    background:
        linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 32px 32px;
    border: 0;
    opacity: 1;
    z-index: 0;
}

.hero-image::after {
    content: "Шахматы как суперсила";
    position: absolute;
    right: -1.2rem;
    top: 3.8rem;
    z-index: 3;
    max-width: 190px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: var(--kids-yellow);
    color: #282828;
    box-shadow: 0 12px 0 rgba(24, 38, 95, 0.12);
    font-weight: 950;
    font-size: 1rem;
    transform: rotate(4deg);
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 78%;
    margin: 7% auto 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 9px solid #ffffff;
    border-radius: 50%;
    filter: saturate(1.18) contrast(1.06) brightness(1.03);
    box-shadow: 0 24px 46px rgba(12, 24, 72, 0.28);
}

.hero-lesson-card,
.hero-progress-card {
    z-index: 4;
    width: min(295px, 48%);
    padding: 1rem;
    border: 1px solid rgba(24, 38, 95, 0.1);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 13px 0 rgba(24, 38, 95, 0.08), 0 18px 42px rgba(24, 38, 95, 0.13);
}

.hero-progress-card {
    top: auto;
    right: -0.7rem;
    bottom: 2.2rem;
}

.hero-lesson-card {
    left: -1.2rem;
    bottom: 3.4rem;
}

.hero-card-label {
    color: var(--kids-blue-strong);
    font-weight: 950;
}

.hero-lesson-card strong,
.hero-progress-card strong {
    color: var(--kids-ink);
    font-size: 1.03rem;
}

.hero-lesson-card p,
.hero-progress-card p {
    color: var(--kids-muted);
    line-height: 1.35;
}

.story-section,
.result-section,
.advantages,
.steps,
.faq {
    background: #fffdf8;
}

.parent-proof,
.pricing-preview,
.footer {
    background:
        linear-gradient(rgba(49, 93, 245, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 93, 245, 0.08) 1px, transparent 1px),
        var(--kids-sky);
    background-size: 34px 34px;
}

.section-title {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    color: var(--kids-ink);
    font-size: clamp(2.45rem, 4.4vw, 4.2rem);
    line-height: 0.98;
    font-weight: 950;
}

.section-lead {
    max-width: 740px;
    color: var(--kids-muted);
    font-size: 1.13rem;
    line-height: 1.55;
}

.story-panel,
.parent-proof-panel {
    border-radius: 34px;
    border: 0;
    box-shadow: none;
}

.story-panel {
    align-items: stretch;
    padding: clamp(1.5rem, 4vw, 3.6rem);
    background:
        linear-gradient(135deg, #18265f 0%, #315df5 68%, #5d7cff 100%);
    color: #fff;
    overflow: hidden;
}

.story-panel::after {
    content: "!";
    position: absolute;
    right: 4%;
    top: -8%;
    color: rgba(255,255,255,0.13);
    font-size: clamp(12rem, 20vw, 22rem);
    font-weight: 950;
    line-height: 1;
}

.story-text h2,
.parent-proof-panel h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.story-text h2,
.story-text p {
    color: #ffffff;
}

.story-kicker,
.result-label,
.proof-label,
.pricing-preview-label {
    color: var(--kids-blue-strong);
    font-size: 0.82rem;
    font-weight: 950;
    text-transform: uppercase;
}

.story-kicker {
    display: inline-flex;
    color: #18265f;
    background: var(--kids-yellow);
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
}

.signal-list {
    gap: 0.9rem;
}

.signal-item,
.proof-step,
.result-card,
.pricing-preview-card,
.age-card,
.step-card,
.faq-item {
    border: 2px solid rgba(24, 38, 95, 0.1);
    border-radius: var(--kids-radius);
    background: #ffffff;
    box-shadow: 0 12px 0 rgba(24, 38, 95, 0.055), 0 18px 38px rgba(24, 38, 95, 0.08);
}

.signal-item {
    padding: 1.1rem;
}

.signal-mark,
.step-number,
.age-card .advantage-icon {
    background: var(--kids-yellow);
    color: #232323;
    border: 0;
    box-shadow: 0 5px 0 rgba(24, 38, 95, 0.12);
    font-weight: 950;
}

.signal-item:nth-child(2) .signal-mark,
.result-card:nth-child(2) .result-label,
.age-card:nth-child(2) .advantage-icon {
    background: #dff7ff;
    color: var(--kids-blue-strong);
}

.signal-item:nth-child(3) .signal-mark,
.result-card:nth-child(3) .result-label,
.age-card:nth-child(3) .advantage-icon {
    background: #e7fbf3;
    color: #008a7b;
}

.signal-item:nth-child(4) .signal-mark,
.result-card:nth-child(4) .result-label,
.age-card:nth-child(4) .advantage-icon {
    background: #ffe7e3;
    color: #d63d31;
}

.signal-item h3,
.signal-item p {
    color: var(--kids-ink);
}

.result-grid,
.advantages-grid {
    gap: 1.35rem;
}

.result-card,
.age-card {
    padding: clamp(1.35rem, 2.4vw, 2.1rem);
}

.result-card {
    min-height: 232px;
}

.result-card h3,
.age-card h3,
.step-card h3,
.proof-step h3,
.faq-question h3 {
    color: var(--kids-ink);
    font-weight: 950;
}

.result-card p,
.age-card p,
.step-card p,
.proof-step p,
.faq-answer,
.pricing-preview-meta {
    color: var(--kids-muted);
    font-size: 1.02rem;
}

.result-label,
.pricing-preview-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1.1rem;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    background: #eef3ff;
}

.parent-proof-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.6rem, 4vw, 3.6rem);
    background: #ffffff;
    border: 2px solid rgba(24, 38, 95, 0.08);
    box-shadow: var(--kids-shadow-hard);
}

.proof-label {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #e7fbf3;
    color: #008a7b;
}

.proof-step {
    padding: 1.15rem 1.25rem;
    border-left: 8px solid var(--kids-blue-strong);
}

.pricing-preview {
    padding: clamp(4rem, 7vw, 7rem) 0;
}

.pricing-preview-grid {
    gap: 1.5rem;
}

.pricing-preview-card {
    position: relative;
    padding: 1.55rem;
    border-radius: 24px;
    overflow: visible;
}

.pricing-preview-card:nth-child(2) {
    border-color: rgba(49, 93, 245, 0.36);
    box-shadow: 0 14px 0 rgba(49, 93, 245, 0.18), 0 22px 46px rgba(49, 93, 245, 0.16);
    transform: translateY(-12px);
}

.pricing-preview-card:nth-child(2)::after {
    content: "Лучший старт";
    position: absolute;
    top: -15px;
    right: 18px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--kids-coral);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 950;
}

.pricing-preview-price {
    color: var(--kids-blue-dark);
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 950;
}

.pricing-preview .section-actions .btn-primary {
    min-width: min(440px, 100%);
    background: var(--kids-blue-strong);
    color: #ffffff;
    box-shadow: 0 7px 0 #1f3db8, 0 20px 36px rgba(49, 93, 245, 0.24);
}

.steps {
    background: #fffdf8;
}

.step-card {
    padding: 1.45rem;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    padding: 1.3rem 1.45rem;
}

.footer {
    color: var(--kids-ink);
}

.footer h4,
.footer-col h4,
.footer-col ul li a,
.footer-bottom {
    color: var(--kids-ink);
}

.cookie-consent {
    border-radius: 20px;
}

.modal-content {
    border-radius: 28px;
}

@media (max-width: 960px) {
    .hero .container,
    .parent-proof-panel {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 520px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .nav {
        height: 64px;
    }

    .hero {
        min-height: auto;
        padding-top: 1rem;
    }

    .hero-content {
        padding-top: 1.4rem;
        text-align: left;
    }

    .hero-title {
        font-size: clamp(2.55rem, 13vw, 3.6rem);
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-trust {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 430px;
        border-radius: 26px;
    }

    .hero-image img {
        width: 82%;
        margin-top: 10%;
    }

    .hero-image::after {
        right: 0.4rem;
        top: 1.8rem;
        max-width: 155px;
        font-size: 0.88rem;
    }

    .hero-lesson-card,
    .hero-progress-card {
        width: 72%;
        max-width: 270px;
    }

    .hero-progress-card {
        right: 0.5rem;
        bottom: 1.2rem;
    }

    .hero-lesson-card {
        left: 0.5rem;
        bottom: 5.4rem;
    }

    .section-title {
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .story-panel,
    .parent-proof-panel {
        border-radius: 26px;
    }

    .pricing-preview-card:nth-child(2) {
        transform: none;
    }
}
