/* ==================== ALFACHESS ACADEMY ORIGINAL DIRECTION ==================== */
:root {
    --academy-ink: #111827;
    --academy-navy: #14213d;
    --academy-blue: #2457c5;
    --academy-amber: #f59e0b;
    --academy-amber-dark: #d97706;
    --academy-green: #168f63;
    --academy-cream: #f8f5ee;
    --academy-paper: #fffdf8;
    --academy-sky: #edf4f7;
    --academy-line: #d9e1e7;
    --academy-muted: #58667a;
    --academy-shadow: 0 22px 56px rgba(20, 33, 61, 0.13);
}

html,
body {
    background: var(--academy-cream);
}

body {
    background:
        radial-gradient(circle at 16% 10%, rgba(22, 143, 99, 0.08), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(245, 158, 11, 0.12), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, var(--academy-cream) 44%, var(--academy-sky) 100%);
    color: var(--academy-ink);
}

.header {
    background: rgba(255, 253, 248, 0.94);
    border-bottom: 1px solid rgba(20, 33, 61, 0.1);
    box-shadow: 0 8px 28px rgba(20, 33, 61, 0.06);
}

.nav {
    height: 72px;
}

.header-actions {
    display: none;
}

@media (min-width: 1024px) {
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
}

.header-cta {
    height: 42px;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.2);
}

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

.nav-links a.active,
.nav-links a:hover {
    color: var(--academy-blue);
}

.nav-links a::after {
    background: var(--academy-amber);
    height: 3px;
}

.hero {
    min-height: calc(100vh - 72px);
    padding: clamp(2rem, 4vw, 3.4rem) 0 clamp(2rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 14% 18%, rgba(36, 87, 197, 0.09), transparent 28%),
        radial-gradient(circle at 84% 16%, rgba(245, 158, 11, 0.13), transparent 28%),
        linear-gradient(135deg, #fffdf8 0%, #f8f5ee 58%, #edf4f7 100%);
    background-size: auto;
    overflow: hidden;
}

.hero::after {
    content: "A1";
    right: auto;
    left: clamp(1rem, 3vw, 2rem);
    top: auto;
    bottom: 1.2rem;
    color: rgba(20, 33, 61, 0.08);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 950;
    transform: none;
}

.hero .container {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.95fr);
    gap: clamp(2.2rem, 5vw, 5.2rem);
    align-items: center;
}

.hero-content {
    padding: clamp(1rem, 4vw, 3rem) 0;
}

.hero-badge {
    background: transparent;
    border: 0;
    color: var(--academy-blue);
    box-shadow: none;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    text-transform: none;
}

.badge-icon {
    color: var(--academy-green);
}

.hero-title {
    max-width: 760px;
    color: var(--academy-ink);
    font-size: clamp(3rem, 5.2vw, 5rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-title span {
    color: var(--academy-blue);
}

.hero-subtitle {
    max-width: 650px;
    color: #344154;
    font-size: clamp(1.08rem, 1.35vw, 1.25rem);
    line-height: 1.62;
}

.btn-primary,
.btn-secondary {
    border-radius: 12px;
    min-height: 58px;
}

.btn-primary {
    background: var(--academy-amber);
    color: #1f2937;
    border: 1px solid rgba(217, 119, 6, 0.22);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
    background: var(--academy-amber-dark);
    color: #fffdf8;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
    background: #ffffff;
    color: var(--academy-navy);
    border: 1.5px solid rgba(20, 33, 61, 0.18);
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: var(--academy-blue);
    color: var(--academy-blue);
    transform: translateY(-2px);
}

.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 720px;
    margin-top: 1.35rem;
}

.hero-trust-item {
    min-height: 76px;
    padding: 0.95rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(20, 33, 61, 0.1);
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.07);
}

.hero-trust-item span:first-child {
    background: rgba(22, 143, 99, 0.12);
    color: var(--academy-green);
    box-shadow: none;
}

.hero-image {
    min-height: min(600px, 72vh);
    border-radius: 28px;
    padding: clamp(1rem, 2vw, 1.35rem);
    background:
        linear-gradient(45deg, rgba(255,255,255,0.09) 25%, transparent 25% 50%, rgba(255,255,255,0.09) 50% 75%, transparent 75%),
        linear-gradient(135deg, #111827 0%, #14213d 58%, #2457c5 100%);
    background-size: 88px 88px, auto;
    box-shadow: var(--academy-shadow);
    border: 1px solid rgba(20, 33, 61, 0.14);
    overflow: visible;
}

.hero-image::before {
    content: "персональный маршрут";
    inset: auto auto 1.4rem 1.4rem;
    width: auto;
    height: auto;
    z-index: 4;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--academy-blue);
    font-weight: 900;
    font-size: 0.84rem;
    border: 1px solid rgba(36, 87, 197, 0.12);
}

.hero-image::after {
    content: "B2 → C4";
    right: 1.15rem;
    top: 1.15rem;
    max-width: none;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: var(--academy-amber);
    color: var(--academy-ink);
    box-shadow: 0 12px 24px rgba(0,0,0,0.16);
    transform: rotate(2deg);
}

.hero-image img {
    width: 100%;
    height: min(430px, 54vh);
    margin: 0;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 20px;
    border: 0;
    filter: saturate(1.06) contrast(1.02) brightness(1.08);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.24);
}

.hero-lesson-card,
.hero-progress-card {
    width: min(305px, 56%);
    border-radius: 14px;
    border: 1px solid rgba(20, 33, 61, 0.12);
    box-shadow: 0 18px 38px rgba(20, 33, 61, 0.14);
}

.hero-lesson-card {
    left: 1.4rem;
    bottom: -1rem;
}

.hero-progress-card {
    right: 1.4rem;
    bottom: 2.9rem;
}

.hero-card-label {
    color: var(--academy-blue);
}

.section-title {
    color: var(--academy-ink);
    font-size: clamp(2.35rem, 4vw, 3.85rem);
}

.section-lead {
    color: var(--academy-muted);
}

.story-section,
.result-section,
.advantages,
.steps,
.faq {
    background: var(--academy-paper);
}

.parent-proof,
.pricing-preview,
.footer {
    background:
        radial-gradient(circle at 14% 18%, rgba(36, 87, 197, 0.08), transparent 24%),
        linear-gradient(180deg, var(--academy-sky) 0%, #f5f8fa 100%);
}

.story-panel {
    background:
        linear-gradient(135deg, #14213d 0%, #1f365f 58%, #2457c5 100%);
    border-radius: 28px;
    box-shadow: var(--academy-shadow);
}

.story-panel::after {
    content: "8×8";
    color: rgba(255, 255, 255, 0.1);
}

.story-kicker {
    background: rgba(245, 158, 11, 0.16);
    color: #ffcf7a;
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.signal-item,
.proof-step,
.result-card,
.pricing-preview-card,
.age-card,
.step-card,
.faq-item {
    border: 1px solid rgba(20, 33, 61, 0.1);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(20, 33, 61, 0.08);
    opacity: 1;
    transform: none;
}

.story-panel .signal-item,
.story-panel .signal-item.scroll-active {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.42);
    opacity: 1;
    transform: none;
}

.story-panel .signal-item h3 {
    color: var(--academy-ink);
}

.story-panel .signal-item p {
    color: #465367;
}

.signal-mark,
.step-number,
.age-card .advantage-icon {
    background: rgba(245, 158, 11, 0.14);
    color: var(--academy-amber-dark);
    box-shadow: none;
}

.result-label,
.pricing-preview-label,
.proof-label {
    background: rgba(36, 87, 197, 0.08);
    color: var(--academy-blue);
}

.parent-proof-panel {
    border-radius: 28px;
    box-shadow: var(--academy-shadow);
}

.proof-step {
    border-left: 5px solid var(--academy-green);
}

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

.pricing-preview-card:nth-child(2) {
    transform: translateY(-8px);
    border-color: rgba(36, 87, 197, 0.26);
    box-shadow: 0 18px 44px rgba(36, 87, 197, 0.14);
}

.pricing-preview-card:nth-child(2)::after {
    background: var(--academy-green);
}

.pricing-preview .section-actions .btn-primary {
    background: var(--academy-blue);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(36, 87, 197, 0.24);
}

.cookie-consent {
    right: 1rem;
    bottom: 1rem;
    max-width: 340px;
    border-radius: 14px;
}

.footer {
    padding: clamp(2rem, 4vw, 3.5rem) 0 1.25rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(36, 87, 197, 0.08), transparent 24%),
        linear-gradient(180deg, var(--academy-sky) 0%, #f5f8fa 100%);
    border-top: 1px solid rgba(20, 33, 61, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
    margin-bottom: 0;
}

.footer-col {
    min-width: 0;
}

.footer-col h4 {
    color: var(--academy-navy);
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.2;
}

.footer-col ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin: 0;
}

.footer-col ul li a,
.footer-bottom {
    color: var(--academy-ink);
    -webkit-text-fill-color: currentColor;
}

.footer-col p {
    color: var(--academy-muted);
    margin: 0.75rem 0 0;
}

.footer-col .logo {
    align-items: center;
}

.footer-bottom {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-top: 1rem;
    border-top: 1px solid rgba(20, 33, 61, 0.1);
    text-align: left;
}

.footer-bottom p {
    margin: 0;
    color: var(--academy-muted);
}

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

    .hero-image {
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    .hero {
        padding-top: 1rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: clamp(2.35rem, 11.5vw, 3.25rem);
    }

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

    .hero-image {
        min-height: 440px;
        border-radius: 22px;
    }

    .hero-image img {
        height: 280px;
    }

    .hero-image::after {
        right: 0.75rem;
        top: 0.75rem;
        font-size: 0.86rem;
    }

    .hero-lesson-card,
    .hero-progress-card {
        width: 78%;
    }

    .hero-lesson-card {
        left: 0.8rem;
        bottom: 1rem;
    }

    .hero-progress-card {
        right: 0.8rem;
        bottom: 6.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.header-actions .header-cta.btn-primary {
    height: 42px;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    line-height: 42px;
}

/* ==================== HOMEPAGE CONTENT POLISH ==================== */
body {
    background:
        linear-gradient(45deg, rgba(36, 87, 197, 0.032) 25%, transparent 25% 75%, rgba(36, 87, 197, 0.032) 75%),
        linear-gradient(45deg, rgba(36, 87, 197, 0.032) 25%, transparent 25% 75%, rgba(36, 87, 197, 0.032) 75%),
        linear-gradient(180deg, #fffdf8 0%, #f7f4ec 52%, #edf4f7 100%);
    background-position: 0 0, 28px 28px, 0 0;
    background-size: 56px 56px, 56px 56px, auto;
}

.hero {
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(255, 253, 248, 0.74)),
        linear-gradient(45deg, rgba(20, 33, 61, 0.04) 25%, transparent 25% 75%, rgba(20, 33, 61, 0.04) 75%),
        linear-gradient(45deg, rgba(20, 33, 61, 0.04) 25%, transparent 25% 75%, rgba(20, 33, 61, 0.04) 75%),
        #f8f5ee;
    background-position: 0 0, 0 0, 28px 28px, 0 0;
    background-size: auto, 56px 56px, 56px 56px, auto;
}

.hero-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
    min-height: 0;
    padding: clamp(1rem, 2vw, 1.25rem);
    overflow: hidden;
}

.hero-photo-placeholder {
    grid-column: 1 / -1;
    min-height: min(430px, 54vh);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.09) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.09) 75%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(36, 87, 197, 0.86));
    background-position: 0 0, 0 0;
    background-size: 42px 42px, auto;
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-photo-placeholder::before {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.42);
    background:
        radial-gradient(circle at 68% 42%, rgba(245, 158, 11, 0.24), transparent 22%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.hero-photo-placeholder::after {
    content: "Здесь будет реальное фото ребёнка за шахматами";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(300px, 72%);
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.hero-image img {
    display: none;
}

.hero-image::before,
.hero-image::after {
    display: none;
}

.hero-lesson-card,
.hero-progress-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    min-height: 150px;
    padding: 1rem;
}

.hero-progress-card {
    right: auto;
    bottom: auto;
}

.hero-lesson-card {
    left: auto;
    bottom: auto;
}

.testimonials {
    padding: clamp(4rem, 7vw, 7rem) 0;
    background:
        linear-gradient(45deg, rgba(36, 87, 197, 0.035) 25%, transparent 25% 75%, rgba(36, 87, 197, 0.035) 75%),
        linear-gradient(45deg, rgba(36, 87, 197, 0.035) 25%, transparent 25% 75%, rgba(36, 87, 197, 0.035) 75%),
        #fffdf8;
    background-position: 0 0, 24px 24px, 0 0;
    background-size: 48px 48px, 48px 48px, auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
    margin-top: 2rem;
}

.testimonial-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1.1rem, 2vw, 1.35rem);
    border: 1px solid rgba(20, 33, 61, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(20, 33, 61, 0.08);
}

.testimonial-photo-slot {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    border: 1px dashed rgba(36, 87, 197, 0.28);
    background:
        linear-gradient(45deg, rgba(36, 87, 197, 0.055) 25%, transparent 25% 75%, rgba(36, 87, 197, 0.055) 75%),
        linear-gradient(180deg, #f8fafc, #eef4f7);
    background-size: 28px 28px, auto;
    display: grid;
    place-items: center;
    color: var(--academy-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.testimonial-text {
    color: #273449;
    font-size: 1rem;
    line-height: 1.58;
    margin: 0;
}

.testimonial-author {
    display: grid;
    gap: 0.15rem;
    color: var(--academy-ink);
    font-weight: 900;
}

.testimonial-author span {
    color: var(--academy-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 960px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-photo-placeholder {
        min-height: 320px;
    }

    .hero-lesson-card,
    .hero-progress-card {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 1.15rem 0 2.5rem;
    }

    .hero .container {
        gap: 1.35rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-photo-placeholder {
        min-height: 230px;
    }

    .hero-photo-placeholder::after {
        width: 78%;
        font-size: 0.92rem;
    }

    .hero-lesson-card,
    .hero-progress-card {
        width: 100%;
        min-height: auto;
        padding: 0.9rem;
    }

    .testimonials {
        padding: 3rem 0;
    }

    .testimonial-card {
        padding: 1rem;
    }

    .cookie-consent {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        max-width: none;
    }
}

.hero-title,
.hero-subtitle,
.hero-actions,
.hero-trust,
.hero-note,
.hero-image {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}
