/* Статические SEO-страницы insaga.net. Токены — лендинга v31 (frontend/public/lp/landing.css).
   Правила владельца: без бенто, плашек и «коробок»; картинки сдержанно, у каждой своё место;
   кнопки на наведении не двигаются — только меняют заливку. */

:root {
  --ink: #0a0a0f;
  --ink-2: #111118;
  --white: #f8f8f8;
  --text: rgba(248, 248, 248, 0.86);
  --muted: #8a8a94;
  --rule: rgba(248, 248, 248, 0.1);
  --violet: #9f35fa;
  --violet-hi: #b15cfb;
  --lavender: #c381f4;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Space Grotesk", "Golos Text", system-ui, sans-serif;
  --wrap: 1240px;
  --read: 720px;
  --gutter: 32px;
  color-scheme: dark;
}
:root:lang(ru),
:root:lang(uk) {
  /* у Space Grotesk нет кириллицы: смесь двух гарнитур в одном слове выглядит случайной */
  --f-display: "Golos Text", system-ui, sans-serif;
}
/* японский и корейский — как на лендинге: латиница остаётся Inter / Space Grotesk, остальное Noto; строка не рвётся
   посреди слова (ko) и по строгим правилам (ja); заголовкам шире колонка — знак вдвое шире латинского «ch» */
:root:lang(ja) { --f-body: "Inter", "Noto Sans JP", system-ui, sans-serif; --f-display: "Space Grotesk", "Noto Sans JP", sans-serif; }
:root:lang(ko) { --f-body: "Inter", "Noto Sans KR", system-ui, sans-serif; --f-display: "Space Grotesk", "Noto Sans KR", sans-serif; }
:root:lang(ja) body { line-break: strict; }
:root:lang(ja) :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
:root:lang(ja) :is(p, dd, li, figcaption) { word-break: auto-phrase; }
:root:lang(ko) body { word-break: keep-all; }
:root:is(:lang(ja), :lang(ko)) h1 { max-width: 13em; line-height: 1.12; letter-spacing: -0.01em; }
:root:is(:lang(ja), :lang(ko)) h2 { max-width: 18em; line-height: 1.2; letter-spacing: -0.005em; }
:root:is(:lang(ja), :lang(ko)) .eyebrow { letter-spacing: 0.08em; }

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lavender); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--f-display); color: var(--white); font-weight: 600; margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -0.025em; max-width: 15ch; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; }
strong { color: var(--white); font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* колонка чтения — узкая, но по той же левой линии, что и остальные разделы */
.read > * { max-width: var(--read); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ─── кнопки ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-hi); color: #fff; }
.btn-ghost { color: var(--white); border-color: rgba(248, 248, 248, 0.22); }
.btn-ghost:hover { background: rgba(248, 248, 248, 0.08); color: var(--white); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; background: var(--white); color: var(--ink); }
.btn-small:hover { background: #e4dcf2; color: var(--ink); }
/* вошедшему — «Открыть студию» вместо «Начать бесплатно» (класс ставит первый скрипт <head>) */
.cta-user { display: none; }
.in .cta-user { display: inline-flex; }
.in .cta-guest { display: none; }

/* ─── шапка ─── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 15, 0.84);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 600 20px/1 "Poppins", var(--f-body); letter-spacing: -0.01em; }
.brand b { font-weight: 600; color: var(--lavender); }
.brand:hover { color: var(--white); }
.menu { display: flex; gap: 24px; margin-left: 8px; }
.menu a, .langs a { color: var(--text); text-decoration: none; font-size: 15px; }
.menu a:hover, .langs a:hover { color: var(--white); }
.right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.langs { display: flex; gap: 12px; font-size: 13px; letter-spacing: 0.04em; }
.langs span { color: var(--white); font-weight: 600; }

/* ─── первый экран ─── */
.hero { padding: 88px 0 72px; }
.eyebrow { color: var(--lavender); font: 600 13px/1.4 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 22px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; max-width: 60ch; margin-top: 28px; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.note { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* лента кадров: во всю ширину, листается, без рамок */
.strip {
  display: flex; gap: 14px; margin-top: 64px;
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  /* без этого прилипание ставит первый кадр к краю экрана, а не к линии текста */
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.strip::-webkit-scrollbar { display: none; }
.strip > div { flex: 0 0 min(380px, 78vw); scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
figure { margin: 0; }
figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ─── секции ─── */
.block { padding: 96px 0; border-top: 1px solid var(--rule); }
.intro { margin-top: 20px; max-width: 64ch; font-size: 18px; }
.block .read p + p { margin-top: 18px; }
.block .read h2 + p { margin-top: 24px; }

/* шаги: номер — типографикой, не кружком */
.steps { list-style: none; margin: 56px 0 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 460px); gap: 32px;
  align-items: start; padding: 36px 0; border-top: 1px solid var(--rule);
}
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps .num { font: 600 44px/1 var(--f-display); color: var(--lavender); opacity: 0.55; letter-spacing: -0.02em; }
.steps .body p { margin-top: 10px; max-width: 52ch; }
.steps .pic img { border-radius: 10px; }
.steps li:not(:has(.pic)) { grid-template-columns: 88px minmax(0, 1fr); }

/* мир: герои → сцены */
.label { margin-top: 48px; color: var(--muted); font: 600 13px/1.4 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; }
.cast { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.cast li { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 112px; text-align: center; font-size: 14px; color: var(--white); }
.cast .face { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; }
.scenes { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 14px; }
.scenes img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.outro { margin-top: 36px; max-width: 64ch; }

/* жанры: две картинки и подпись, без карточек */
.genres { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.genres .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.genres .shots img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.genres .shots img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.genres h3 { margin-top: 18px; }
.genres p { margin-top: 8px; font-size: 16px; }

/* фильм */
.video { margin-top: 40px; max-width: 1040px; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }

/* пункты: две колонки текста под линиями */
.points { margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.points > div { padding: 24px 0; border-top: 1px solid var(--rule); }
.points dt { font: 600 18px/1.35 var(--f-display); color: var(--white); }
.points dd { margin: 8px 0 0; }

/* сравнение */
.table { margin-top: 40px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 620px; }
th, td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-top: 1px solid var(--rule); }
thead th { border-top: 0; color: var(--muted); font: 600 13px/1.4 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; }
tbody th { color: var(--white); font-weight: 500; width: 30%; }
td:nth-child(2) { color: var(--white); }
.fine { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 80ch; }

/* сильные стороны / где упирается */
.procon { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.procon h3 { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.procon ul { list-style: none; margin: 0; padding: 0; }
.procon li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.procon li::before { position: absolute; left: 0; top: 16px; font-weight: 600; }
.procon .pros li::before { content: "+"; color: #7ee0b5; }
.procon .cons li::before { content: "−"; color: var(--lavender); }

/* ряд кадров */
/* число колонок — по числу кадров (--n, 2…4), чтобы три кадра не оставляли пустое место */
.shots4 { margin-top: 36px; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; }
.shots4 img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }

/* вертикальные кадры (одна героиня в соседних стилях) — без обрезки в 16:9 */
.shots4.tall { max-width: calc(250px * var(--n, 4)); }
.shots4.tall img { aspect-ratio: auto; }

/* витрина стиля: кадры одной высоты в строку, ширина — по пропорции кадра (--r = ширина / высота), без обрезки */
.showcase-block { border-top: 0; padding-top: 0; }
.showcase { display: flex; gap: 14px; align-items: flex-start; }
.showcase figure { flex: var(--r) 1 0; min-width: 0; }
.showcase img { width: 100%; border-radius: 10px; }

/* указатель стилей: кадр, название, строка — без плашек */
.stylegrid { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 44px 24px; }
.stylegrid a { display: block; color: var(--white); text-decoration: none; }
.stylegrid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 42%; border-radius: 10px; }
.stylegrid span { display: block; margin-top: 14px; font: 600 18px/1.3 var(--f-display); }
.stylegrid a:hover span { color: var(--lavender); }
.stylegrid p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* указатель сравнений */
.catalog { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.catalog li { padding: 22px 0; border-top: 1px solid var(--rule); }
.catalog a { font: 600 19px/1.35 var(--f-display); color: var(--white); text-decoration: none; }
.catalog a:hover { color: var(--lavender); }
.catalog .kind { margin-left: 12px; color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
.catalog p { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 60ch; }

/* мелкий шрифт */
.fineprint { padding: 32px 0 48px; }
.fineprint p { color: var(--muted); font-size: 13px; max-width: 90ch; }

/* вопросы */
.faq { margin-top: 32px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font: 600 18px/1.4 var(--f-display); color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 26px/1 var(--f-body); color: var(--lavender); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 24px; max-width: 64ch; }

/* связанные страницы */
.related { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.related li { padding: 22px 0; border-top: 1px solid var(--rule); }
.related a { font: 600 19px/1.35 var(--f-display); color: var(--white); text-decoration: none; }
.related a:hover { color: var(--lavender); }
.related p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* финальный призыв */
.final { padding: 120px 0; border-top: 1px solid var(--rule); background: radial-gradient(60% 80% at 50% 100%, rgba(159, 53, 250, 0.16), transparent 70%); }
.final .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final h2 { max-width: 20ch; }
.final p { margin-top: 18px; max-width: 56ch; }
.final .actions { justify-content: center; }

/* ─── подвал ─── */
.foot { border-top: 1px solid var(--rule); padding: 64px 0 32px; font-size: 15px; }
.cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot h2 { font: 600 13px/1.4 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); max-width: none; }
.foot ul { list-style: none; margin: 16px 0 0; padding: 0; }
.foot li + li { margin-top: 8px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot .about p { margin-top: 16px; color: var(--muted); max-width: 34ch; }
.legal { margin-top: 48px; color: var(--muted); font-size: 13px; }

/* ─── узкие экраны ─── */
@media (max-width: 1024px) {
  .steps li { grid-template-columns: 64px minmax(0, 1fr); }
  .steps .pic { grid-column: 2; }
  .genres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols .about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .menu { display: none; }
  .bar { gap: 16px; height: 56px; }
  .hero { padding: 56px 0 48px; }
  .strip { margin-top: 44px; }
  .block { padding: 64px 0; }
  .steps li, .steps li:not(:has(.pic)) { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .steps .pic { grid-column: auto; }
  .steps .num { font-size: 32px; }
  .scenes { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cast { gap: 14px; }
  .cast li, .cast .face { width: 72px; }
  .cast .face { height: 72px; }
  .cast li { font-size: 13px; }
  .right { gap: 12px; }
  .langs { gap: 10px; }
  .btn-small { padding: 0 14px; font-size: 13px; }
  .genres, .points, .related, .procon, .catalog { grid-template-columns: 1fr; }
  .shots4 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .showcase { flex-wrap: wrap; gap: 16px 8px; }
  .showcase .wide { flex: 1 1 100%; }
  .showcase .tall { flex: 1 1 calc(50% - 4px); }
  .stylegrid { grid-template-columns: 1fr 1fr; gap: 32px 12px; }
  .stylegrid span { font-size: 16px; }
  .stylegrid p { font-size: 14px; }
  .procon .cons { margin-top: 40px; }
  .final { padding: 80px 0; }
  /* длинная подпись (сравнения на украинском) не должна распирать страницу — перенос внутри кнопки */
  .actions .btn { flex: 1 1 100%; white-space: normal; text-align: center; line-height: 1.3; padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 480px) {
  /* на узком телефоне слово «Insaga» наезжало на языки: остаётся знак */
  .top .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
