/* ==========================================================================
   RASIK AI — landing «Галерея» (index.html, docs/DESIGN_GALLERY.md §6 «Главная сайта»).
   Loads after gallery.css + public.css (header, footer, FAQ, section heads live there).
   Prefix .lp-* (platform.css already uses .ld-media / .ld-prompt / .ld-actions for the library).
   ========================================================================== */

/* ---------- hero ---------- */
.lp-hero { padding: clamp(36px, 6vw, 76px) 0 clamp(56px, 7vw, 88px); }
.lp-hero + .pub-sec { border-top: 1px solid var(--g-line); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lp-hero-copy { min-width: 0; }
.lp-hero .g-eyebrow { margin-bottom: 18px; }
/* two parallel sentences, one line each on wide screens: the longer one is 13.7em wide in Prata, so the size follows
   the copy column (≈ 51% of the viewport up to 1200px, a wider 1.25fr column above) */
.lp-h1 { margin: 0 0 22px; font-size: clamp(34px, 5.4vw, 48px); line-height: 1.1; }
.lp-h1 > span { display: block; }
@media (min-width: 960px) {
  .lp-h1 { font-size: clamp(34px, 3.65vw, 44px); }
  .lp-h1 > span { white-space: nowrap; }
}
@media (min-width: 1200px) {
  .lp-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .lp-h1 { font-size: 47px; }
}
.lp-lead { max-width: 54ch; font-size: clamp(15.5px, 1.25vw, 17px); line-height: 1.65; }

/* mini composer */
.lp-comp { display: grid; gap: 14px; margin-top: clamp(26px, 3.4vw, 36px); padding: 20px; }
.lp-comp-title { margin: 0 0 2px; font: 400 24px/1.25 var(--g-font-display); letter-spacing: -.02em; color: var(--g-ink); }
.lp-kinds > button { padding-inline: 10px; }
.lp-idea .g-textarea { min-height: 104px; font-size: 15px; line-height: 1.6; }
.lp-demo { align-items: center; margin: 0; padding: 10px 12px; font-size: 13px; }
.lp-demo .g-tag { flex: none; min-height: 22px; padding: 1px 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lp-comp-foot { display: flex; align-items: flex-end; gap: 12px; }
.lp-model-field { flex: 1 1 auto; }
.lp-go { flex: none; min-width: 148px; margin-left: auto; }
.lp-go[aria-busy="true"] { pointer-events: none; opacity: .85; }
.lp-cost { margin: -2px 0 0; }

.lp-starts { margin-top: 22px; }
.lp-starts .g-eyebrow { margin-bottom: 10px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-fine { margin: 16px 0 0; max-width: 60ch; font-size: 13px; line-height: 1.55; color: var(--g-muted); }

/* gallery of examples next to the composer */
.lp-mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-width: 0; }
.lp-m-main { grid-column: 1 / -1; }
.lp-m-main img { object-position: 50% 28%; }
.lp-m-video, .lp-m-audio { aspect-ratio: 1 / 1; }
.lp-m-video > video { background: var(--g-soft-2); }

/* pause / play for the autoplaying loops (WCAG 2.2.2): shown once a loop starts, 44px hit area */
.lp-vid-btn { position: absolute; z-index: 4; top: 8px; left: 8px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--g-media-chip); color: var(--g-media-chip-ink); cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); transition: transform var(--g-dur) var(--g-ease); }
.lp-vid-btn::before { content: ""; position: absolute; inset: -5px; }
.lp-vid-btn svg { width: 14px; height: 14px; }
.lp-vid-btn .i-play { display: none; margin-left: 2px; }
.lp-vid-btn[aria-pressed="true"] .i-play { display: block; }
.lp-vid-btn[aria-pressed="true"] .i-pause { display: none; }
.lp-vid-btn:hover { transform: scale(1.06); }
.lp-vid-btn:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 2px; }
.lp-m-audio .g-art-wave { inset: 16% 12% 40%; }
.lp-m-audio .g-art-cap, .lp-model .g-art--audio .g-art-cap { padding-top: 12px; background: none; color: var(--g-ink); text-shadow: none; }
.lp-m-audio .g-art-cap b { color: var(--g-ink); }
.lp-m-audio .g-art-cap { color: var(--g-muted); }

/* ---------- capabilities ---------- */
.lp-caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.lp-caps > li { display: flex; min-width: 0; }
.lp-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; min-height: 300px; padding: 24px 22px 20px; border: 1px solid var(--g-line); border-radius: var(--g-r-md); background: var(--g-paper); color: var(--g-ink); text-decoration: none; transition: border-color var(--g-dur), background-color var(--g-dur); }
.lp-cap:hover { border-color: var(--g-accent); }
.lp-cap:focus-visible { outline-offset: 3px; }
.lp-cap-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border: 1px solid var(--g-line); border-radius: 50%; color: var(--g-accent); }
.lp-cap-ic svg { width: 20px; height: 20px; }
.lp-cap-t { margin: 0; font: 400 26px/1.2 var(--g-font-display); letter-spacing: -.02em; }
.lp-cap p { margin: 0; color: var(--g-muted); font-size: 14.5px; line-height: 1.6; }
.lp-cap-list { font-size: 12.5px; line-height: 1.55; color: var(--g-muted); }
/* price line above the action in every card, whatever the length of the price («от 3 кр за звук» used to share a row
   with the link while the longer prices wrapped, so the footers did not line up) */
.lp-cap-foot { display: grid; justify-items: start; gap: 8px; width: 100%; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--g-line); }
.lp-cap-price { font: 600 13px/1.35 var(--g-font-ui); color: var(--g-ink); font-variant-numeric: tabular-nums; }
.lp-cap-price small { font-size: 12px; font-weight: 500; color: var(--g-muted); }
.lp-cap-go { display: inline-flex; align-items: center; gap: 8px; color: var(--g-accent); font: 600 13.5px/1.2 var(--g-font-ui); white-space: nowrap; }
.lp-cap-go::after { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--g-arrow) center / contain no-repeat; mask: var(--g-arrow) center / contain no-repeat; transition: transform var(--g-dur) var(--g-ease); }
.lp-cap:hover .lp-cap-go::after { transform: translate(2px, -2px); }
.lp-cap--turnkey { background: var(--g-soft); border-color: transparent; }
.lp-cap--turnkey .lp-cap-ic { background: var(--g-paper); border-color: transparent; }
.lp-cap--turnkey .lp-cap-foot { border-top-color: var(--g-line-strong); }

/* ---------- how it works ---------- */
.lp-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.lp-how > li { display: grid; align-content: start; gap: 10px; padding-top: 20px; border-top: 1px solid var(--g-line-strong); }
.lp-how-n { font: 600 12px/1 var(--g-font-ui); letter-spacing: .1em; color: var(--g-accent); font-variant-numeric: tabular-nums; }
.lp-how h3 { margin: 6px 0 0; font: 400 26px/1.2 var(--g-font-display); letter-spacing: -.02em; }
.lp-how p { margin: 0; max-width: 40ch; color: var(--g-muted); font-size: 15px; line-height: 1.65; }

/* ---------- turnkey ---------- */
.lp-tk-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lp-tk-copy { min-width: 0; }
.lp-tk-copy .g-h2 { max-width: 18ch; }
.lp-pipe-label { margin: clamp(28px, 4vw, 40px) 0 10px; font: 600 11.5px/1.4 var(--g-font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--g-muted); }
.lp-pipe > li { padding-left: 12px; padding-right: 12px; }
.lp-pipe .g-pipe-body strong { font-size: 15px; }
.lp-pipe .g-pipe-body p { font-size: 13.5px; }
.lp-pipe > li.is-done .g-pipe-n { color: var(--g-muted); }
.lp-tk-cta { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin-top: 28px; }
.lp-tk-price { margin: 0; max-width: 40ch; font-size: 14px; line-height: 1.5; color: var(--g-muted); font-variant-numeric: tabular-nums; }
.lp-tk-price b { color: var(--g-ink); font-weight: 700; }
.lp-tk-art { position: sticky; top: calc(var(--g-header-h) + 24px); }
.lp-tk-art > video { background: var(--g-soft-2); }

/* ---------- models ---------- */
.lp-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 14px; margin: 0; padding: 0; list-style: none; }
.lp-models > li { min-width: 0; }
.lp-model { display: grid; gap: 10px; color: var(--g-ink); text-decoration: none; }
.lp-model .g-art { border-radius: var(--g-r-xs); }
.lp-model:hover .lp-model-t b { color: var(--g-accent); }
.lp-model .g-art > picture > img { transition: transform .5s var(--g-ease); }
.lp-model:hover .g-art > picture > img { transform: scale(1.025); }
.lp-model:focus-visible { outline-offset: 4px; }
.lp-model-t { display: grid; gap: 2px; min-width: 0; }
.lp-model-t b { font: 700 15px/1.3 var(--g-font-ui); transition: color var(--g-dur); }
.lp-model-t small { font-size: 12.5px; color: var(--g-muted); }
.lp-model-p { min-height: 1.3em; font: 600 13px/1.3 var(--g-font-ui); color: var(--g-accent); font-variant-numeric: tabular-nums; }
.lp-model-p small { font-size: 12px; font-weight: 500; color: var(--g-muted); }
.lp-model .g-art--audio .g-art-wave { inset: 30% 14%; }
.lp-note { margin: 22px 0 0; max-width: 70ch; font-size: 12.5px; line-height: 1.5; color: var(--g-muted); }

/* ---------- pricing ---------- */
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.lp-plan { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px 24px 24px; border: 1px solid var(--g-line); border-radius: var(--g-r-md); background: var(--g-paper); }
.lp-plan.is-hot { border-color: var(--g-accent); box-shadow: inset 0 0 0 1px var(--g-accent); }
.lp-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lp-plan-t { margin: 0; font: 400 28px/1.2 var(--g-font-display); letter-spacing: -.02em; }
.lp-plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }
.lp-plan-price b { font: 800 clamp(32px, 3.4vw, 40px)/1 var(--g-font-ui); letter-spacing: -.03em; color: var(--g-ink); }
.lp-plan-price span { font-size: 14px; color: var(--g-muted); }
.lp-plan-cr { margin: 0; font-size: 14px; line-height: 1.5; color: var(--g-muted); }
.lp-plan-cr b { color: var(--g-ink); font-weight: 700; }
.lp-plan-per { display: block; margin-top: 2px; font-size: 13px; color: var(--g-muted); font-variant-numeric: tabular-nums; }
.lp-plan-list { display: grid; gap: 8px; margin: 8px 0 18px; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--g-line); font-size: 14.5px; line-height: 1.45; }
.lp-plan-list li { display: flex; align-items: flex-start; gap: 10px; }
.lp-plan-list li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 3px; background: var(--g-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.lp-plan > a { margin-top: auto; }
.lp-packs { display: grid; gap: 6px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--g-line); color: var(--g-muted); font-size: 14.5px; line-height: 1.6; }
.lp-packs p { margin: 0; max-width: 75ch; }
.lp-packs b { color: var(--g-ink); font-weight: 700; }
/* inline links in short notes: vertical padding grows the tap target to ≈44px without moving the text */
.lp-packs a, .lp-inline { padding-block: 10px; color: var(--g-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- FAQ ---------- */
.lp-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.lp-faq-head { position: sticky; top: calc(var(--g-header-h) + 24px); margin-bottom: 0; }

/* ---------- final CTA ---------- */
.lp-final { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--g-line); background: var(--g-soft); }
.lp-final-in { display: grid; justify-items: center; text-align: center; }
.lp-final-in .g-h2 { margin-inline: auto; }
.lp-final-in .g-lead { margin-inline: auto; }
.lp-final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.lp-final + .pub-foot { border-top-color: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .lp-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-cap { min-height: 0; }
}
@media (max-width: 959px) {
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-mosaic { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto 1fr; max-width: 640px; }
  .lp-m-main { grid-column: 1; grid-row: 1 / span 2; }
  .lp-m-video { aspect-ratio: 1 / 1; }
  .lp-m-audio { aspect-ratio: auto; min-height: 96px; }
  .lp-m-audio .g-art-wave { inset: 14% 14% 50%; }
  .lp-m-audio .g-art-cap { padding: 8px 12px 10px; }
  .lp-tk-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-tk-art { position: relative; top: 0; width: min(320px, 100%); }
  .lp-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-faq-head { position: static; }
  .lp-plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 767px) {
  .lp-how { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lp-how h3 { font-size: 24px; }
  /* models become a swipeable row */
  .lp-models { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .lp-models::-webkit-scrollbar { display: none; }
  .lp-models > li { scroll-snap-align: start; }
}
@media (max-width: 599px) {
  .lp-m-video .lp-cap-sub, .lp-m-audio .lp-cap-sub { display: none; }
  .lp-m-video .g-art-cap { padding: 24px 12px 10px; }
  .lp-pipe > li { align-items: start; }
  .lp-pipe .g-pipe-n { padding-top: 2px; }
  .lp-caps { grid-template-columns: minmax(0, 1fr); }
  .lp-cap { padding: 20px 18px 18px; }
  .lp-cap-t { font-size: 24px; }
  .lp-comp { padding: 16px; gap: 12px; }
  .lp-comp-title { font-size: 22px; }
  .lp-comp-foot { flex-direction: column; align-items: stretch; }
  .lp-go { width: 100%; margin-left: 0; }
  .lp-kinds > button { padding-inline: 6px; gap: 6px; font-size: 13.5px; }
  .lp-final-cta > * { flex: 1 1 100%; }
  .lp-tk-cta .g-btn { width: 100%; }
}
@media (max-width: 379px) {
  .lp-kinds > button svg { display: none; }
  .lp-mosaic { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-cap:hover .lp-cap-go::after, .lp-vid-btn:hover { transform: none; }
  .lp-model .g-art > picture > img, .lp-model:hover .g-art > picture > img { transition: none; transform: none; }
}
