/* Amellin — home page styles. Extracted from templates/index.html for browser caching. */
    /* ---------- Hero ---------- */
    .am-home .am-hero {
        display: flex;
        align-items: center;
        min-height: 560px;
        padding: 64px 0 76px;
    }
    .am-home .am-hero-inner { width: 100%; }
    .am-home .am-hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr); gap: clamp(36px, 6vw, 80px); }
    .am-home .am-hero-copy { max-width: 640px; }
    .am-home .am-h1 {
        max-width: 640px;
        font-size: clamp(40px, 4.6vw, 62px);
        line-height: 1.03;
        letter-spacing: -0.03em;
        text-wrap: balance;
    }
    .am-home .am-h1-sub {
        display: block;
        margin-top: 6px;
        font-size: .62em;
        line-height: 1.08;
        letter-spacing: -0.02em;
        color: var(--am-muted);
    }
    .am-home .am-hero .am-lead { max-width: 560px; }
    .am-home .am-hero-meta {
        display: flex; flex-wrap: wrap; gap: 8px 18px;
        margin-top: 18px; font-size: 13px; color: var(--am-muted);
    }
    .am-home .am-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
    .am-home .am-hero-meta i { color: var(--am-gold-deep); font-size: 12px; }

    /* ---------- Hero: карточка сравнения ---------- */
    .am-home .am-visual { padding: 10px 0 18px 12px; }
    .am-home .am-compare { padding: clamp(20px, 2.5vw, 28px); border-radius: 26px; }
    .am-home .am-compare-search {
        display: flex; align-items: center; gap: 10px;
        margin-bottom: 12px; padding: 12px 14px;
        border: 1px solid var(--am-line); border-radius: 14px;
        background: var(--am-bg); font-size: 14px;
    }
    .am-home .am-compare-search i { color: var(--am-muted); font-size: 13px; }
    .am-home .am-compare-search span { font-weight: 600; }
    .am-home .am-compare-search em {
        margin-left: auto; padding: 4px 9px; border-radius: 999px;
        background: var(--am-green-soft); color: var(--am-green);
        font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap;
    }
    .am-home .am-compare-head { gap: 12px; flex-wrap: wrap; }
    .am-home .am-row { min-height: 64px; padding: 12px 14px; }
    .am-home .am-row.best { box-shadow: 0 8px 24px rgba(5, 150, 105, .08); border-color: rgba(5, 150, 105, .3); background: linear-gradient(105deg, #ECFDF5, #fff 82%); }
    .am-home .am-row.best .am-tag { background: #059669; color: #fff; font-size: 13px; padding: 7px 12px; }
    .am-home .am-compare-foot {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        margin-top: 14px; padding-top: 14px;
        border-top: 1px dashed var(--am-line);
        font-size: 13px; color: var(--am-muted);
    }
    .am-home .am-compare-foot b {
        font-family: 'Poppins', sans-serif; font-size: 20px; letter-spacing: -0.02em;
        color: var(--am-green); white-space: nowrap;
    }
    .am-home .am-float-badge {
        display: block; left: -12px; bottom: -70px; z-index: 2;
        padding: 13px 17px; border: 1px solid rgba(255,255,255,.12);
        color: #fff; text-decoration: none;
        transition: transform .3s var(--am-ease), box-shadow .3s ease, background .3s ease;
    }
    .am-home .am-float-badge b { display: flex; align-items: center; gap: 8px; font-size: 20px; }
    .am-home .am-float-badge b i { color: var(--am-gold); transition: transform .3s var(--am-ease); }
    .am-home .am-float-badge span { font-size: 12px; }
    .am-home .am-float-badge:hover,
    .am-home .am-float-badge:focus-visible {
        color: #fff; background: #17233b; transform: translateY(-5px);
        box-shadow: 0 18px 36px rgba(15,23,42,.28);
    }
    .am-home .am-float-badge:hover b i { transform: translateY(3px); }

    /* ---------- Карусель категорий ---------- */
    .am-home .am-marquee { padding: 22px 0; }
    .am-home .am-marquee-track { width: max-content; gap: 0; animation: am-home-marquee 34s linear infinite; }
    .am-home .am-marquee-group { display: flex; flex: 0 0 auto; align-items: center; gap: clamp(30px, 4vw, 62px); padding-right: clamp(30px, 4vw, 62px); }
    .am-home .am-marquee-item {
        position: relative; display: inline-flex; align-items: center; gap: 10px;
        min-height: 36px; color: #8492a6; text-decoration: none;
        font-family: 'Poppins', sans-serif; font-size: clamp(17px, 1.5vw, 21px);
        font-weight: 600; letter-spacing: .01em; white-space: nowrap;
        transition: color .25s ease, transform .35s var(--am-ease), text-shadow .25s ease;
    }
    .am-home .am-marquee-item::before {
        content: ''; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%;
        background: var(--am-gold); transform: scale(.55); opacity: 0;
        transition: transform .3s var(--am-ease), opacity .25s ease, box-shadow .25s ease;
    }
    .am-home .am-marquee-item:hover,
    .am-home .am-marquee-item:focus-visible {
        color: var(--am-ink); transform: translateY(-3px) scale(1.035);
        text-shadow: 0 5px 18px rgba(15,23,42,.12);
    }
    .am-home .am-marquee-item:hover::before,
    .am-home .am-marquee-item:focus-visible::before {
        transform: scale(1); opacity: 1; box-shadow: 0 0 0 5px rgba(255,215,0,.18);
    }
    .am-home .am-marquee:hover .am-marquee-track,
    .am-home .am-marquee:focus-within .am-marquee-track { animation-play-state: paused; }
    @keyframes am-home-marquee { to { transform: translateX(-50%); } }

    /* ---------- Полоса цифр ---------- */
    .am-home .am-stat { padding: 26px 24px; transition: background .25s ease; }
    .am-home .am-stat b {
        font-size: 30px; letter-spacing: -0.03em;
        font-variant-numeric: tabular-nums;
    }
    .am-home .am-stat span { display: block; margin-top: 4px; line-height: 1.4; }
    .am-home .am-stat:hover { background: #FFFDF3; }

    /* ---------- «Знакомо?» ---------- */
    .am-home .am-pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 28px; }
    .am-home .am-pain {
        padding: 26px; border: 1px solid var(--am-line); border-radius: var(--am-radius-lg);
        background: var(--am-white); box-shadow: var(--am-shadow-sm);
    }
    .am-home .am-pain-ico {
        display: flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px;
        background: var(--am-gold-soft); color: var(--am-ink); font-size: 17px;
    }
    .am-home .am-pain h3 { margin: 0 0 8px; font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 600; }
    .am-home .am-pain p { margin: 0; color: var(--am-muted); font-size: 15px; line-height: 1.6; }

    /* ---------- Шаги + мини-интерфейс ---------- */
    .am-home .am-step { display: flex; flex-direction: column; }
    .am-home .am-step-num { font-size: 44px; margin-bottom: 14px; }
    .am-home .am-step p { margin-bottom: 20px; }
    .am-home .am-step-demo {
        margin-top: auto; padding: 14px;
        border: 1px solid var(--am-line); border-radius: 14px;
        background: var(--am-bg);
    }
    .am-home .am-demo-files { display: flex; gap: 6px; margin-bottom: 8px; }
    .am-home .am-demo-files span {
        padding: 3px 8px; border-radius: 6px;
        background: var(--am-white); border: 1px solid var(--am-line);
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--am-muted);
    }
    .am-home .am-demo-drop {
        display: flex; align-items: center; gap: 7px;
        padding: 10px; border: 1px dashed #CBD5E1; border-radius: 10px;
        color: var(--am-muted); font-size: 12px;
    }
    .am-home .am-demo-search {
        display: flex; align-items: center; gap: 8px;
        padding: 10px 11px; border: 1px solid var(--am-line); border-radius: 10px;
        background: var(--am-white); font-size: 12px; font-weight: 600; color: var(--am-ink);
    }
    .am-home .am-demo-search i { color: var(--am-muted); }
    .am-home .am-demo-search em { margin-left: auto; color: var(--am-green); font-style: normal; font-size: 10px; font-weight: 700; }
    .am-home .am-demo-hint { margin-top: 8px; font-size: 11px; color: var(--am-muted); }
    .am-home .am-demo-price {
        display: flex; justify-content: space-between; gap: 8px;
        padding: 7px 0; font-size: 12px; color: var(--am-muted);
    }
    .am-home .am-demo-price b { color: var(--am-ink); font-variant-numeric: tabular-nums; }
    .am-home .am-demo-price.best { padding: 7px 9px; margin: 2px 0 4px; border-radius: 8px; background: var(--am-green-soft); color: var(--am-green); }
    .am-home .am-demo-price.best b { color: var(--am-green); }
    .am-home .am-demo-save { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--am-green); }

    /* ---------- Тарифы ---------- */
    .am-home .am-home-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
    .am-home .am-home-plan {
        position: relative; display: flex; flex-direction: column;
        padding: clamp(22px, 3vw, 34px); border: 1px solid var(--am-line); border-radius: 22px;
        background: #fff; box-shadow: var(--am-shadow-sm);
        transition: transform .3s var(--am-ease), box-shadow .3s var(--am-ease), border-color .3s ease;
    }
    .am-home .am-home-plan:hover { transform: translateY(-4px); box-shadow: var(--am-shadow); }
    .am-home .am-home-plan.is-premium {
        border-color: rgba(224, 168, 0, .55);
        background:
            radial-gradient(520px 220px at 100% -10%, rgba(255, 215, 0, .2), transparent 62%),
            linear-gradient(180deg, #FFFDF6 0%, #fff 60%);
        box-shadow: 0 24px 54px -28px rgba(224, 168, 0, .55), var(--am-shadow-sm);
    }
    .am-home .am-home-plan.is-premium::before {
        content: "Рекомендуем"; position: absolute; top: 0; right: 24px; transform: translateY(-50%);
        padding: 6px 12px; border-radius: 999px; background: var(--am-ink); color: var(--am-gold);
        font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    }
    .am-home .am-home-plan-head { display: flex; align-items: center; gap: 12px; }
    .am-home .am-home-plan-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--am-line-2); color: var(--am-ink-2); font-size: 17px; }
    .am-home .am-home-plan.is-premium .am-home-plan-icon { background: var(--am-gold-soft); color: #8A6500; }
    .am-home .am-home-plan h3 { margin: 0; font-family: 'Poppins', sans-serif; font-size: 22px; line-height: 1.15; }
    .am-home .am-home-plan-tagline { margin: 8px 0 0; color: var(--am-muted); font-size: 13px; line-height: 1.5; }
    .am-home .am-home-plan-price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 2px; }
    .am-home .am-home-plan-price b { font-family: 'Poppins', sans-serif; font-size: 40px; line-height: 1; letter-spacing: -.04em; }
    .am-home .am-home-plan-price span { color: var(--am-muted); font-size: 13px; }
    .am-home .am-home-plan-note { margin: 0 0 18px; color: var(--am-muted); font-size: 12px; }
    .am-home .am-home-plan-note.is-good { color: #047857; font-weight: 600; }
    .am-home .am-home-plan ul { display: grid; gap: 9px; margin: 0 0 22px; padding: 18px 0 0; border-top: 1px solid var(--am-line); list-style: none; }
    .am-home .am-home-plan li { display: flex; gap: 9px; align-items: flex-start; color: var(--am-ink-2); font-size: 13px; line-height: 1.45; }
    .am-home .am-home-plan li i { flex: 0 0 14px; margin-top: 3px; color: var(--am-green); font-size: 11px; }
    .am-home .am-home-plan.is-premium li i { color: #B8860B; }
    .am-home .am-home-plan .am-btn { width: 100%; margin-top: auto; }
    .am-home .am-home-plans-link { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--am-muted); }
    .am-home .am-home-plans-link a { color: var(--am-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--am-gold-deep); text-underline-offset: 3px; }

    .am-home .am-step, .am-home .am-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
    .am-home .am-step:hover { transform: translateY(-4px); box-shadow: var(--am-shadow); }
    .am-home .am-faq details { transition: padding .2s ease; }
    .am-home .am-faq details[open] { padding-left: 14px; border-left: 3px solid var(--am-gold); }
    .am-home .am-footer { margin-top: 0; }
    .am-home section[id] { scroll-margin-top: 92px; }

    /* ---------- Липкая кнопка на телефоне ---------- */
    .am-home .am-sticky-cta { display: none; }

    @media (max-width: 1024px) {
        .am-home .am-hero { min-height: auto; }
        .am-home .am-hero-grid { grid-template-columns: 1fr; gap: 34px; }
        .am-home .am-hero-copy { max-width: 760px; }
        .am-home .am-visual { width: min(100%, 620px); margin: 0 auto; }
    }
    @media (max-width: 640px) {
        .am-home .am-pain-grid { gap: 12px; }
    }
    @media (max-width: 720px) {
        .am-home { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
        .am-home .am-hero { padding: 38px 0 44px; }
        .am-home .am-h1 { font-size: clamp(30px, 8.6vw, 38px); line-height: 1.06; letter-spacing: -0.025em; }
        .am-home .am-h1-sub { font-size: .66em; margin-top: 4px; }
        .am-home .am-lead { font-size: 16px; }
        .am-home .am-hero-actions { margin-top: 24px !important; gap: 10px; }
        .am-home .am-hero-actions .am-btn { width: 100%; }
        .am-home .am-hero-meta { gap: 6px 14px; margin-top: 14px; font-size: 12px; }
        .am-home .am-hero-meta span { flex: 1 1 100%; }
        .am-home .am-visual { padding: 0; }
        .am-home .am-float-badge {
            position: relative; left: auto; bottom: auto; width: fit-content;
            max-width: calc(100% - 16px); margin: -2px 0 0 10px;
            padding: 11px 14px; border-radius: 14px;
        }
        .am-home .am-float-badge b { font-size: 17px; }
        .am-home .am-marquee { padding: 17px 0; }
        .am-home .am-marquee-track { animation-duration: 30s; }
        .am-home .am-marquee-group { gap: 26px; padding-right: 26px; }
        .am-home .am-marquee-item { min-height: 32px; font-size: 16px; }
        .am-home .am-compare { transform: none; padding: 16px 14px; border-radius: 20px; }
        .am-home .am-compare-search { padding: 10px 11px; font-size: 13px; }
        .am-home .am-row { gap: 8px; padding: 11px 12px; min-height: 58px; }
        .am-home .am-row .am-tag { flex-shrink: 0; }
        .am-home .am-compare-head .am-tag { font-size: 10px; }
        .am-home .am-section { padding: 56px 0; }
        .am-home .am-stats { grid-template-columns: repeat(2, 1fr); }
        .am-home .am-stat { padding: 20px 18px; border-right: 1px solid var(--am-line); border-bottom: 1px solid var(--am-line); }
        .am-home .am-stat:nth-child(2n) { border-right: 0; }
        .am-home .am-stat:nth-last-child(-n+2) { border-bottom: 0; }
        .am-home .am-stat b { font-size: 24px; }
        .am-home .am-steps { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
        .am-home .am-step { padding: 22px; }
        .am-home .am-step p { margin-bottom: 16px; }
        .am-home .am-pain-grid { grid-template-columns: 1fr; }
        .am-home .am-home-plans { grid-template-columns: 1fr; }
        .am-home .am-home-plan.is-premium { order: -1; }
        .am-home .am-pain {
            display: grid; grid-template-columns: 40px minmax(0, 1fr);
            column-gap: 14px; align-items: start; padding: 18px;
        }
        .am-home .am-pain-ico { grid-row: 1 / span 2; width: 40px; height: 40px; margin-bottom: 0; border-radius: 10px; font-size: 15px; }
        .am-home .am-pain h3 { margin-bottom: 4px; font-size: 16px; }
        .am-home .am-pain p { font-size: 14px; line-height: 1.5; }
        .am-home .am-footer a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; }
        .am-home .am-sticky-cta {
            position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
            display: flex; align-items: center; gap: 12px;
            padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
            background: rgba(255, 255, 255, .94);
            -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
            border-top: 1px solid var(--am-line);
            box-shadow: 0 -10px 30px -18px rgba(15, 23, 42, .35);
            transform: translateY(110%); visibility: hidden;
            transition: transform .3s var(--am-ease), visibility .3s;
        }
        .am-home .am-sticky-cta.is-visible { transform: none; visibility: visible; }
        .am-home .am-sticky-copy { flex: 1; min-width: 0; }
        .am-home .am-sticky-copy b { display: block; font-size: 13px; color: var(--am-ink); }
        .am-home .am-sticky-copy span { display: block; margin-top: 1px; font-size: 11px; color: var(--am-muted); }
        .am-home .am-sticky-cta .am-btn { flex-shrink: 0; min-height: 48px; padding: 12px 16px; font-size: 14px; border-radius: 12px; }
    }
    @media (prefers-reduced-motion: reduce) {
        .am-home .am-row, .am-home .am-float-badge { animation: none; opacity: 1; transform: none; }
        .am-home .am-marquee-track, .am-home .am-blob { animation: none; }
        .am-home .am-sticky-cta { transition: none; }
    }
