/* ============================================================
   Креатор — Лендинг «Автопостинг»
   Дизайн-система: teal #09B6A2 → #079383, Inter, full-width секции.
   Источники: Telegram (#229ED9), WordPress (#1d6a8f).
   Все стили заскоуплены под .ap-landing, чтобы не конфликтовать
   с Bootstrap и общим _Layout (навбар/футер берутся из layout).
   ============================================================ */

.ap-landing {
    --primary: #09B6A2;
    --primary-dark: #079383;
    --primary-darker: #06846B;
    --ink: #2C3E50;
    --ink-soft: #64748b;
    --line: #e6ebf0;
    --bg-soft: #f8f9fa;
    --primary-rgb: 9, 182, 162;
    --tg: #229ED9;
    --tg-rgb: 34, 158, 217;
    --wp: #1d6a8f;
    --wp-rgb: 29, 106, 143;
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ap-landing * { box-sizing: border-box; }
.ap-landing a { text-decoration: none; color: inherit; }
.ap-landing img { display: block; max-width: 100%; }

.ap-landing .ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.ap-container { max-width: 1200px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

.ap-landing .section-full-width {
    position: relative; width: 100vw; left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
}

/* ---------- Типографика заголовков ---------- */
.ap-sec-header { text-align: center; margin-bottom: 3.5rem; padding: 0 20px; }
.ap-landing .h-title {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 700; line-height: 1.15; margin: 0 0 1.4rem;
    color: var(--ink); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance;
}
.ap-landing .h-sub {
    display: block; font-size: .46em; margin-top: .55rem; font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 0;
}

/* ---------- Кнопки ---------- */
.ap-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .85rem 2rem; border-radius: 50px; font-size: 1.0625rem; font-weight: 700;
    cursor: pointer; transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative; overflow: hidden; border: 3px solid var(--primary); text-align: center;
}
.ap-btn-primary { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff !important; box-shadow: 0 8px 24px rgba(var(--primary-rgb), .28); }
.ap-btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary-darker) 100%); opacity: 0; transition: opacity .3s ease; z-index: 0; }
.ap-btn-primary:hover::before { opacity: 1; }
.ap-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--primary-rgb), .36); }
.ap-btn-primary > *, .ap-btn-primary span { position: relative; z-index: 1; }
.ap-btn-ghost { background: transparent; color: var(--primary) !important; }
.ap-btn-ghost::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); opacity: 0; transition: opacity .3s ease; z-index: 0; }
.ap-btn-ghost:hover { color: #fff !important; transform: translateY(-2px); }
.ap-btn-ghost:hover::before { opacity: 1; }
.ap-btn-ghost span { position: relative; z-index: 1; }

/* ---------- Hero — общий eyebrow ---------- */
.ap-landing .hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 100px; font-size: .875rem; font-weight: 600; letter-spacing: .02em; max-width: 100%; flex-wrap: wrap; justify-content: center; }

/* =================================================================
   HERO C — «Сплит»: текст + браузер с планом публикаций
   (body.landing-page уже отступает на 128px под fixed-шапку)
   ================================================================= */
.ap-landing .heroC { position: relative; padding: 8rem 0 11rem; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); overflow: hidden; }
.ap-landing .heroC-inner { max-width: 1240px; margin: 0 auto; padding: 0 1.75rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4.5rem; align-items: center; }
.ap-landing .heroC-text { max-width: 540px; min-width: 0; }
.ap-landing .heroC .hero-eyebrow { background: rgba(var(--primary-rgb), .1); border: 1px solid rgba(var(--primary-rgb), .2); color: var(--primary-dark); margin-bottom: 1.9rem; }
.ap-landing .heroC-title { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.12; text-transform: uppercase; letter-spacing: -.015em; margin: 0 0 1.5rem; color: var(--ink); text-wrap: balance; }
.ap-landing .heroC-title .accent { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ap-landing .heroC-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); margin: 0 0 2.4rem; line-height: 1.7; font-weight: 500; }
.ap-landing .heroC-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.ap-landing .heroC-trust { margin-top: 2.3rem; display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.ap-landing .heroC-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.ap-landing .heroC-trust .ic { color: var(--primary); }
/* браузер-мокап */
.ap-landing .heroC-stage { position: relative; min-width: 0; }
.ap-landing .browser { width: 100%; background: #fff; border-radius: 18px; box-shadow: 0 34px 80px rgba(15,40,55,.18); border: 1px solid rgba(0,0,0,.06); overflow: hidden; }
.ap-landing .browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.ap-landing .browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.ap-landing .browser-bar .dot:nth-child(1) { background: #ff5f57; } .ap-landing .browser-bar .dot:nth-child(2) { background: #febc2e; } .ap-landing .browser-bar .dot:nth-child(3) { background: #28c840; }
.ap-landing .browser-bar .url { margin-left: 10px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 50px; font-size: .76rem; color: var(--ink-soft); padding: 5px 12px; font-weight: 600; }
.ap-landing .browser-body { padding: 16px 18px 20px; }
.ap-landing .plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ap-landing .plan-head h4 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ap-landing .plan-head h4 .ic { color: var(--primary); }
.ap-landing .plan-live { font-size: .72rem; font-weight: 800; color: var(--primary-dark); background: rgba(var(--primary-rgb),.12); padding: 4px 10px; border-radius: 50px; display: inline-flex; align-items: center; gap: 6px; letter-spacing: .03em; text-transform: uppercase; }
.ap-landing .plan-live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: ap-blink 1.4s ease-in-out infinite; }
@keyframes ap-blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.ap-landing .plan-list { display: flex; flex-direction: column; gap: 0; position: relative; height: 528px; overflow: hidden; }
/* ---- строка плана: стили 1:1 со страницы Dashboard/ProjectPublicationPlan ---- */
.ap-landing .post-item { position: relative; display: flex; align-items: center; padding: .9rem; padding-left: 2.85rem; border-radius: 12px 0 0 12px; background: #fff; transition: box-shadow .2s ease, transform .2s ease, background .2s ease; box-shadow: 0 1px 2px rgba(0,0,0,.05); border: 1px solid #e5e7eb; height: 120px; margin-right: 40px; margin-bottom: 12px; min-width: 0; flex-shrink: 0; }
.ap-landing .post-item:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06); transform: translateY(-1px); background: #f8fafc; }
.ap-landing .post-item.published:hover { transform: none; box-shadow: 0 1px 2px rgba(0,0,0,.05); background: #fff; }
/* ручка перетаскивания (декоративная) */
.ap-landing .post-item .drag-handle { position: absolute; top: 0; left: 0; bottom: 0; width: 28px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); border-radius: 12px 0 0 12px; color: #94a3b8; border-right: 1px solid #e2e8f0; }
.ap-landing .post-item .drag-handle .grip { display: grid; grid-template-columns: repeat(2, 3px); gap: 3px; }
.ap-landing .post-item .drag-handle .grip i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
/* акцент-полоса + вертикальный статус (в демо показаны постоянно) */
.ap-landing .post-item::after { content: ""; position: absolute; right: -32px; top: 0; bottom: 0; width: 32px; background: #e5e7eb; border-radius: 0 4px 4px 0; transition: background .35s ease; }
.ap-landing .post-item.generating::after { background: #94a3b8; }
.ap-landing .post-item.scheduled::after { background: #09B5A1; }
.ap-landing .post-item.published::after { background: #2AABEE; }
.ap-landing .post-item .status-text { position: absolute; right: -32px; top: 0; bottom: 0; width: 32px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .5px; writing-mode: vertical-rl; text-orientation: mixed; text-transform: uppercase; pointer-events: none; z-index: 1; }
.ap-landing .post-item .status-text span { transform: rotate(180deg); white-space: nowrap; }
/* время */
.ap-landing .post-item .post-time { font-weight: 500; color: #4b5563; margin-right: 1rem; padding-right: 1rem; border-right: 1px solid #e5e7eb; min-width: 62px; display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.ap-landing .post-item .time-display { font-variant-numeric: tabular-nums; }
/* превью: квадрат + счётчик символов */
.ap-landing .post-preview-wrapper { position: relative; margin-right: 1rem; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 48px; }
.ap-landing .post-preview-image { width: 48px; height: 48px; border-radius: 8px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--g1, #f2b06b), var(--g2, #c8722f)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.ap-landing .post-preview-image::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.16) 0 7px, transparent 7px 14px); z-index: 1; }
.ap-landing .post-preview-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; z-index: 2; }
/* во время генерации миниатюра скрыта — показываем подложку со спиннером */
.ap-landing .post-item.generating .post-preview-image img { display: none; }
.ap-landing .post-item.generating .post-preview-image::before { content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; z-index: 3; border: 2.5px solid rgba(255,255,255,.55); border-top-color: #fff; border-radius: 50%; animation: ap-spin .75s linear infinite; }
@keyframes ap-spin { to { transform: rotate(360deg); } }
.ap-landing .post-char-count { font-size: .6875rem; color: #64748b; background: #f8fafc; padding: 2px 6px; border-radius: 4px; display: flex; align-items: center; gap: 3px; white-space: nowrap; border: 1px solid #e2e8f0; font-weight: 500; width: 48px; justify-content: center; }
.ap-landing .post-char-count svg { width: 11px; height: 11px; }
/* контент: заголовок + бейджи */
.ap-landing .post-content { flex-grow: 1; min-width: 0; overflow: hidden; margin-right: 1rem; }
.ap-landing .post-title { font-size: .875rem; font-weight: 500; color: #1e293b; margin: 0; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-landing .post-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: .75rem; }
.ap-landing .post-badge { display: flex; align-items: center; gap: .5rem; font-size: .75rem; padding: .5rem .75rem; border-radius: 8px; white-space: nowrap; height: 28px; border: 1px solid rgba(226,232,240,.7); overflow: hidden; }
.ap-landing .post-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.ap-landing .post-badge .badge-text { font-weight: 500; line-height: 1.2; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ap-landing .post-badge.badge-blue { color: #2563eb; background: rgba(219,234,254,.8); border-color: #bfdbfe; }
.ap-landing .post-badge.badge-purple { color: #7c3aed; background: rgba(243,232,255,.8); border-color: #e9d5ff; }
.ap-landing .uic { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) {
    .ap-landing .post-preview-wrapper { display: none; }
    .ap-landing .post-item { padding-left: 2.5rem; }
    .ap-landing .post-badges { grid-template-columns: 1fr; }
}
@media (max-width: 940px) { .ap-landing .heroC { padding: 4rem 0 5rem; } .ap-landing .heroC-inner { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; } .ap-landing .heroC-text { max-width: 640px; margin: 0 auto; text-align: center; } .ap-landing .heroC-actions, .ap-landing .heroC-trust { justify-content: center; } }

/* ============================================================ ИСТОЧНИКИ ============================================================ */
.ap-landing .ap-platforms { background: #fff; padding: 3rem 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.ap-landing .ap-platforms-label { text-align: center; color: var(--ink-soft); font-weight: 600; margin: 0 0 1.75rem; font-size: 1.05rem; }
.ap-landing .ap-platforms-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem 3.5rem; }
.ap-landing .ap-platform-item { display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); opacity: .9; transition: opacity .2s, transform .2s; }
.ap-landing .ap-platform-item:hover { opacity: 1; transform: translateY(-2px); }
.ap-landing .ap-platform-ico { width: 44px; height: 44px; display: grid; place-items: center; }
.ap-landing .ap-platform-ico svg { width: 40px; height: 40px; }

/* ============================================================ КАК ЭТО РАБОТАЕТ ============================================================ */
.ap-landing .how { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 50%, var(--bg-soft) 100%); padding: 5.5rem 0; }
.ap-landing .how-step { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; max-width: 1080px; margin: 0 auto 5rem; }
.ap-landing .how-step:last-child { margin-bottom: 0; }
.ap-landing .how-step .frame { border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 60, 55, .14); background: #fff; transition: transform .4s ease; border: 1px solid rgba(0,0,0,.04); }
.ap-landing .how-step .frame:hover { transform: translateY(-8px); }
.ap-landing .how-num { font-size: 4.5rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--primary), var(--primary-dark) 50%, var(--primary-darker)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .42; margin-bottom: .75rem; letter-spacing: -.02em; }
.ap-landing .how-step h3 { font-size: 1.7rem; font-weight: 700; margin: 0 0 .85rem; color: var(--ink); }
.ap-landing .how-step p { font-size: 1.0625rem; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.ap-landing .how-tags { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.ap-landing .how-tags span { background: rgba(var(--primary-rgb), .08); color: var(--primary-dark); font-weight: 600; font-size: .85rem; padding: .35rem .8rem; border-radius: 50px; }
@media (max-width: 900px) { .ap-landing .how-step { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3.5rem; } .ap-landing .how-step .frame { order: -1; } }

/* placeholder-кадр (вместо скриншота) */
.ap-landing .shot { aspect-ratio: 16 / 11; width: 100%; background: repeating-linear-gradient(135deg, #eef2f4 0 14px, #f6f8f9 14px 28px); display: grid; place-items: center; position: relative; }
.ap-landing .shot .shot-tag { font-family: 'SFMono-Regular', ui-monospace, 'Cascadia Code', Menlo, monospace; font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: rgba(255,255,255,.85); border: 1px dashed rgba(0,0,0,.18); padding: 7px 14px; border-radius: 8px; }

/* ============================================================ ЛУЧШИЕ НЕЙРОСЕТИ ============================================================ */
.ap-landing .models { background: linear-gradient(135deg, rgba(var(--primary-rgb), .09) 0%, rgba(var(--primary-rgb), .04) 50%, rgba(var(--primary-rgb), .09) 100%); padding: 5rem 0; overflow: hidden; border-top: 1px solid rgba(var(--primary-rgb), .1); border-bottom: 1px solid rgba(var(--primary-rgb), .1); }
.ap-landing .models .ap-sec-header { margin-bottom: 2.5rem; }
.ap-landing .models-sub { text-align: center; color: var(--ink-soft); max-width: 620px; margin: -2rem auto 2.75rem; font-size: 1.05rem; line-height: 1.6; }
.ap-landing .models-marquee { display: flex; gap: 1rem; width: max-content; animation: ap-marquee 34s linear infinite; }
.ap-landing .models-mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@keyframes ap-marquee { to { transform: translateX(-50%); } }
.ap-landing .model-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .7rem; padding: .85rem 1.4rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(15,40,55,.05); color: var(--ink); }
.ap-landing .model-chip .mc-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.ap-landing .model-chip .mc-ico { width: 20px; height: 20px; display: block; fill: currentColor; }
.ap-landing .model-chip .mc-name { font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
.ap-landing .model-chip .mc-type { display: block; font-size: .72rem; color: var(--ink-soft); font-weight: 600; }

/* ============================================================ ВОЗМОЖНОСТИ ============================================================ */
.ap-landing .ap-features { background: #fff; padding: 5.5rem 0; }
.ap-landing .ap-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1080px; margin: 0 auto; }
.ap-landing .ap-feature-card { background: var(--bg-soft); border: 1px solid rgba(0,0,0,.04); border-radius: 18px; padding: 2rem 1.75rem; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.ap-landing .ap-feature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,60,55,.1); border-color: rgba(var(--primary-rgb), .35); }
.ap-landing .ap-feature-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(var(--primary-rgb), .14), rgba(var(--primary-rgb), .06)); color: var(--primary-dark); font-size: 1.5rem; margin-bottom: 1.1rem; }
.ap-landing .ap-feature-card h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .55rem; color: var(--ink); }
.ap-landing .ap-feature-card p { font-size: .98rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .ap-landing .ap-features-grid { grid-template-columns: 1fr; } }

/* ============================================================ ПОЧЕМУ ВЫБИРАЮТ ============================================================ */
.ap-landing .why { background: linear-gradient(180deg, #eef2f7 0%, #e8eef4 100%); padding: 5.5rem 0; }
.ap-landing .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1080px; margin: 0 auto; }
.ap-landing .why-card { background: #fff; border-radius: 18px; padding: 2.25rem 1.9rem; text-align: center; border: 1px solid rgba(0,0,0,.04); }
.ap-landing .why-ico { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-size: 1.7rem; box-shadow: 0 10px 24px rgba(var(--primary-rgb), .3); }
.ap-landing .why-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .65rem; }
.ap-landing .why-card p { font-size: 1rem; color: var(--ink-soft); line-height: 1.65; margin: 0; }
@media (max-width: 900px) { .ap-landing .why-grid { grid-template-columns: 1fr; } }

/* ============================================================ ФИНАЛЬНЫЙ CTA ============================================================ */
.ap-landing .cta { background: radial-gradient(circle at 15% 20%, rgba(var(--primary-rgb), .1) 0%, transparent 45%), radial-gradient(circle at 85% 80%, rgba(var(--primary-rgb), .1) 0%, transparent 45%), #f4f7fa; padding: 5.5rem 0; text-align: center; }
.ap-landing .cta-inner { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.ap-landing .cta p { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 2rem; line-height: 1.65; }
.ap-landing .cta-feats { display: flex; gap: 1.75rem; justify-content: center; flex-wrap: wrap; margin: 0 0 2.25rem; }
.ap-landing .cta-feats span { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 600; }
.ap-landing .cta-feats .ic { color: var(--primary); }

/* стрелка-подсказка скролла */
.ap-landing .scroll-hint { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); color: var(--primary); opacity: .6; animation: ap-scrollBounce 2s ease-in-out infinite; transition: opacity .4s ease; pointer-events: none; z-index: 100; }
@keyframes ap-scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* reveal-on-scroll */
.ap-landing .reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.ap-landing .reveal.from { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
    .ap-landing .models-marquee, .ap-landing .plan-live .pulse { animation: none !important; }
}

/* ============================================================
   АДАПТИВ — планшет и мобильный телефон
   ============================================================ */

/* ---------- планшет / крупный телефон ---------- */
@media (max-width: 768px) {
    .ap-container { padding-left: 1.1rem; padding-right: 1.1rem; }

    /* компактнее вертикальные отступы секций */
    .ap-landing .heroC { padding: 2.5rem 0 3.25rem; }
    .ap-landing .how,
    .ap-landing .models,
    .ap-landing .ap-features,
    .ap-landing .why,
    .ap-landing .cta { padding: 3.5rem 0; }
    .ap-landing .ap-platforms { padding: 2.25rem 0; }
    .ap-sec-header { margin-bottom: 2rem; }

    /* заголовки секций */
    .ap-landing .h-title { font-size: clamp(1.6rem, 6.4vw, 2.1rem); margin-bottom: 1rem; }
    .ap-landing .how-num { font-size: 3.4rem; margin-bottom: .4rem; }
    .ap-landing .how-step h3 { font-size: 1.35rem; }
    .ap-landing .how-step p { font-size: 1rem; }

    /* hero */
    .ap-landing .heroC-inner { padding: 0 1.25rem; gap: 2.25rem; }
    .ap-landing .heroC-title { font-size: clamp(1.9rem, 8.5vw, 2.6rem); margin-bottom: 1.1rem; }
    .ap-landing .heroC-lead { font-size: 1.05rem; margin-bottom: 1.75rem; }
    .ap-landing .heroC-trust { margin-top: 1.75rem; gap: .7rem 1.1rem; font-size: .85rem; }
    .ap-landing .heroC .hero-eyebrow { margin-bottom: 1.4rem; font-size: .8rem; }
    .ap-landing .hero-eyebrow { font-size: .8rem; }

    /* источники */
    .ap-landing .ap-platforms-row { gap: 1.1rem 2rem; }
    .ap-landing .ap-platform-item { font-size: 1.05rem; }

    /* лучшие нейросети */
    .ap-landing .models .ap-sec-header { margin-bottom: 1.75rem; }
    .ap-landing .models-sub { margin: -1rem auto 1.75rem; font-size: 1rem; }

    /* CTA */
    .ap-landing .cta p { font-size: 1.02rem; }
    .ap-landing .cta-feats { gap: .8rem 1.4rem; margin-bottom: 1.75rem; }
}

/* ---------- телефон ---------- */
@media (max-width: 480px) {
    .ap-container { padding-left: 1rem; padding-right: 1rem; }

    .ap-landing .heroC-title { font-size: 1.9rem; }
    .ap-landing .heroC-lead { font-size: 1rem; }
    .ap-landing .hero-eyebrow { font-size: .74rem; padding: .4rem .8rem; }

    /* кнопки hero — в столбик на всю ширину */
    .ap-landing .heroC-actions { flex-direction: column; align-items: stretch; gap: .7rem; }
    .ap-landing .heroC-actions .ap-btn { width: 100%; }
    .ap-landing .ap-btn { font-size: 1rem; padding: .8rem 1.3rem; }

    /* карточки компактнее */
    .ap-landing .ap-feature-card { padding: 1.6rem 1.4rem; }
    .ap-landing .why-card { padding: 1.9rem 1.5rem; }
    .ap-landing .how-num { font-size: 3rem; }
    .ap-landing .how-step h3 { font-size: 1.25rem; }

    /* план публикаций — компактные строки под узкий экран */
    .ap-landing .plan-list { height: 480px; }
    .ap-landing .post-item { height: 108px; padding-left: 2.35rem; margin-right: 30px; }
    .ap-landing .post-item::after,
    .ap-landing .post-item .status-text { width: 24px; right: -24px; }
    .ap-landing .post-item .status-text { font-size: 10px; }
    .ap-landing .post-item .post-time { min-width: 46px; margin-right: .55rem; padding-right: .55rem; font-size: .85rem; }
    .ap-landing .post-item .drag-handle { width: 22px; }
    .ap-landing .browser-body { padding: 14px 14px 16px; }
    .ap-landing .browser-bar .url { font-size: .66rem; }
    .ap-landing .plan-head h4 { font-size: .95rem; }

    /* стрелка чуть выше нижнего края */
    .ap-landing .scroll-hint { bottom: 20px; }
}
