/* ИИ — Помощник — публичная главная (base.html + body.landing-body) */

body.landing-body {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #ffffff;
    overflow-x: hidden;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
    color: #0f172a;
}

/* Весь текст лендинга — Manrope (перебивает Inter из style.css) */
body.landing-body .landing-header,
body.landing-body main,
body.landing-body .page-footer,
body.landing-body .landing-header :not(.fas):not(.far):not(.fab),
body.landing-body main :not(.fas):not(.far):not(.fab),
body.landing-body .page-footer :not(.fas):not(.far):not(.fab) {
    font-family: 'Manrope', sans-serif;
}

body.landing-body .btn,
body.landing-body .btn-primary,
body.landing-body .btn-secondary,
body.landing-body .btn-outline,
body.landing-body .landing-nav-link,
body.landing-body .btn-small {
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.02em;
}

body.landing-body h1,
body.landing-body h2,
body.landing-body h3,
body.landing-body h4 {
    letter-spacing: -0.025em;
    font-weight: 700;
}

/* Мелкий текст — Manrope, чуть крупнее и с межбуквенным интервалом */
body.landing-body p,
body.landing-body li,
body.landing-body .landing-section-sub,
body.landing-body .landing-role-card p,
body.landing-body .landing-role-card ul,
body.landing-body .landing-step p,
body.landing-body .landing-feature p,
body.landing-body .role-showcase-teaser,
body.landing-body .role-showcase-bullets li,
body.landing-body .landing-faq details p,
body.landing-body .landing-bot-text p,
body.landing-body .hero-strip-lead,
body.landing-body .role-detail-hero-text .lead,
body.landing-body .role-feature-copy p,
body.landing-body .page-footer,
body.landing-body .page-footer p,
body.landing-body .page-footer a {
    letter-spacing: 0.012em;
}

body.landing-body main {
    width: 100%;
    max-width: none;
    padding: 0;
    flex: none;
}

body.landing-body > :not(.landing-ambient) {
    position: relative;
    z-index: 1;
}

.landing-page {
    width: 100%;
    max-width: none;
    background: transparent;
}

/* Размытые цветовые пятна — отдельный слой, не внутри .landing-page */
.landing-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.landing-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.85;
}

.landing-blob-a {
    width: min(520px, 70vw);
    height: min(520px, 70vw);
    top: 180px;
    left: -140px;
    background: rgba(59, 130, 246, 0.28);
}

.landing-blob-b {
    width: min(460px, 65vw);
    height: min(460px, 65vw);
    top: 42%;
    right: -120px;
    background: rgba(14, 165, 233, 0.22);
}

.landing-blob-c {
    width: min(400px, 60vw);
    height: min(400px, 60vw);
    bottom: 8%;
    left: 18%;
    background: rgba(129, 140, 248, 0.2);
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: none;
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.landing-header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px clamp(16px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.landing-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Hero — полоса на всю ширину экрана */
.landing-hero-strip {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.hero-strip-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    min-height: 0;
    padding: 24px clamp(16px, 4vw, 48px) 18px;
    background: linear-gradient(115deg, #0f172a 0%, #1e3a8a 38%, #2563eb 62%, #0ea5e9 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-strip-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr minmax(300px, 380px);
    align-items: center;
    gap: 28px 32px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.hero-strip-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 90% at 0% 50%, rgba(56, 189, 248, 0.35), transparent 55%),
        radial-gradient(ellipse 45% 80% at 100% 30%, rgba(129, 140, 248, 0.28), transparent 50%),
        radial-gradient(circle at 72% 80%, rgba(255, 255, 255, 0.08), transparent 40%);
}

.hero-strip-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.32) 0.85px, transparent 0.85px);
    background-size: 22px 22px;
    opacity: 0.58;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.hero-strip-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
}

.hero-strip-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-strip-name {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

body.landing-body .hero-strip-copy,
body.landing-body .hero-strip-copy h1,
body.landing-body .hero-strip-copy .hero-line,
body.landing-body .hero-strip-copy .hero-line-glow,
body.landing-body .hero-strip-copy .hero-strip-lead,
body.landing-body .hero-strip-brand .hero-strip-name {
    font-family: 'Manrope', sans-serif !important;
}

.hero-strip-copy h1 {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.hero-line {
    font-size: clamp(1.55rem, 3.2vw, 2.55rem);
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -0.035em;
}

.hero-line-glow {
    font-size: clamp(1.5rem, 3vw, 2.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #fff 0%, #bae6fd 45%, #e0e7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-strip-lead {
    margin: 12px 0 0;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    max-width: 54ch;
    letter-spacing: 0.015em;
}

.hero-strip-flow {
    flex-shrink: 0;
    padding: 14px 18px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.hero-flow-caption {
    margin: 0 0 10px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hero-flow-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hero-flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hero-flow-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.hero-flow-site .hero-flow-icon-wrap {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 100%);
}

.hero-flow-max .hero-flow-icon-wrap {
    background: linear-gradient(145deg, #38bdf8 0%, #0284c7 100%);
    border-color: rgba(186, 230, 253, 0.55);
    box-shadow:
        0 10px 28px rgba(14, 165, 233, 0.45),
        0 0 0 4px rgba(56, 189, 248, 0.2);
}

.hero-flow-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.95);
}

.hero-flow-bridge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 88px;
    height: 72px;
    flex-shrink: 0;
    padding: 0 2px;
}

.hero-flow-line {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 50%;
    height: 3px;
    margin-top: -1px;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(56, 189, 248, 0.75) 100%
    );
}

.hero-flow-dot {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    animation: hero-flow-pulse 1.4s ease-in-out infinite;
}

.hero-flow-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-flow-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-flow-dot:nth-child(4) {
    animation-delay: 0.6s;
}

.hero-flow-packet {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    background: #7dd3fc;
    box-shadow: 0 0 14px #38bdf8, 0 0 4px #fff;
    animation: hero-flow-travel 2.2s ease-in-out infinite;
    z-index: 2;
}

@keyframes hero-flow-pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes hero-flow-travel {
    0% { left: 0; opacity: 0; transform: scale(0.6); }
    8% { opacity: 1; transform: scale(1); }
    92% { opacity: 1; transform: scale(1); }
    100% { left: calc(100% - 14px); opacity: 0; transform: scale(0.6); }
}

.hero-strip-scroll {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.hero-strip-scroll:hover {
    color: #fff;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 900px) {
    .hero-strip-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }
    .hero-strip-brand {
        flex-direction: row;
        justify-content: center;
    }
    .hero-strip-copy h1 {
        align-items: center;
    }
    .hero-line {
        white-space: normal;
    }
    .hero-strip-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-strip-flow {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-flow-icon-wrap {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }

    .hero-flow-bridge {
        width: 72px;
        height: 64px;
    }
}

@media (max-width: 520px) {
    .landing-hero-strip {
        padding: 0;
    }
    .hero-strip-inner {
        padding: 18px 16px 14px;
    }
    .hero-flow-track {
        width: 100%;
        justify-content: space-between;
    }

    .hero-flow-bridge {
        flex: 1;
        max-width: 96px;
        width: auto;
        margin: 0 4px;
    }
}

.landing-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.landing-section-title {
    text-align: center;
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.landing-section-sub {
    text-align: center;
    margin: 0 0 28px;
    color: #64748b;
    font-size: 1.02rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
    font-weight: 500;
}

.landing-video-section .landing-section-sub {
    margin-bottom: 20px;
}

.landing-video-wrap {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    background: #0f172a;
}

.landing-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    vertical-align: middle;
    background: #0f172a;
}

.landing-video--poster {
    object-fit: contain;
    background: #f1f5f9;
}

.landing-video-note {
    max-width: 900px;
    margin: 12px auto 0;
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

.landing-video-note code {
    font-size: 0.85em;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.landing-roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.landing-role-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
}

.landing-role-card .role-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.landing-role-card.role-teacher .role-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.landing-role-card.role-student .role-icon {
    background: #d1fae5;
    color: #047857;
}

.landing-role-card.role-parent .role-icon {
    background: #ffedd5;
    color: #c2410c;
}

.landing-role-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: #0f172a;
}

.landing-role-card p {
    margin: 0;
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.6;
    flex: 1;
}

.landing-role-card ul {
    margin: 14px 0 18px;
    padding-left: 1.15rem;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
}

.landing-role-card .role-cta {
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.landing-role-card .role-cta:hover {
    text-decoration: underline;
}

.landing-how-wrap {
    width: 100%;
    margin: 0;
    padding: 52px 0 56px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #eef4ff;
    background-image: url('../images/landing/2733.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.landing-how-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.68) 0%,
            rgba(255, 255, 255, 0.38) 50%,
            rgba(255, 255, 255, 0.62) 100%
        ),
        linear-gradient(
            90deg,
            rgba(224, 242, 254, 0.5) 0%,
            rgba(255, 255, 255, 0.28) 50%,
            rgba(237, 233, 254, 0.45) 100%
        );
    pointer-events: none;
}

.landing-how-section {
    position: relative;
    z-index: 1;
}

/* Появление заголовков секций при прокрутке */
.landing-reveal-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.32em;
    perspective: 600px;
}

.landing-reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.85em) rotateX(28deg);
    filter: blur(10px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.65s ease;
    transition-delay: calc(0.08s + var(--d, 0) * 0.14s);
}

.landing-reveal-sub {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.45s,
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.landing-section-reveal.is-inview .landing-reveal-word {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
}

.landing-section-reveal.is-inview .landing-reveal-sub {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .landing-reveal-word,
    .landing-reveal-sub {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

.landing-how-wrap .landing-step {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 24px 16px 20px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: visible;
}

.landing-how-wrap .landing-step::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 72px;
    height: 72px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--step-glow, radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 72%));
    pointer-events: none;
    z-index: 0;
}

.landing-how-wrap .landing-step > * {
    position: relative;
    z-index: 1;
}

.landing-how-wrap .landing-step:hover {
    transform: translateY(-4px);
    border-color: rgba(203, 213, 225, 0.95);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
}

.landing-how-wrap .landing-step:nth-child(1) {
    --step-glow: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, transparent 72%);
    --step-shadow: rgba(37, 99, 235, 0.28);
    --step-grad-a: #93b8eb;
    --step-grad-b: #6f9fd8;
    --step-grad-c: #5a8bc4;
}

.landing-how-wrap .landing-step:nth-child(2) {
    --step-glow: radial-gradient(circle, rgba(5, 150, 105, 0.16) 0%, transparent 72%);
    --step-shadow: rgba(5, 150, 105, 0.28);
    --step-grad-a: #7fd4b0;
    --step-grad-b: #5fbb96;
    --step-grad-c: #4ea884;
}

.landing-how-wrap .landing-step:nth-child(3) {
    --step-glow: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 72%);
    --step-shadow: rgba(124, 58, 237, 0.26);
    --step-grad-a: #b5a0ef;
    --step-grad-b: #9a85d8;
    --step-grad-c: #8875c8;
}

.landing-how-wrap .landing-step:nth-child(4) {
    --step-glow: radial-gradient(circle, rgba(234, 88, 12, 0.15) 0%, transparent 72%);
    --step-shadow: rgba(234, 88, 12, 0.26);
    --step-grad-a: #ebc088;
    --step-grad-b: #d9a468;
    --step-grad-c: #c99458;
}

.landing-how-wrap .landing-step .step-num {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 1rem;
    color: #f8fafc;
    background: linear-gradient(145deg, var(--step-grad-a) 0%, var(--step-grad-b) 52%, var(--step-grad-c) 100%);
    box-shadow:
        0 5px 14px var(--step-shadow),
        0 2px 5px rgba(15, 23, 42, 0.06);
}

.landing-how-wrap .landing-step .step-num::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--step-glow);
    z-index: -1;
    filter: blur(2px);
}

.landing-how-wrap .landing-step .step-num {
    position: relative;
    isolation: isolate;
}

.landing-how-wrap .landing-step h4 {
    margin: 0 0 8px;
    font-size: 0.96rem;
    color: #0f172a;
}

.landing-how-wrap .landing-step p {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
    .landing-how-wrap .landing-step {
        transition: none;
    }

    .landing-how-wrap .landing-step:hover {
        transform: none;
    }
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.landing-step {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
}

.landing-step .step-num {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.landing-step h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: #0f172a;
}

.landing-step p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.landing-feature {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.landing-feature i {
    color: #2563eb;
    font-size: 1.25rem;
    margin-top: 2px;
}

.landing-feature h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #0f172a;
}

.landing-feature p {
    margin: 0;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
}

.landing-bot {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 42%);
    align-items: center;
    gap: 24px 28px;
}

.landing-bot-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
}

.landing-bot-cta {
    text-decoration: none;
    white-space: nowrap;
}

.landing-bot-text h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #0f172a;
}

.landing-bot-text p {
    margin: 0;
    max-width: 520px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.landing-bot-visual {
    margin: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-bot-art {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 14px;
}

@keyframes bot-phone-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes bot-bubble-in {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bot-check-pop {
    0%, 60% {
        opacity: 0;
        transform: scale(0.6);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bot-typing-dot {
    0%, 80%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@keyframes bot-deco-drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(4px, -6px); }
}

.landing-bot-art .bot-art-phone {
    animation: bot-phone-float 4.5s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.landing-bot-art .bot-art-bubble-code {
    animation: bot-bubble-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.landing-bot-art .bot-art-bubble-task {
    animation: bot-bubble-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
}

.landing-bot-art .bot-art-bubble-done {
    animation: bot-bubble-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.3s both;
}

.landing-bot-art .bot-art-bubble-done .bot-art-check {
    animation: bot-check-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) 1.65s both;
}

.landing-bot-art .bot-art-typing-dot {
    animation: bot-typing-dot 1.1s ease-in-out infinite;
}

.landing-bot-art .bot-art-typing-dot:nth-of-type(2) {
    animation-delay: 0.15s;
}

.landing-bot-art .bot-art-typing-dot:nth-of-type(3) {
    animation-delay: 0.3s;
}

.landing-bot-art .bot-art-deco-a {
    animation: bot-deco-drift 5s ease-in-out infinite;
}

.landing-bot-art .bot-art-deco-b {
    animation: bot-deco-drift 6.5s ease-in-out infinite reverse;
}

.landing-bot-art .bot-art-deco-c {
    animation: bot-deco-drift 7s ease-in-out infinite;
    animation-delay: 0.8s;
}

@media (prefers-reduced-motion: reduce) {
    .landing-bot-art .bot-art-phone,
    .landing-bot-art .bot-art-bubble-code,
    .landing-bot-art .bot-art-bubble-task,
    .landing-bot-art .bot-art-bubble-done,
    .landing-bot-art .bot-art-bubble-done .bot-art-check,
    .landing-bot-art .bot-art-typing-dot,
    .landing-bot-art .bot-art-deco {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.landing-faq {
    max-width: 720px;
    margin: 0 auto;
}

.landing-faq details {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.landing-faq summary {
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
}

.landing-faq summary::-webkit-details-marker {
    display: none;
}

.landing-faq details p {
    margin: 12px 0 0;
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.6;
}

.landing-cta-bottom {
    text-align: center;
    padding: 36px 20px 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.landing-cta-bottom h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: #0f172a;
}

.landing-cta-bottom p {
    margin: 0 0 22px;
    color: #64748b;
}

.landing-footer-note {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    padding-bottom: 24px;
}

@media (max-width: 900px) {
    .landing-roles {
        grid-template-columns: 1fr;
    }
    .landing-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .landing-features {
        grid-template-columns: 1fr;
    }
    .landing-bot {
        grid-template-columns: 1fr;
    }
    .landing-bot-visual {
        order: 2;
    }
    .landing-bot-art {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .landing-steps {
        grid-template-columns: 1fr;
    }
    .hero-strip-inner {
        padding: 18px 16px 14px;
    }
    .landing-header-actions .btn-small {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Навигация лендинга */
.landing-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.landing-nav-link {
    text-decoration: none;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    letter-spacing: 0;
}

.landing-nav-link:hover,
.landing-nav-link.active {
    color: #1d4ed8;
    background: #eff6ff;
}

@media (max-width: 768px) {
    .landing-header-inner {
        flex-wrap: wrap;
    }
    .landing-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        padding-top: 4px;
    }
}

/* Витринные карточки ролей на главной */
.landing-roles-showcase {
    align-items: stretch;
}

.landing-roles-showcase > .landing-role-showcase {
    min-width: 0;
    width: 100%;
}

.landing-role-showcase {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.role-showcase-preview-link {
    display: block;
    line-height: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.role-showcase-preview {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    vertical-align: middle;
    transform: scale(1.06);
    transform-origin: center center;
}

/* Учитель: превью — целиком скрин галереи */
.landing-role-showcase.role-teacher .role-showcase-preview-link {
    background: #f1f5f9;
}

.landing-role-showcase.role-teacher .role-showcase-preview {
    aspect-ratio: 1200 / 725;
    object-fit: contain;
    transform: none;
    background: #f1f5f9;
}

.role-showcase-body {
    padding: 18px 20px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: stretch;
}

.role-showcase-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.role-showcase-head h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
}

.role-showcase-teaser {
    margin: 0 0 12px;
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.6;
}

.role-showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.role-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.01em;
    border: none;
    box-shadow: none;
    text-shadow: none;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
}

.landing-role-showcase.role-teacher .role-tag {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 42%, #93c5fd 100%);
    color: #1e40af;
}

.landing-role-showcase.role-student .role-tag {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 42%, #6ee7b7 100%);
    color: #047857;
}

.landing-role-showcase.role-parent .role-tag {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 42%, #fdba74 100%);
    color: #9a3412;
}

.role-showcase-bullets {
    margin: 0 0 16px;
    padding-left: 1.1rem;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.45;
    flex: 1;
}

.landing-role-showcase > .role-showcase-actions {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    flex-shrink: 0;
}

body.landing-body .landing-role-showcase > .role-showcase-actions > .role-showcase-btn {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Страницы ролей — hero на всю ширину */
body.landing-body .role-detail-hero {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

body.landing-body .role-detail-hero-inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 28px clamp(16px, 4vw, 48px) 16px;
    box-sizing: border-box;
}

body.landing-body .role-detail-hero-grid {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 0;
}

.role-detail-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.role-detail-breadcrumb {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: #64748b;
}

.role-detail-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.role-detail-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: center;
    background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
    color: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 16px 40px rgba(29, 78, 216, 0.22);
}

.role-detail-page.role-student .role-detail-hero-grid {
    background: linear-gradient(120deg, #047857 0%, #059669 50%, #10b981 100%);
    box-shadow: 0 16px 40px rgba(5, 150, 105, 0.22);
}

.role-detail-page.role-parent .role-detail-hero-grid {
    background: linear-gradient(120deg, #c2410c 0%, #ea580c 50%, #f59e0b 100%);
    box-shadow: 0 16px 40px rgba(234, 88, 12, 0.22);
}

.role-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.role-detail-hero-text h1 {
    margin: 0 0 12px;
    font-size: clamp(1.55rem, 3.5vw, 2.15rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.role-detail-hero-text .lead {
    margin: 0 0 16px;
    opacity: 0.95;
    line-height: 1.55;
    font-size: 1rem;
}

.role-where-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.role-where-banner i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.role-where-banner strong {
    display: block;
    margin-bottom: 2px;
}

.role-where-banner span {
    opacity: 0.92;
}

.role-detail-hero-media {
    margin: 0;
    width: 100%;
    min-height: 320px;
    max-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-sizing: border-box;
}

.role-detail-hero-media img {
    width: auto;
    height: auto;
    max-width: min(100%, 240px);
    max-height: 340px;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: block;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.role-detail-page.role-teacher .role-detail-hero-media {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

.role-detail-page.role-student .role-detail-hero-media {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
}

.role-detail-page.role-parent .role-detail-hero-media {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

.role-detail-hero-media figcaption {
    margin-top: 10px;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
    text-align: center;
}

.role-detail-hero-media code {
    font-size: 0.68rem;
}

.role-detail-page .role-secondary-cta {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.role-feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.role-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
}

.role-feature-row.reverse {
    direction: rtl;
}

.role-feature-row.reverse > * {
    direction: ltr;
}

.role-feature-copy h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #0f172a;
}

.role-feature-copy p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.role-feature-media {
    margin: 0;
    width: 100%;
    min-height: 240px;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 14px;
    border-radius: 12px;
    background: #f8fafc;
    box-sizing: border-box;
}

.role-feature-media img {
    width: auto;
    height: auto;
    max-width: min(100%, 280px);
    max-height: 240px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: block;
    background: #fff;
}

.role-detail-page.role-teacher .role-feature-media {
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

.role-detail-page.role-student .role-feature-media {
    background: linear-gradient(180deg, #f8fafc 0%, #ecfdf5 100%);
}

.role-detail-page.role-parent .role-feature-media {
    background: linear-gradient(180deg, #f8fafc 0%, #fff7ed 100%);
}

.role-feature-media figcaption {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
}

.role-day-steps {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .role-detail-hero-grid {
        grid-template-columns: 1fr;
    }
    .role-feature-row,
    .role-feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .role-day-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .role-day-steps {
        grid-template-columns: 1fr;
    }
}

/* Увеличение картинок на страницах ролей */
.role-detail-page img.role-zoomable {
    cursor: zoom-in;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.role-detail-page img.role-zoomable:hover {
    transform: scale(1.02);
}

.role-detail-page img.role-zoomable:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.role-img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.role-img-lightbox.is-open {
    display: flex;
}

.role-img-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.82);
    cursor: zoom-out;
}

.role-img-lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1100px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.role-img-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.role-img-lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.role-img-lightbox-close:hover {
    background: rgba(15, 23, 42, 0.85);
}
