/* Новая главная askmeai.ru — раскладка по образцу syntx.ai, палитра своя:
   сине-серый холст, белые карточки, действие #2563EB (как в мини-приложении бота).
   Заголовки — Unbounded, текст — Onest (у обоих есть кириллица). */
:root {
  --bg: #eef2f8;
  --bg-2: #e3e9f3;
  --card: #ffffff;
  --line: #dde4ef;
  --ink: #0f1a2e;
  --sub: #4a5873;
  --mute: #7b879d;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --blue-3: #1e3a8a;
  --blue-soft: #e5edff;
  --sky: #7fa6ff;
  --navy: #0a1224;
  --ok: #0f9d58;
  --r: 18px;
  --r-lg: 28px;
  --wrap: 1280px;
  --pad: 24px;
  --head: 64px;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(15, 26, 46, .04), 0 12px 32px -16px rgba(15, 26, 46, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.am-hidden { display: none !important; }
.am-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.am-center { text-align: center; }

/* ── Кнопки ─────────────────────────────────────── */
.am-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; border-radius: 12px; padding: 12px 20px;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .8);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.am-btn:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(37, 99, 235, .9); }
.am-btn:active { transform: translateY(0) scale(.98); }
.am-btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.am-btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.am-btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.am-btn-ghost:hover { background: #f6f8fc; border-color: #c9d3e3; box-shadow: none; }
.am-btn-glass { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(10px); box-shadow: none; }
.am-btn-glass:hover { background: rgba(255, 255, 255, .22); box-shadow: none; }
.am-link-btn {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px;
  padding: 8px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 10px;
}
.am-link-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ── Полоса новинки ─────────────────────────────── */
.am-promo {
  position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--navy); color: #dbe4f5; font-size: 13.5px; padding: 8px 48px; text-align: center;
}
.am-promo b { color: #fff; }
.am-promo-btn { background: rgba(255, 255, 255, .1); color: #fff; padding: 4px 12px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.am-promo-btn:hover { background: var(--blue); }
.am-promo-x { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #9fb0cc; font-size: 20px; line-height: 1; padding: 4px; }

/* ── Шапка ──────────────────────────────────────── */
.am-head {
  position: sticky; top: 0; z-index: 50; height: var(--head);
  background: rgba(238, 242, 248, .82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(15, 26, 46, .06);
}
.am-head-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.am-logo { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: -.02em; }
.am-logo img { width: 32px; height: 32px; border-radius: 9px; }
.am-nav { display: flex; gap: 4px; margin: 0 auto; }
.am-nav a { padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--sub); display: inline-flex; align-items: center; gap: 6px; }
.am-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.am-new { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: var(--blue); color: #fff; padding: 2px 6px; border-radius: 6px; }
.am-head-r { display: flex; align-items: center; gap: 10px; }
.am-ico-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--sub); border: 1px solid var(--line); background: var(--card); }
.am-ico-btn:hover { color: #229ed9; border-color: #229ed9; }
.am-burger { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); position: relative; }
.am-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.am-burger span:first-child { top: 14px; } .am-burger span:last-child { bottom: 14px; }
.am-head.open .am-burger span:first-child { transform: translateY(4px) rotate(45deg); }
.am-head.open .am-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── Первый экран ───────────────────────────────── */
.am-hero {
  position: relative; min-height: min(860px, calc(100svh - var(--head) - 36px)); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--navy); isolation: isolate;
}
.am-hero-media { position: absolute; inset: 0; z-index: -2; }
.am-hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.am-hero-media video.on { opacity: 1; }
/* Пока ролик не пришёл — мозаика из фотоэффектов, медленно плывёт. */
.am-hero-mosaic { position: absolute; inset: -10% -5%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; transform: rotate(-6deg); opacity: .55; }
.am-hero-mosaic div { display: flex; flex-direction: column; gap: 10px; animation: am-up 60s linear infinite; }
.am-hero-mosaic div:nth-child(even) { animation-direction: reverse; animation-duration: 75s; }
.am-hero-mosaic img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; }
@keyframes am-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.am-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 15% 100%, rgba(10, 18, 36, .92), transparent 70%),
    linear-gradient(to top, rgba(10, 18, 36, .95) 0%, rgba(10, 18, 36, .45) 45%, rgba(10, 18, 36, .25) 100%),
    radial-gradient(60% 50% at 85% 10%, rgba(37, 99, 235, .35), transparent 70%);
}
.am-hero-in { width: 100%; padding-top: 120px; padding-bottom: 64px; }
.am-hero-title { margin: 0; font-weight: 400; }
.am-hero-word {
  display: block; font: 800 clamp(56px, 11vw, 168px)/.9 var(--display); letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff 30%, #c9d8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: am-rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
.am-hero-lead {
  display: block; margin-top: 18px; font: 600 clamp(24px, 3.4vw, 46px)/1.12 var(--display); letter-spacing: -.02em; color: var(--sky);
  animation: am-rise .9s .12s cubic-bezier(.2, .7, .2, 1) both;
}
.am-hero-sub { max-width: 620px; margin: 20px 0 0; color: #c3cee3; font-size: 17px; animation: am-rise .9s .22s cubic-bezier(.2, .7, .2, 1) both; }
.am-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: am-rise .9s .32s cubic-bezier(.2, .7, .2, 1) both; }
.am-hero-stats { list-style: none; margin: 44px 0 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 14px 48px; border-top: 1px solid rgba(255, 255, 255, .14); animation: am-rise .9s .42s cubic-bezier(.2, .7, .2, 1) both; }
.am-hero-stats b { display: block; font: 700 28px/1.1 var(--display); letter-spacing: -.02em; }
.am-hero-stats span { color: #9fb0cc; font-size: 14px; }
.am-hero-play { position: absolute; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(8px); }
.am-hero-play .i-play { display: none; }
.am-hero-play.paused .i-play { display: block; }
.am-hero-play.paused .i-pause { display: none; }
@keyframes am-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ── Разделы ────────────────────────────────────── */
.am-sec { position: relative; padding: 96px 0; }
.am-sec-head { margin-bottom: 40px; }
.am-sec-head.am-center { display: flex; flex-direction: column; align-items: center; }
.am-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.am-h2 { margin: 0; font: 700 clamp(28px, 4vw, 52px)/1.08 var(--display); letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.am-h2 em { font-style: normal; color: var(--blue); }
.am-lead { margin: 16px 0 0; max-width: 640px; color: var(--sub); font-size: 18px; }
.am-center .am-lead { margin-left: auto; margin-right: auto; }
.am-sec-head .am-link-btn { margin-top: 20px; }
.am-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

/* Появление при прокрутке */
.am-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.am-reveal.in { opacity: 1; transform: none; }

/* ── Тренды ─────────────────────────────────────── */
.am-trends { overflow: hidden; background: linear-gradient(180deg, #f4f7fc, var(--bg)); }
.am-swoosh { position: absolute; left: 0; top: 48%; width: 100%; height: 360px; pointer-events: none; z-index: 0; }
.am-swoosh path { fill: none; stroke: var(--blue); stroke-width: 26; stroke-linecap: round; opacity: .9; stroke-dasharray: 2200; stroke-dashoffset: 2200; transition: stroke-dashoffset 2.4s cubic-bezier(.3, .6, .2, 1); }
.am-trends.in .am-swoosh path { stroke-dashoffset: 0; }
.am-trends .am-wrap { position: relative; z-index: 1; }
.am-trend-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 14px; }
.am-tr {
  position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-2);
  box-shadow: var(--shadow); transform: translateZ(0);
}
.am-tr:nth-child(1) { grid-row: span 2; }
.am-tr:nth-child(2) { grid-row: span 3; }
.am-tr:nth-child(3) { grid-row: span 2; }
.am-tr:nth-child(4) { grid-row: span 3; }
.am-tr:nth-child(5) { grid-row: span 2; }
.am-tr:nth-child(6) { grid-row: span 2; }
.am-tr:nth-child(7) { grid-row: span 1; }
.am-tr:nth-child(8) { grid-row: span 1; }
.am-tr img, .am-tr video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.am-tr:hover img, .am-tr:hover video { transform: scale(1.06); }
.am-tr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 18, 36, .78), transparent 55%); opacity: .85; transition: opacity .3s; }
.am-tr-t { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.am-tr-t b { font-size: 15px; line-height: 1.25; }
.am-tr-t small { display: block; font-size: 12px; color: #c3cee3; font-weight: 500; }
.am-tr-go { flex: 0 0 auto; font-size: 12px; font-weight: 600; background: #fff; color: var(--ink); padding: 6px 10px; border-radius: 8px; opacity: 0; transform: translateY(6px); transition: .25s; }
.am-tr:hover .am-tr-go { opacity: 1; transform: none; }
.am-tr-tag { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .9); color: var(--ink); padding: 3px 8px; border-radius: 6px; }
.am-pill-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(560px, 100%); margin: 36px auto 0;
  padding: 14px 16px 14px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); font-weight: 500;
}
.am-pill-cta span { width: 36px; height: 36px; display: grid; place-items: center; background: var(--blue); color: #fff; border-radius: 50%; transition: transform .2s; }
.am-pill-cta:hover span { transform: translateX(4px); }

/* ── Бегущая строка ─────────────────────────────── */
.am-marquee { background: var(--navy); padding: 18px 0; overflow: hidden; display: grid; gap: 10px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.am-marquee-row { display: flex; gap: 10px; width: max-content; animation: am-mq 70s linear infinite; }
.am-marquee-row.am-rev { animation-direction: reverse; animation-duration: 85s; }
.am-marquee-row span { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); color: #c9d6ee; font-weight: 500; font-size: 14px; white-space: nowrap; }
.am-marquee-row span i { font-style: normal; color: var(--sky); margin-right: 6px; }
@keyframes am-mq { to { transform: translateX(-50%); } }

/* ── Флагманы ───────────────────────────────────── */
.am-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.am-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--sub); transition: .2s;
}
.am-tab:hover { color: var(--ink); border-color: #c4cfe1; }
.am-tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .8); }
.am-tab i { font-style: normal; font-size: 13px; opacity: .8; }
.am-feat { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 40px; align-items: center; min-height: 440px; }
.am-feat-l h3 { margin: 0 0 6px; font: 800 clamp(32px, 4vw, 56px)/1 var(--display); letter-spacing: -.04em; }
.am-feat-l .am-brand-line { color: var(--mute); font-weight: 500; margin-bottom: 18px; }
.am-feat-l p { color: var(--sub); margin: 0 0 18px; font-size: 17px; }
.am-feat-l ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.am-feat-l li { display: flex; gap: 10px; align-items: flex-start; }
.am-feat-l li::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232563eb' stroke-width='3' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.am-feat-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.am-price { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 600; color: var(--sub); font-size: 14px; }
.am-price b { font: 700 20px/1 var(--display); color: var(--ink); }
.am-feat-r { position: relative; min-width: 0; }
.am-feat-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 4px 28px; scrollbar-width: none; perspective: 1200px; }
.am-feat-rail::-webkit-scrollbar { display: none; }
.am-fcard {
  flex: 0 0 auto; width: 230px; aspect-ratio: 3/4.4; border-radius: 20px; overflow: hidden; position: relative; scroll-snap-align: start;
  background: var(--bg-2); box-shadow: 0 24px 40px -24px rgba(15, 26, 46, .45); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  animation: am-card-in .7s cubic-bezier(.2, .7, .2, 1) both;
}
.am-fcard:first-child { transform: rotateY(18deg) translateX(10px); transform-origin: right; }
.am-fcard:hover { transform: translateY(-6px); }
.am-fcard img, .am-fcard video { width: 100%; height: 100%; object-fit: cover; }
.am-fcard figcaption { position: absolute; left: 12px; bottom: 10px; right: 12px; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
@keyframes am-card-in { from { opacity: 0; transform: translateX(40px); } }
.am-fcard:nth-child(2) { animation-delay: .06s; } .am-fcard:nth-child(3) { animation-delay: .12s; } .am-fcard:nth-child(4) { animation-delay: .18s; } .am-fcard:nth-child(5) { animation-delay: .24s; }
/* Карточки без картинки: чат и музыка */
.am-fcard-chat { background: linear-gradient(160deg, #fff, #eef3ff); padding: 18px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.am-bub { font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 14px; max-width: 92%; }
.am-bub.q { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.am-bub.a { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.am-fcard-wave { background: radial-gradient(120% 80% at 50% 0%, #2a4fb5, var(--navy)); display: flex; flex-direction: column; justify-content: space-between; padding: 18px; color: #fff; }
.am-fcard-wave .t { font: 700 18px/1.2 var(--display); }
.am-fcard-wave .s { color: #a8bbe0; font-size: 13px; }
.am-wave { display: flex; align-items: center; gap: 3px; height: 90px; }
.am-wave i { flex: 1; background: var(--sky); border-radius: 3px; animation: am-eq 1.2s ease-in-out infinite; }
@keyframes am-eq { 0%, 100% { height: 18%; } 50% { height: 100%; } }

/* ── Каталог моделей ────────────────────────────── */
.am-models { background: linear-gradient(180deg, var(--bg), #f6f8fc 30%, var(--bg)); }
.am-count-card { flex: 0 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); min-width: 220px; }
.am-count-card > b { display: block; font: 800 44px/1 var(--display); color: var(--blue); letter-spacing: -.04em; }
.am-count-card span { font-weight: 600; }
.am-count-card small { display: block; color: var(--mute); margin-top: 4px; }
.am-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.am-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.am-chips::-webkit-scrollbar { display: none; }
.am-chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--sub); }
.am-chip i { font-style: normal; font-weight: 500; color: var(--mute); margin-left: 4px; }
.am-chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.am-chip[aria-selected="true"] i { color: #9fb0cc; }
.am-search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--mute); width: 300px; }
.am-search:focus-within { border-color: var(--blue); color: var(--blue); }
.am-search input { border: 0; outline: 0; background: none; font: inherit; font-size: 14px; padding: 10px 0; width: 100%; color: var(--ink); min-width: 0; }
.am-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--sub); cursor: pointer; user-select: none; }
.am-switch input { position: absolute; opacity: 0; }
.am-switch span { width: 36px; height: 22px; border-radius: 999px; background: #c9d3e3; position: relative; transition: .2s; }
.am-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.am-switch input:checked + span { background: var(--blue); }
.am-switch input:checked + span::after { transform: translateX(14px); }
.am-switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.am-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.am-mc {
  position: relative; display: flex; flex-direction: column; gap: 12px; text-align: left; padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: am-fade .45s ease both;
}
.am-mc:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(15, 26, 46, .35); border-color: #c7d3ea; }
@keyframes am-fade { from { opacity: 0; transform: translateY(10px); } }
.am-mc-top { display: flex; align-items: center; gap: 10px; }
.am-mono { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font: 700 14px/1 var(--display); color: #fff; letter-spacing: -.02em; }
.am-mc-brand { font-size: 13px; color: var(--mute); font-weight: 500; line-height: 1.2; }
.am-mc-brand b { display: block; color: var(--ink); font-size: 16px; font-weight: 700; }
.am-badges { margin-left: auto; display: flex; gap: 4px; }
.am-badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; }
.am-badge.new { background: var(--blue); color: #fff; }
.am-badge.top { background: #fff3d6; color: #8a5a00; }
.am-badge.soon { background: #eef1f6; color: var(--mute); }
.am-mc p { margin: 0; color: var(--sub); font-size: 14.5px; line-height: 1.45; }
.am-mc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink); }
.am-mc li::before { content: "+ "; color: var(--blue); font-weight: 700; }
.am-specs { display: flex; flex-wrap: wrap; gap: 4px; }
.am-specs span { font-size: 12px; font-weight: 500; color: var(--sub); background: #f1f4f9; padding: 3px 8px; border-radius: 6px; }
.am-mc-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.am-mc-foot .am-price b { font-size: 17px; }
.am-mc-more { font-size: 13px; font-weight: 600; color: var(--blue); }
.am-empty { text-align: center; color: var(--sub); padding: 40px 0; }
.am-more { display: flex; justify-content: center; margin-top: 24px; }

/* ── Экосистема ─────────────────────────────────── */
.am-eco { overflow: hidden; }
.am-eco::before { content: ""; position: absolute; right: -10%; top: 0; width: 70%; height: 100%; background: radial-gradient(50% 50% at 60% 50%, rgba(37, 99, 235, .22), transparent 70%); pointer-events: none; }
.am-eco-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; }
.am-eco-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 6px; }
.am-eco-list button { display: flex; align-items: baseline; gap: 16px; font: 700 clamp(26px, 3.2vw, 42px)/1.15 var(--display); letter-spacing: -.035em; color: #b3bfd3; transition: color .3s; text-align: left; }
.am-eco-list button span { font: 600 14px/1 var(--text); color: var(--mute); letter-spacing: 0; }
.am-eco-list li.on button { color: var(--ink); }
.am-eco-list li.on button span { color: var(--blue); }
.am-eco-list p { margin: 0; max-height: 0; overflow: hidden; opacity: 0; color: var(--sub); max-width: 520px; padding-left: 36px; transition: max-height .5s, opacity .5s, margin .5s; }
.am-eco-list li.on p { max-height: 160px; opacity: 1; margin: 10px 0 18px; }
.am-eco-r { display: grid; place-items: center; }
.am-orb {
  width: min(420px, 80vw); aspect-ratio: 1; border-radius: 34%; display: grid; place-items: center; position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(220, 230, 250, .5)); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 40px 80px -30px rgba(37, 99, 235, .45), inset 0 1px 0 #fff; animation: am-float 8s ease-in-out infinite;
  transform: rotate(-8deg);
}
.am-orb::before { content: ""; position: absolute; inset: 18%; border-radius: 30%; background: radial-gradient(circle, rgba(37, 99, 235, .35), transparent 70%); filter: blur(30px); }
.am-orb img { width: 46%; position: relative; filter: drop-shadow(0 20px 30px rgba(15, 26, 46, .3)); border-radius: 24%; }
@keyframes am-float { 50% { transform: rotate(-4deg) translateY(-16px); } }

/* ── Тарифы ─────────────────────────────────────── */
.am-plans-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 18px; }
.am-plans-head .am-h2 { grid-column: 2; }
.am-compare-btn { grid-column: 3; justify-self: end; }
.am-period { grid-column: 2; grid-row: 2; justify-self: center; display: inline-flex; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; gap: 4px; }
.am-period button { padding: 8px 18px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--sub); display: inline-flex; align-items: center; gap: 8px; }
.am-period button i { font-style: normal; font-size: 11px; background: var(--blue-soft); color: var(--blue); padding: 2px 6px; border-radius: 6px; }
.am-period button[aria-selected="true"] { background: var(--ink); color: #fff; }
.am-period button[aria-selected="true"] i { background: var(--blue); color: #fff; }
.am-plan-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 36px; align-items: stretch; }
.am-plan {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px 20px;
  transition: transform .3s, box-shadow .3s;
}
.am-plan:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(15, 26, 46, .35); }
.am-plan h3 { margin: 0; font: 800 26px/1 var(--display); letter-spacing: -.03em; }
.am-plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 8px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.am-plan-gen { margin: 16px 0 14px; display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 13px; }
.am-plan-inc { font-size: 13.5px; color: var(--sub); margin: 0 0 12px; }
.am-plan-inc b { color: var(--ink); font-weight: 600; }
.am-plan ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 13.5px; }
.am-plan li { display: flex; gap: 6px; }
.am-plan li::before { content: "+"; color: var(--blue); font-weight: 800; }
.am-plan li.sep { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.am-plan-price { margin-top: auto; }
.am-plan-old { font-size: 14px; color: var(--mute); text-decoration: line-through; min-height: 20px; }
.am-plan-now { display: flex; align-items: baseline; gap: 6px; }
.am-plan-now b { font: 800 34px/1.05 var(--display); letter-spacing: -.04em; }
.am-plan-now span { color: var(--sub); font-size: 13px; }
.am-plan-sub { font-size: 12.5px; color: var(--mute); min-height: 18px; margin-bottom: 14px; }
.am-plan .am-btn { width: 100%; }
.am-plan.free .am-btn { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
/* Pro — синяя карта, как оранжевая у образца */
.am-plan.hot { background: linear-gradient(165deg, #3b7bff 0%, var(--blue) 45%, var(--blue-3) 100%); color: #fff; border-color: transparent; box-shadow: 0 30px 60px -30px rgba(37, 99, 235, .9); transform: translateY(-10px); }
.am-plan.hot:hover { transform: translateY(-14px); }
.am-plan.hot .am-plan-flag { background: #fff; color: var(--blue); }
.am-plan.hot .am-plan-gen { background: rgba(255, 255, 255, .18); color: #fff; }
.am-plan.hot .am-plan-inc, .am-plan.hot .am-plan-sub, .am-plan.hot .am-plan-now span, .am-plan.hot .am-plan-old { color: #d6e2ff; }
.am-plan.hot .am-plan-inc b { color: #fff; }
.am-plan.hot li::before { color: #fff; }
.am-plan.hot li.sep { border-color: rgba(255, 255, 255, .25); }
.am-plan.hot .am-btn { background: #fff; color: var(--blue); }
.am-plan.best { border: 2px solid var(--blue); }
.am-plan.best .am-plan-flag { background: var(--blue); }

.am-compare { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow-x: auto; }
.am-compare table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.am-compare th, .am-compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.am-compare th:first-child, .am-compare td:first-child { text-align: left; color: var(--sub); }
.am-compare thead th { font: 700 15px/1.2 var(--display); position: sticky; top: 0; background: var(--card); }
.am-compare thead th.hot { color: var(--blue); }
.am-compare tbody tr:hover { background: #f8fafd; }
.am-compare .y { color: var(--blue); font-weight: 800; }
.am-compare .n { color: #c3ccdb; }

.am-packs, .am-biz { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; }
.am-packs h3, .am-biz h3 { margin: 0 0 4px; font: 700 20px/1.2 var(--display); letter-spacing: -.02em; }
.am-packs p, .am-biz p { margin: 0; color: var(--sub); font-size: 14.5px; max-width: 560px; }
.am-pack-list { display: flex; gap: 10px; flex-wrap: wrap; }
.am-pack { display: flex; flex-direction: column; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: #f8fafd; min-width: 150px; transition: border-color .2s; }
.am-pack:hover { border-color: var(--blue); }
.am-pack b { font: 700 18px/1.2 var(--display); }
.am-pack span { font-size: 13px; color: var(--sub); }
.am-biz { background: linear-gradient(120deg, var(--navy), #13244a); color: #fff; border: 0; }
.am-biz p { color: #b6c4de; }
.am-biz .am-kicker { color: var(--sky); margin-bottom: 6px; }
.am-note { text-align: center; color: var(--mute); font-size: 14px; margin: 22px 0 0; }
.am-note a { color: var(--blue); font-weight: 600; }

/* ── Начните создавать ──────────────────────────── */
.am-start-box { background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 48px; box-shadow: var(--shadow); }
.am-start-head { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: end; margin-bottom: 36px; }
.am-start-head p { margin: 0; color: var(--sub); }
.am-tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.am-tool { display: flex; flex-direction: column; gap: 10px; }
.am-tool-img { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--bg-2); position: relative; }
.am-tool-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.am-tool:hover .am-tool-img img { transform: scale(1.07); }
.am-tool span { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; transition: .2s; }
.am-tool:hover span { border-color: var(--blue); color: var(--blue); }
.am-tool-art { position: absolute; inset: 0; display: grid; place-items: center; font: 800 44px/1 var(--display); color: #fff; }

/* ── Вопросы ────────────────────────────────────── */
.am-faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.am-faq-l { position: sticky; top: calc(var(--head) + 24px); }
.am-faq-l p { color: var(--sub); margin: 16px 0 24px; max-width: 340px; }
.am-faq-r { display: grid; gap: 10px; }
.am-faq-r details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.am-faq-r details[open] { border-color: #c4d2ee; }
.am-faq-r summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 600; position: relative; }
.am-faq-r summary::-webkit-details-marker { display: none; }
.am-faq-r summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232563eb' stroke-width='2.5' d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .25s; }
.am-faq-r details[open] summary::after { transform: rotate(180deg); }
.am-faq-r details p { margin: 0; padding: 0 20px 18px; color: var(--sub); }

/* ── Подвал ─────────────────────────────────────── */
.am-foot { background: var(--navy); color: #c3cee3; padding: 64px 0 28px; margin-top: 40px; position: relative; overflow: hidden; }
.am-foot::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; }
.am-foot .am-wrap { position: relative; }
.am-foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.am-foot-top p { color: #8c9bb7; margin: 12px 0 0; font-size: 14px; }
.am-logo-inv { color: #fff; }
.am-foot nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.am-foot nav b { color: #fff; margin-bottom: 4px; }
.am-foot nav a:hover { color: #fff; }
.am-foot-word { font: 800 clamp(64px, 17vw, 260px)/.85 var(--display); letter-spacing: -.06em; margin-top: 48px; background: linear-gradient(180deg, rgba(127, 166, 255, .35), rgba(127, 166, 255, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.am-foot-bot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #7d8ca8; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; }

/* ── Карточка модели (окно) ─────────────────────── */
.am-modal { position: fixed; inset: 0; z-index: 100; background: rgba(10, 18, 36, .55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: am-fade .2s ease; }
.am-modal-card { position: relative; width: min(720px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--card); border-radius: 26px; box-shadow: 0 40px 80px -20px rgba(10, 18, 36, .5); }
.am-modal-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 24px; line-height: 1; color: var(--ink); box-shadow: var(--shadow); }
.am-md-head { padding: 28px 28px 22px; background: linear-gradient(150deg, var(--blue-soft), #fff 70%); border-bottom: 1px solid var(--line); }
.am-md-head .am-mc-top { margin-bottom: 14px; }
.am-md-head h3 { margin: 0; font: 800 34px/1.05 var(--display); letter-spacing: -.035em; }
.am-md-head p { margin: 10px 0 0; color: var(--sub); font-size: 16px; }
.am-md-media { display: flex; gap: 10px; overflow-x: auto; padding: 18px 28px 0; scrollbar-width: none; }
.am-md-media img, .am-md-media video { flex: 0 0 auto; width: 132px; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; background: var(--bg-2); }
.am-md-body { padding: 22px 28px 28px; display: grid; gap: 22px; }
.am-md-body h4 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.am-md-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.am-md-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.am-md-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.am-md-tags span { padding: 6px 10px; border-radius: 9px; background: #f1f4f9; font-size: 13px; font-weight: 500; }
.am-md-spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; margin: 0; }
.am-md-spec dt { color: var(--mute); }
.am-md-spec dd { margin: 0; font-weight: 500; }
.am-md-recipe { background: #f6f8fc; border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--sub); }
.am-md-recipe b { color: var(--ink); }
.am-md-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }

/* ── Адаптив ────────────────────────────────────── */
@media (max-width: 1180px) {
  .am-plan-grid { grid-template-columns: repeat(3, 1fr); }
  .am-plan.hot { transform: none; }
  .am-tools { grid-template-columns: repeat(3, 1fr); }
  .am-start-head { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  :root { --pad: 20px; }
  .am-nav { position: fixed; top: var(--head); left: 0; right: 0; flex-direction: column; background: var(--card); padding: 12px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s; margin: 0; z-index: -1; }
  .am-head.open .am-nav { transform: none; }
  .am-nav a { padding: 12px 14px; font-size: 16px; }
  .am-head-r { margin-left: auto; }
  .am-burger { display: block; }
  .am-feat { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .am-eco-in, .am-faq-in { grid-template-columns: 1fr; }
  .am-eco-r { display: none; }
  .am-faq-l { position: static; }
  .am-split { flex-direction: column; align-items: flex-start; }
  .am-trend-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .am-foot-top { grid-template-columns: 1fr 1fr; }
  .am-sec { padding: 72px 0; }
}
@media (max-width: 720px) {
  .am-plan-grid { grid-template-columns: 1fr; }
  .am-plans-head { grid-template-columns: 1fr; justify-items: center; }
  .am-plans-head .am-h2, .am-period, .am-compare-btn { grid-column: 1; grid-row: auto; justify-self: center; }
  .am-tools { grid-template-columns: repeat(2, 1fr); }
  .am-start-box { padding: 24px 18px; border-radius: 24px; }
  .am-search { width: 100%; }
  .am-md-cols { grid-template-columns: 1fr; }
  .am-promo { font-size: 12.5px; padding: 8px 40px 8px 12px; justify-content: flex-start; text-align: left; }
  .am-promo-btn { display: none; }
}
@media (max-width: 560px) {
  :root { --pad: 16px; --head: 58px; }
  .am-head-r .am-ico-btn { display: none; }
  .am-hero-in { padding-top: 80px; padding-bottom: 40px; }
  .am-hero-cta .am-btn { flex: 1 1 100%; }
  .am-hero-stats { gap: 14px 28px; }
  .am-hero-stats b { font-size: 22px; }
  .am-hero-play { right: 16px; bottom: auto; top: 16px; }
  .am-sec { padding: 56px 0; }
  .am-lead { font-size: 16px; }
  .am-trend-grid { grid-auto-rows: 100px; gap: 10px; }
  .am-fcard { width: 180px; }
  .am-foot-top { grid-template-columns: 1fr; }
  .am-md-head, .am-md-body { padding-left: 18px; padding-right: 18px; }
  .am-md-media { padding: 16px 18px 0; }
  .am-md-head h3 { font-size: 26px; }
  .am-mgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .am-reveal { opacity: 1; transform: none; }
}

/* Правки после просмотра */
.am-plan-now { flex-wrap: wrap; column-gap: 6px; }
.am-plan-now b { white-space: nowrap; font-size: clamp(26px, 2.3vw, 34px); }
@media (min-width: 1181px) { .am-start-head { grid-template-columns: 1.5fr 1fr auto; } }
.am-start-head .am-h2 { font-size: clamp(28px, 3.2vw, 44px); }

/* ── Меню «Нейросети» ───────────────────────────── */
.am-mm { position: relative; }
.am-mm-btn { padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--sub); display: inline-flex; align-items: center; gap: 6px; }
.am-mm-btn:hover, .am-mm.open .am-mm-btn { color: var(--ink); background: rgba(255, 255, 255, .7); }
.am-mm-btn svg { transition: transform .2s; }
.am-mm.open .am-mm-btn svg { transform: rotate(180deg); }
.am-mm-panel {
  position: fixed; left: 50%; top: calc(var(--head) - 6px); transform: translate(-50%, 8px); width: min(1180px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(15, 26, 46, .3);
  padding: 22px 24px 16px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 70;
}
.am-mm.open .am-mm-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.am-mm-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.am-mm-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.am-mm-col a { padding: 5px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-mm-col a:hover { background: var(--blue-soft); color: var(--blue); }
.am-mm-col a i { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--blue); margin-left: 4px; }
.am-mm-col .am-mm-h { font: 700 13px/1.3 var(--display); color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }
.am-mm-h span { color: var(--mute); font: 500 12px var(--text); margin-left: 4px; }
.am-mm-col .am-mm-all { color: var(--blue); font-weight: 600; }
.am-mm-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--bg); font-weight: 600; font-size: 14px; }
.am-mm-foot:hover { background: var(--blue); color: #fff; }
@media (max-width: 960px) {
  .am-nav { max-height: calc(100svh - var(--head)); overflow-y: auto; }
  .am-mm-btn { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 16px; }
  .am-mm-panel { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 6px 8px; display: none; opacity: 1; visibility: visible; }
  .am-mm.open .am-mm-panel { display: block; transform: none; }
  .am-mm-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .am-mm-col a { padding: 6px 8px; margin: 0; }
}

/* ── Хлебные крошки ─────────────────────────────── */
.am-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--mute); padding: 20px 0 0; }
.am-crumbs a:hover { color: var(--blue); }
.am-crumbs b { color: var(--ink); font-weight: 600; }

/* ── Страница модели ────────────────────────────── */
.am-mp-hero { padding: 28px 0 56px; }
.am-mp-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.am-mp-hero h1 { margin: 18px 0 10px; font: 800 clamp(40px, 6vw, 84px)/.95 var(--display); letter-spacing: -.045em; }
.am-mp-pitch { font-size: 20px; color: var(--sub); margin: 0 0 20px; max-width: 560px; }
.am-specs-lg span { font-size: 13.5px; padding: 6px 12px; background: var(--card); border: 1px solid var(--line); }
.am-mp-buy { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); }
.am-mp-buy small { display: block; color: var(--mute); font-size: 13px; margin-top: 4px; }
.am-mp-buy small b { color: var(--ink); }
.am-mp-buy .am-price b { font-size: 28px; }
.am-mp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 190px 190px; gap: 12px; }
.am-mp-gallery figure { margin: 0; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); animation: am-card-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.am-mp-gallery .g0 { grid-row: span 2; }
.am-mp-gallery .g1 { animation-delay: .06s; } .am-mp-gallery .g2 { animation-delay: .12s; } .am-mp-gallery .g3 { animation-delay: .18s; }
.am-mp-gallery .g4 { display: none; }
.am-mp-gallery img, .am-mp-gallery video { width: 100%; height: 100%; object-fit: cover; }
.am-mp-gallery.chat { display: flex; flex-direction: column; gap: 10px; justify-content: center; background: linear-gradient(160deg, #fff, #eaf0ff); border: 1px solid var(--line); border-radius: 28px; padding: 28px; min-height: 380px; }
.am-mp-gallery.chat .am-bub { font-size: 15px; max-width: 86%; }
.am-mp-gallery.wave { display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; border-radius: 28px; padding: 28px; color: #fff; background: radial-gradient(120% 80% at 50% 0%, #2a4fb5, var(--navy)); }
.am-mp-gallery.wave .t { font: 700 26px/1.2 var(--display); }
.am-mp-gallery.wave .s { color: #a8bbe0; }
.am-mp-gallery.wave .am-wave { height: 160px; }
.am-mp-gallery.empty { min-height: 380px; border-radius: 28px; background: linear-gradient(150deg, var(--blue-soft), var(--bg-2)); }

.am-mp-tabs { position: sticky; top: var(--head); z-index: 40; background: rgba(238, 242, 248, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.am-mp-tabs .am-wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.am-mp-tabs .am-wrap::-webkit-scrollbar { display: none; }
.am-mp-tabs a { flex: 0 0 auto; padding: 14px 14px; font-weight: 600; font-size: 14px; color: var(--sub); border-bottom: 2px solid transparent; }
.am-mp-tabs a:hover { color: var(--ink); }
.am-mp-tabs a.on { color: var(--blue); border-color: var(--blue); }
.am-mp { --head2: calc(var(--head) + 50px); }
.am-mp .am-mp-sec { scroll-margin-top: var(--head2); padding: 80px 0; }
.am-mp #price { scroll-margin-top: var(--head2); }
.am-mp-alt { background: linear-gradient(180deg, #f6f8fc, #fff 50%, #f6f8fc); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.am-mp .am-kicker { margin-bottom: 12px; }
.am-mp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.am-mp-about { font-size: 18px; line-height: 1.65; color: var(--ink); margin: 20px 0 28px; }
.am-mp-h3 { margin: 0 0 14px; font: 700 18px/1.3 var(--display); letter-spacing: -.02em; }
.am-can { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.am-can li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-weight: 500; }
.am-can-i { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; }
.am-formula { list-style: none; margin: 28px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; counter-reset: f; }
.am-formula li { counter-increment: f; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px; }
.am-formula li::before { content: counter(f); position: absolute; top: 14px; right: 14px; font: 700 12px var(--display); color: var(--blue); background: var(--blue-soft); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.am-formula b { display: block; font: 700 16px/1.2 var(--display); margin-bottom: 6px; }
.am-formula span { color: var(--sub); font-size: 13.5px; }
.am-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.am-tips li { position: relative; padding-left: 30px; color: var(--ink); }
.am-tips li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; }
.am-badgood { display: grid; gap: 10px; }
.am-badgood > div { border-radius: 16px; padding: 16px 18px; }
.am-badgood span { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
.am-badgood p { margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: 14px; line-height: 1.5; }
.am-badgood .bad { background: #fff1f1; border: 1px solid #ffd6d6; }
.am-badgood .bad span { color: #c62828; }
.am-badgood .good { background: #ecfdf3; border: 1px solid #c4ecd4; }
.am-badgood .good span { color: #0f7a43; }

.am-prompts { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.am-pr { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; transition: box-shadow .25s, border-color .25s; }
.am-pr:hover { border-color: #c7d3ea; box-shadow: 0 20px 40px -26px rgba(15, 26, 46, .35); }
.am-pr-n { font: 800 13px var(--display); color: var(--blue); margin-bottom: 8px; }
.am-pr h3 { margin: 0 0 14px; font: 700 19px/1.25 var(--display); letter-spacing: -.02em; }
.am-pr blockquote { margin: 0 0 16px; padding: 16px 18px; background: #f4f7fc; border-left: 3px solid var(--blue); border-radius: 0 14px 14px 0; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; word-break: break-word; flex: 1 1 auto; }
.am-pr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.am-pr-res { font-size: 13px; color: var(--sub); flex: 1 1 160px; }
.am-pr-act { display: flex; gap: 8px; }
.am-pr-copy, .am-pr-try { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.am-pr-copy:hover { border-color: var(--blue); color: var(--blue); }
.am-pr-copy.ok { background: #ecfdf3; border-color: #9fdbb8; color: #0f7a43; }
.am-pr-try { background: var(--blue); color: #fff; border-color: var(--blue); }
.am-pr-try:hover { background: var(--blue-2); }

.am-avoid { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.am-avoid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.am-avoid li { position: relative; padding-left: 34px; }
.am-avoid li::before { content: "✕"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #fff1f1; color: #c62828; font-size: 12px; font-weight: 800; }
.am-avoid-gen { background: transparent; border-style: dashed; }

.am-mp-spec { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin-top: 24px; gap: 12px 24px; }
.am-mp-price { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.am-mp-price-top .am-price b { font-size: 32px; }
.am-mp-price table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.am-mp-price th { text-align: left; font-weight: 600; color: var(--mute); font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.am-mp-price td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.am-mp-price td:last-child, .am-mp-price th:last-child { text-align: right; }
.am-mp-price tr.on td { color: var(--blue); font-weight: 700; }
.am-mp .am-mgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
a.am-mc { color: inherit; }

/* ── Каталог /ai/ ───────────────────────────────── */
.am-ai-hero { padding: 8px 0 32px; }
.am-ai-hero .am-h2 { margin-top: 24px; font-size: clamp(36px, 5vw, 68px); }
.am-ai-chips { margin-top: 24px; flex-wrap: wrap; }
.am-ai-cat { padding: 48px 0 24px; scroll-margin-top: calc(var(--head) + 12px); }
.am-ai-cat .am-h2 em { color: var(--mute); font-size: .6em; }
.am-ai-cat .am-sec-head { margin-bottom: 24px; }

@media (max-width: 960px) {
  .am-mp-hero-in, .am-mp-two { grid-template-columns: 1fr; gap: 28px; }
  .am-mp-gallery { grid-template-rows: 150px 150px; }
  .am-mp .am-mp-sec { padding: 56px 0; }
}
@media (max-width: 560px) {
  .am-mp-pitch { font-size: 17px; }
  .am-mp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 160px 160px; }
  .am-mp-gallery .g3 { display: none; }
  .am-prompts { grid-template-columns: 1fr; }
  .am-mp-buy { padding: 16px; }
  .am-mp-buy .am-btn { width: 100%; }
  .am-pr { padding: 18px; }
}

/* ── Окно видео-тренда ──────────────────────────── */
.am-trend-view { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; padding: 24px; align-items: center; }
.am-trend-view video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 18px; background: #000; }
.am-trend-info h3 { margin: 8px 0 8px; font: 800 30px/1.05 var(--display); letter-spacing: -.03em; }
.am-trend-info p { color: var(--sub); margin: 0 0 12px; }
.am-trend-note { font-size: 14px; background: var(--blue-soft); color: var(--ink) !important; padding: 12px 14px; border-radius: 12px; }
.am-trend-info .am-btn { width: 100%; margin-top: 6px; }
.am-modal-alt { display: block; text-align: center; margin-top: 10px; color: var(--sub); font-size: 14px; }
@media (max-width: 640px) {
  .am-trend-view { grid-template-columns: 1fr; padding: 16px; }
  .am-trend-view video { max-height: 60svh; }
}

/* Колонка не растягивается под ширину видео в галерее */
.am-mp-hero-in > * { min-width: 0; }

/* Кнопка кабинета вместо «Войти» */
.am-btn-me { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
