/* public/styles/landing.css */
/* Стили только для статического лендинга /ru/index.html */

/* ----- Базовые сбросы и общие стили ----- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text-main);
    background:
            radial-gradient(circle at top left, #eef2ff 0, #f5f5fb 40%, #ffffff 100%);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--page-padding-x);
}

/* ----- Кнопки ----- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition:
            background-color 0.15s ease,
            color 0.15s ease,
            box-shadow 0.15s ease,
            border-color 0.15s ease,
            transform 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-text-on-primary);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text-main);
    border-color: var(--color-border-subtle);
}

.btn-ghost:hover {
    border-color: var(--color-primary);
}

/* ----- HEADER / NAVBAR ----- */

.appbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(
            90deg,
            #ffffff 0,
            #f5f5fb 40%,
            rgba(245, 245, 251, 0.9) 100%
    );
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.appbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem var(--page-padding-x);
    max-width: var(--container-max);
    margin: 0 auto;
}

.appbar-brand {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem 0;
}

.appbar-logo {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.appbar__title {
    display: none;
}

.appbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.appbar__btn {
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-pill);
    transition:
            background-color 0.15s ease,
            color 0.15s ease,
            transform 0.15s ease,
            box-shadow 0.15s ease;
}

.appbar__btn:hover {
    background: rgba(148, 163, 184, 0.16);
    transform: translateY(-1px);
}

.appbar__btn--signup {
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #ffffff;
}

.appbar__btn--signup:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(148, 163, 184, 0.35);
}

/* ----- HERO ----- */

.hero {
    padding: 2.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    justify-items: center;
}

.hero-left {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

.hero-title {
    margin: 1rem auto 0.85rem;
    font-size: clamp(2.2rem, 3.3vw, 2.9rem);
    line-height: 1.12;
    text-align: center;
    max-width: 720px;
}

.hero-brand {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.hero-subtitle {
    margin: 0 auto 1.6rem;
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 560px;
    text-align: center;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 0;
}

/* «партиклы» в hero */

.hero-orbit {
    position: absolute;
    border-radius: 999px;
    opacity: 0.75;
    transform-origin: center;
    mix-blend-mode: normal;
}

.hero-orbit--1 {
    width: 260px;
    height: 260px;
    top: -90px;
    right: -80px;
    background: radial-gradient(circle at 30% 30%, var(--color-secondary-soft), transparent 70%);
}

.hero-orbit--2 {
    width: 220px;
    height: 220px;
    bottom: -80px;
    left: -80px;
    background: radial-gradient(circle at 40% 20%, var(--color-primary-soft), transparent 72%);
}

.hero-orbit--3 {
    width: 160px;
    height: 160px;
    top: 42%;
    left: 60%;
    background: radial-gradient(circle at 30% 20%, var(--color-accent-soft), transparent 72%);
}

/* ----- Общие секции ----- */

.page-main {
    flex: 1 0 auto;
    padding-bottom: 3rem;
}

.section {
    padding: var(--section-spacing-y) 0;
}

.section--light {
    background-color: var(--color-bg-elevated);
}

.section--muted {
    background-color: var(--color-bg-muted);
}

.section + .section {
    border-top: 1px solid var(--color-border-subtle);
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-text-soft);
    margin-bottom: 0.4rem;
}

.section-title {
    font-size: 1.8rem;
    margin: 0 0 0.5rem;
}

.section-lead {
    margin: 0;
    max-width: 46rem;
    color: var(--color-text-muted);
}

#ai-demo .section-lead {
    max-width: 100%;
}

.section-content {
    display: grid;
    gap: 1.5rem;
}

.section ul {
    padding-left: 1.2rem;
}

.section li + li {
    margin-top: 0.3rem;
}

/* CTA‑ссылки (старый класс оставлен на всякий случай) */

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: #fff;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    margin-top: 0.5rem;
}

.cta-btn:hover {
    text-decoration: none;
    box-shadow: var(--shadow-elevated);
}

/* Blockquote */

blockquote {
    background: #f6f8fa;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--color-secondary);
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 1.5rem 0;
}

/* ----- DETAILS / ACCORDIONS (Программа курса, FAQ) ----- */

details > summary {
    cursor: pointer;
}

summary.toggle,
summary.faq {
    list-style: none;
}

summary.toggle::-webkit-details-marker,
summary.faq::-webkit-details-marker {
    display: none;
}

/* Крупные аккордеоны (например, «Программа курса») */

summary.toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 1.1rem 0 0.6rem;
    padding: 0.8rem 1rem;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    user-select: none;
    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
}

summary.toggle:hover {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

summary.toggle::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--color-primary-strong);
    border-bottom: 2px solid var(--color-primary-strong);
    transform: rotate(45deg);
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

details[open] > summary.toggle::after {
    transform: rotate(225deg);
}

/* Версия аккордеона внутри карточки программы — без собственной плашки */

.program-card .toggle {
    background: transparent;
    margin: 0 0 0.6rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    transform: none;
}

.program-card details[open] > summary.toggle {
    background: transparent;
}

/* FAQ‑аккордеон — отдельный стиль под секцию #faq */

#faq .section-header {
    margin-bottom: 1.75rem;
}

#faq .section-lead {
    max-width: 34rem;
}

#faq details {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    background: var(--color-bg-elevated);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

#faq details + details {
    margin-top: 0.75rem;
}

#faq summary.faq {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.96rem;
    font-weight: 600;
    margin: 0;
    padding: 0.85rem 1rem;
    user-select: none;
}

#faq summary.faq::before {
    content: "";
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-pill);
    background: var(--color-primary-soft);
    border: 1px solid var(--color-primary);
}

#faq summary.faq::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--color-primary-strong);
    border-bottom: 2px solid var(--color-primary-strong);
    margin-left: auto;
    flex-shrink: 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

#faq details[open] > summary.faq::after {
    transform: rotate(225deg);
}

#faq details > p {
    margin: 0;
    padding: 0.6rem 1rem 0.95rem 3.3rem;
    border-top: 1px solid var(--color-border-subtle);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

#faq details > p:last-child {
    padding-bottom: 1rem;
}

/* ----- FOOTER ----- */

footer {
    margin-top: auto;
    background: var(--color-primary-soft);
    padding: 1.2rem 0;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--color-border-subtle);
}

footer .footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

footer .footer-label {
    color: #000;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

footer .btn {
    border: 1px solid #000;
    background: transparent;
    padding: 0.45rem 0.9rem;
    margin: 0.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    color: #000;
}

footer .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

footer .telegram-join {
    margin-top: 0.75rem;
}

@media (min-width: 1200px) {
    footer .telegram-join {
        position: absolute;
        right: 1.2rem;
        top: 50%;
        transform: translateY(-50%);
        margin-top: 0;
    }
}

/* ----- БОЛЬШАЯ ВИЗУАЛИЗАЦИЯ AI (секция "Как работает") ----- */

.ai-demo {
    margin-top: 1.5rem;
}

.ai-demo-card {
    background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
    border-radius: 1.4rem;
    padding: 1.4rem 1.5rem 1.3rem;
    color: #e5e7eb;
    box-shadow: var(--shadow-elevated);
    border: 1px solid rgba(148, 163, 184, 0.55);
    position: relative;
    overflow: hidden;
}

.ai-demo-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
            radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.16), transparent 55%),
            radial-gradient(circle at 110% 0, rgba(79, 70, 229, 0.45), transparent 55%),
            radial-gradient(circle at 50% 120%, rgba(56, 189, 248, 0.28), transparent 55%);
    pointer-events: none;
}

.ai-demo-inner {
    position: relative;
    z-index: 1;
}

.ai-demo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 1.2rem;
    align-items: stretch;
}

.ai-demo-left {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ai-demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #cbd5f5;
}

.ai-demo-header span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-demo-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
}

.ai-demo-editor {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 0.9rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(30, 64, 175, 0.85);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ai-demo-code pre {
    margin: 0;
    white-space: pre;
}

.ai-demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ai-demo-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ai-demo-btn--primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: rgba(34, 197, 94, 0.9);
    color: #ecfdf5;
}

.ai-demo-btn-icon {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
}

.ai-demo-chat-window {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0.9rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ai-demo-message {
    border-radius: 0.8rem;
    padding: 0.45rem 0.6rem;
    max-width: 85%;
}

.ai-demo-message--user {
    align-self: flex-end;
    background: rgba(79, 70, 229, 0.25);
    border: 1px solid rgba(129, 140, 248, 0.7);
}

.ai-demo-message--ai {
    align-self: flex-start;
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.ai-demo-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-top: 0.9rem;
    font-size: 0.75rem;
    color: #cbd5f5;
}

/* ----- FEATUTES / CARDS ----- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--color-border-subtle);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition:
            transform 0.18s ease,
            box-shadow 0.18s ease,
            border-color 0.18s ease,
            background-color 0.18s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
    border-color: rgba(129, 140, 248, 0.7);
    background: linear-gradient(135deg, #ffffff, #f9fafb);
}

.feature-card-title {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.feature-card-body {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ----- PRICING ----- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.3rem;
    margin-top: 1.5rem;
}

.pricing-card {
    background: #ffffff;
    border-radius: 1.1rem;
    padding: 1.3rem 1.35rem 1.2rem;
    border: 1px solid var(--color-border-subtle);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    position: relative;
    overflow: hidden;
    transition:
            transform 0.18s ease,
            box-shadow 0.18s ease,
            border-color 0.18s ease,
            background 0.18s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
    border-color: rgba(79, 70, 229, 0.75);
}

.pricing-card--highlight {
    background: radial-gradient(circle at top left, #eef2ff 0, #ffffff 55%);
    border-color: rgba(79, 70, 229, 0.85);
}

.pricing-card-badge {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.pricing-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.pricing-price {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

.pricing-period {
    font-size: 0.75rem;
    color: var(--color-text-soft);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.pricing-list {
    padding-left: 1.1rem;
    margin: 0.4rem 0 0.7rem;
    font-size: 0.88rem;
}

.pricing-list li + li {
    margin-top: 0.25rem;
}

.pricing-cta {
    margin-top: auto;
}

.pricing-cta .btn {
    width: 100%;
}

.pricing-note {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--color-text-soft);
}

/* ----- Program card ----- */

.program-card {
    background: #f9fafb;
    border-radius: 1rem;
    border: 1px solid var(--color-border-subtle);
    padding: 1.1rem 1.2rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    max-width: 900px;
    margin: 0 auto;
}

/* ----- AUTHOR / JAVA / TELEGRAM INFO CARDS ----- */

.section-info .info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.3rem;
}

.info-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    padding: 1.4rem 1.5rem 1.45rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition:
            transform 0.18s ease,
            box-shadow 0.18s ease,
            border-color 0.18s ease,
            background-color 0.18s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--color-primary);
    background-color: #ffffff;
}

.info-card-header {
    margin-bottom: 0.25rem;
}

.info-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-card-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.info-card a {
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

.info-card-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.info-tag {
    padding: 0.6rem 0.7rem;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    border: 1px solid var(--color-primary);
    font-size: 0.82rem;
    line-height: 1.35;
}

.info-tag-label {
    font-weight: 600;
    display: block;
}

.info-tag-desc {
    display: block;
    color: var(--color-text-muted);
}

.info-card-cta {
    margin-top: 0.4rem;
    align-self: flex-start;
}

.info-card-cta .btn {
    min-width: 0;
}

.info-card--java .info-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.info-card-visual {
    max-width: 320px;
    margin: 0 auto 0.4rem;
}

.info-list {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

.info-list li + li {
    margin-top: 0.25rem;
}

/* Java benefits inside Java card */

.java-benefits {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.65rem;
}

.java-benefit {
    background: var(--color-bg-muted);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
    padding: 0.7rem 0.8rem;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
    transition:
            background-color 0.16s ease,
            box-shadow 0.16s ease,
            transform 0.16s ease,
            border-color 0.16s ease;
}

.java-benefit:hover {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(-3px);
}

.java-benefit-title {
    margin: 0 0 0.25rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.java-benefit-text {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ----- FINAL CTA + CONTACTS ----- */

.section-final .final-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
    align-items: center;
}

.final-main-title {
    margin: 0 0 0.75rem;
}

.final-main-text {
    margin: 0 0 1.1rem;
    max-width: 32rem;
    color: var(--color-text-muted);
    font-size: 0.96rem;
}

.final-cta {
    display: inline-flex;
    margin-bottom: 0.3rem;
}

.section-final .info-card {
    padding: 1.1rem 1.25rem;
}

.section-final .info-card-title {
    font-size: 1rem;
}

@media (min-width: 960px) {
    .section-final .final-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    }

    .section-info .info-grid {
        grid-template-columns: minmax(0, 1fr);
        align-items: flex-start;
    }

    .info-card--author {
        grid-column: 1 / -1;
    }
}

/* ----- Shine‑эффект на карточках ----- */

.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: "";
    position: absolute;
    inset: -120%;
    background: linear-gradient(
            120deg,
            transparent 30%,
            rgba(255, 255, 255, 0.45) 45%,
            transparent 60%
    );
    transform: translate3d(-120%, 0, 0);
    opacity: 0;
    pointer-events: none;
}

/* ----- Appear animations & hero particles ----- */

@keyframes sectionFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroOrbitFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate3d(14px, -12px, 0) scale(1.04);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.6;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .anim-section,
    .anim-card {
        will-change: transform, opacity;
    }

    .anim-section.anim-visible,
    .anim-card.anim-visible {
        animation-name: sectionFadeInUp;
        animation-duration: 0.7s;
        animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
        animation-fill-mode: both;
        animation-delay: var(--anim-delay, 0s);
    }

    .anim-card.anim-visible {
        animation-duration: 0.55s;
    }

    .hero-orbit {
        animation: heroOrbitFloat 24s ease-in-out infinite alternate;
    }

    .hero-orbit--2 {
        animation-duration: 30s;
    }

    .hero-orbit--3 {
        animation-duration: 36s;
    }

    /* ступенчатые задержки анимаций для сеток */
    .features-grid .feature-card:nth-child(1) { --anim-delay: 0.02s; }
    .features-grid .feature-card:nth-child(2) { --anim-delay: 0.08s; }
    .features-grid .feature-card:nth-child(3) { --anim-delay: 0.14s; }
    .features-grid .feature-card:nth-child(4) { --anim-delay: 0.20s; }
    .features-grid .feature-card:nth-child(5) { --anim-delay: 0.26s; }
    .features-grid .feature-card:nth-child(6) { --anim-delay: 0.32s; }

    .pricing-grid .pricing-card:nth-child(1) { --anim-delay: 0.04s; }
    .pricing-grid .pricing-card:nth-child(2) { --anim-delay: 0.10s; }
    .pricing-grid .pricing-card:nth-child(3) { --anim-delay: 0.16s; }

    .section-info .info-card:nth-child(1) { --anim-delay: 0.03s; }
    .section-info .info-card:nth-child(2) { --anim-delay: 0.09s; }
    .section-info .info-card:nth-child(3) { --anim-delay: 0.15s; }

    .section-final .final-main { --anim-delay: 0.03s; }
    .section-final .final-contacts { --anim-delay: 0.09s; }

    /* shine только на hover и только для pointer‑устройств */
    @media (hover: hover) {
        .card-shine:hover::before {
            opacity: 1;
            transform: translate3d(120%, 0, 0);
            transition:
                    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
                    opacity 0.4s ease;
        }
    }
}

/* ----- Адаптив ----- */

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 1.8rem;
    }

    .section {
        padding: 3.4rem 0;
    }

    .ai-demo-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .appbar-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .appbar-nav {
        justify-content: flex-start;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .features-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .btn,
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}
