/* Лендинг: разделы ниже первого экрана (галерея, шаги, установка, источники,
 * границы применимости, тестирование, вопросы, документы, подвал). Токены
 * цвета и первый экран в landing.css, хексов здесь нет. Вынесено 09.11.2026:
 * landing.css упёрся в лимит 500 строк на файл (scripts/check-structure.mjs). */

/* Секции */
.section { padding: 76px 0; }
.section--raised { background: var(--bg-raised); }
.section--joined { padding-top: 0; }
.section-title { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; margin-bottom: 12px; }
.section-lead { max-width: 40em; margin-bottom: 40px; font-size: 17px; color: var(--text-2); }

/* Снимки экранов: кадр Android или iPhone (data-device, landing.css) целиком,
 * высота по пропорции экрана платформы. */
.screens-track {
  list-style: none; margin: 0 -24px; padding: 0 24px 10px; scroll-padding: 0 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 242px; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.screen-item { scroll-snap-align: start; }
.screen-frame { padding: 6px; border-radius: 34px; background: var(--bezel); box-shadow: var(--shadow-md); }
.screen-frame img { width: 228px; height: auto; border-radius: 28px; }
.screen-item figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
/* Переключатели кадров под галереей (Семён 09.11: «заметную подсказку
 * „Листайте“ или переключатели кадров»). Видны, только когда кадры не
 * помещаются в ширину: ставит и снимает hidden landing.js. */
.screens-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.screens-nav[hidden] { display: none; }
.screens-arrow {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--outline); border-radius: 50%;
  background: none; color: var(--text); cursor: pointer;
}
.screens-arrow:hover { background: var(--surface-hover); }
.screens-arrow:disabled { opacity: 0.35; background: none; cursor: default; }
.screens-arrow svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.screens-dots { display: flex; }
.screens-dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.screens-dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--text-3); opacity: 0.55; transition: width 0.2s, opacity 0.2s; }
.screens-dot[aria-current="true"]::before { width: 20px; background: var(--text); opacity: 1; }

/* Три шага карточками, как группы в листе приложения. Обычными словами,
 * сокращения раскрывает «Что значат сокращения» ниже (Семён 09.11). */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 24px 24px 26px; border-radius: var(--radius-md); background: var(--card); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 700; font-size: 15px;
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { font-size: 15.5px; }
.glossary dl { margin: 0; padding: 0 20px 18px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; font-size: 15px; }
.glossary dt { font-weight: 600; color: var(--text); }
.glossary dd { margin: 0; }

/* Раскрывашки одним видом: вопросы, ограничения, источники, сокращения.
 * Шеврон как в списках iOS: вниз закрыто, вверх открыто. */
.glossary, .sources-more { margin-top: 16px; border-radius: var(--radius-md); background: var(--card); overflow: hidden; }
.notice-more summary, .faq-item summary, .sources-more summary, .glossary summary {
  cursor: pointer; list-style: none; position: relative; padding-right: 32px;
  font-weight: 600; color: var(--text);
}
.notice-more summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker,
.sources-more summary::-webkit-details-marker, .glossary summary::-webkit-details-marker { display: none; }
.notice-more summary::after, .faq-item summary::after, .sources-more summary::after, .glossary summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
}
.notice-more[open] summary::after, .faq-item[open] summary::after,
.sources-more[open] summary::after, .glossary[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.notice-more summary:hover, .faq-item summary:hover, .sources-more summary:hover, .glossary summary:hover { color: var(--accent-text); }
.sources-more summary, .glossary summary { padding: 15px 48px 15px 20px; font-size: 16px; }
.sources-more summary::after, .glossary summary::after { right: 24px; }

/* Установка после демонстрации и перед подвалом (Семён 09.11: кнопки Google
 * Play были только наверху). На компьютере рядом QR-код страницы в Play:
 * поставить на телефон, не набирая адрес. Плитка кода белая в обеих темах,
 * сканеру нужен тёмный код на светлом. */
.install-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 48px;
  padding: 32px 36px; border-radius: var(--radius-md); background: var(--card);
}
.install-copy h2 { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.2; margin-bottom: 8px; }
.install-copy p { font-size: 16.5px; }
.install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.install-qr { display: none; flex: none; flex-direction: column; align-items: center; gap: 10px; margin: 0; }
.install-qr img { width: 132px; height: 132px; padding: 8px; border-radius: 12px; background: var(--qr-tile); }
.install-qr figcaption { max-width: 150px; font-size: 13px; line-height: 1.4; text-align: center; color: var(--text-3); }
@media (min-width: 641px) and (hover: hover) and (pointer: fine) {
  .install-qr { display: flex; }
}
.get-app { padding: 0 0 76px; }
.get-app-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 24px 32px; border-radius: var(--radius-md); background: var(--card);
}
.get-app h2 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.25; }
.get-app p { margin-top: 4px; font-size: 15px; color: var(--text-3); }

/* Откуда данные: названия и свежесть видны сразу, что берём и лицензии в
 * таблице под «Подробнее об источниках» (Семён 09.11: таблица удлиняла
 * телефон). Даты подставляет landing.js. */
.sources-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sources-list li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--card); }
.source-name { font-weight: 600; color: var(--text); }
.source-date { font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sources-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border-top: 1px solid var(--line); }
.sources-table th[scope="col"] {
  text-align: left; padding: 14px 16px 12px 0; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
}
.sources-table td, .sources-table th[scope="row"] {
  text-align: left; vertical-align: top; padding: 16px 16px 16px 0; color: var(--text-2);
}
.sources-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.sources-table tr > :first-child { padding-left: 20px; }
.sources-table th[scope="row"] { font-weight: 600; color: var(--text); }
.sources-note { padding: 14px 20px 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }

/* Границы применимости: короткое предупреждение видно сразу, подробности по нажатию */
.notice { padding: 32px 36px 20px; border-radius: var(--radius-md); background: var(--card); }
.notice-title { display: flex; align-items: center; gap: 12px; font-size: clamp(23px, 2.6vw, 28px); margin-bottom: 12px; }
.notice-title svg { flex: none; color: var(--accent-text); }
/* Короткое предупреждение жёлтой заметкой, как предупреждение погоды в приложении. */
.notice-text { margin-bottom: 22px; padding: 14px 18px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-size: 16.5px; }
.notice-more { margin-top: 26px; border-top: 1px solid var(--line); }
.notice-more summary { padding-top: 16px; padding-bottom: 12px; font-size: 16px; }
.limits-list { list-style: none; padding: 0; columns: 2 320px; column-gap: 40px; }
.limits-list li { break-inside: avoid; padding: 12px 0 14px; border-top: 1px solid var(--line); }
.limits-list strong { display: block; margin-bottom: 3px; font-weight: 600; font-size: 15.5px; color: var(--text); }
.limits-list span { font-size: 15px; }

/* Закрытое тестирование */
.testing-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; padding: 40px; border-radius: var(--radius-md); background: var(--card); }
.testing-badge { margin-bottom: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.testing-copy h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.15; margin-bottom: 16px; }
.testing-copy p + p { margin-top: 12px; }
.testing-join h3 { font-size: 18px; margin-bottom: 14px; }
.testing-list { list-style: none; padding: 0; margin-bottom: 26px; display: grid; gap: 10px; font-size: 15px; }
.testing-list li { display: flex; gap: 12px; }
.testing-list .dot { flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--accent); }
.testing-join .cta-btn { width: 100%; min-height: 50px; font-size: 15.5px; border-radius: var(--radius-btn); }
.testing-fineprint { margin-top: 12px; font-size: 13px; color: var(--text-3); }

/* Вопросы одним сгруппированным списком: карточка, разделитель с отступом слева. */
.faq-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; }
.faq-list { border-radius: var(--radius-md); background: var(--card); overflow: hidden; }
.faq-item + .faq-item { background: linear-gradient(var(--line), var(--line)) 20px 0 / calc(100% - 20px) 1px no-repeat; }
.faq-item summary { padding: 16px 48px 16px 20px; font-size: 16.5px; }
.faq-item summary::after { right: 24px; }
.faq-item p { padding: 0 20px 18px; font-size: 15.5px; }
/* Документы компактно, одними названиями (Семён 09.11: они есть и в подвале).
 * Разделители это просвет 1 px в сетке над фоном цвета линии. */
.docs { margin-top: 48px; }
.docs-title { font-size: 20px; margin-bottom: 14px; }
.docs-grid {
  list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  border-radius: var(--radius-md); background: var(--line); overflow: hidden;
}
.docs-grid li { background: var(--card); }
/* Документов в теле три (правила ушли в памятки): три колонки без пустой ячейки. */
.docs-grid.docs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Памяток не обязательно кратно колонкам (с 13.11 их семь): последняя
 * занимает остаток ряда, чтобы не оставалось пустой ячейки. */
#guides .docs-grid li:last-child:nth-child(4n + 1) { grid-column: span 4; }
#guides .docs-grid li:last-child:nth-child(4n + 2) { grid-column: span 3; }
#guides .docs-grid li:last-child:nth-child(4n + 3) { grid-column: span 2; }
#guides + .docs { margin-top: 32px; }
.docs-grid a { position: relative; display: flex; align-items: center; height: 100%; min-height: 52px; padding: 12px 40px 12px 18px; font-weight: 500; color: var(--text); text-decoration: none; }
.docs-grid a:hover { color: var(--accent-text); }
.docs-grid a::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: translateY(-50%) rotate(-45deg);
}

/* Движение (Семён 09.11: «не хватает анимации или красивости»). Блоки ниже
 * первого экрана мягко поднимаются при прокрутке: класс reveal ставит
 * landing-motion.js только им и только без «уменьшить движение», без скрипта
 * всё видно сразу. Раскрывашки открываются плавно там, где браузер умеет
 * анимировать высоту до auto (Chrome 131+), шевроны поворачиваются. */
@media (prefers-reduced-motion: no-preference) {
  /* Прячется мгновенно (переход только у is-revealed), появляется плавно. */
  .reveal { opacity: 0; transform: translateY(28px); }
  .reveal.is-revealed {
    opacity: 1; transform: none;
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .screens-track .screen-item { transition: transform 0.35s ease; }
  .screens-track .screen-frame { transition: opacity 0.35s ease; }
  .notice-more summary::after, .faq-item summary::after, .sources-more summary::after, .glossary summary::after { transition: transform 0.3s ease; }
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .notice-more::details-content, .faq-item::details-content, .sources-more::details-content, .glossary::details-content {
      height: 0; overflow: clip; transition: height 0.35s ease, content-visibility 0.35s allow-discrete;
    }
    .notice-more[open]::details-content, .faq-item[open]::details-content,
    .sources-more[open]::details-content, .glossary[open]::details-content { height: auto; }
  }
}
/* На телефоне в галерее в фокусе кадр у края, у соседнего приглушена только
 * картинка, подпись читается (ставит landing.js, когда кадры не помещаются). */
.screens-track .screen-item.is-dim { transform: scale(0.96); }
.screens-track .screen-item.is-dim .screen-frame { opacity: 0.45; }
.docs-grid a { transition: background-color 0.2s, color 0.2s; }
@media (hover: hover) {
  .docs-grid a:hover { background: var(--surface-hover); }
  .faq-item summary:hover, .sources-more summary:hover, .glossary summary:hover { background: var(--surface-hover); }
}
.faq-item summary, .sources-more summary, .glossary summary { transition: background-color 0.2s, color 0.2s; }

/* Подвал */
.site-foot { padding: 56px 0 40px; background: var(--bg-deep); border-top: 1px solid var(--line); font-size: 14px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.foot-about { flex: 1 1 340px; max-width: 520px; }
.foot-brand { margin-bottom: 10px; font-weight: 600; font-size: 16px; color: var(--text); }
.foot-about p + p { margin-top: 12px; }
.foot-nav { flex: 0 1 200px; }
.foot-nav h2 { margin-bottom: 12px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.foot-nav ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot-nav a { color: var(--text-2); }
.foot-nav a:hover { color: var(--text); }
.foot-legal, .foot-tm { font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-tm { margin-top: 6px; }
.nw { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .screens-dot::before { transition: none; }
}
@media (max-width: 900px) {
  .testing-card, .faq-cols { grid-template-columns: minmax(0, 1fr); }
  .docs-grid, .sources-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #guides .docs-grid li:last-child:nth-child(n) { grid-column: auto; }
  #guides .docs-grid li:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 760px) {
  /* Источники на телефоне одним списком: название слева, свежесть справа
   * (не хватит места, уходит строкой ниже), как ряды листа приложения. */
  .sources-list { grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: var(--radius-md); background: var(--card); overflow: hidden; }
  .sources-list li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 13px 18px; border-radius: 0; background: none; }
  .sources-list li + li { background: linear-gradient(var(--line), var(--line)) 18px 0 / calc(100% - 18px) 1px no-repeat; }
  .source-date { margin-left: auto; text-align: right; }
  /* Таблица под «Подробнее» на телефоне: каждая строка своей записью,
   * подпись столбца (data-label) в начале строки со значением. */
  .sources-table thead { display: none; }
  .sources-table, .sources-table tbody, .sources-table tr, .sources-table td, .sources-table th[scope="row"] { display: block; }
  .sources-table tr { padding: 14px 18px 16px; }
  .sources-table tbody tr + tr { border-top: 1px solid var(--line); }
  .sources-table td, .sources-table th[scope="row"], .sources-table tbody tr + tr > * { padding: 0; border: 0; }
  .sources-table th[scope="row"] { margin-bottom: 6px; font-size: 16px; }
  .sources-table td + td { margin-top: 6px; }
  .sources-table td::before {
    content: attr(data-label); margin-right: 8px;
    font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
  }
  /* Шаги строками списка: номер слева, текст справа, как ряды листа приложения. */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; padding: 18px 18px 20px; }
  .step-num { grid-row: 1 / span 2; margin-bottom: 0; }
  .steps h3, .steps p { grid-column: 2; }
  .steps h3 { margin: 4px 0 6px; font-size: 18px; }
}
@media (max-width: 640px) {
  .screens-track { margin: 0 -20px; padding: 0 20px 10px; scroll-padding: 0 20px; }
  .section { padding: 48px 0; }
  .section--joined { padding-top: 0; }
  .section-lead { margin-bottom: 24px; font-size: 16px; }
  .glossary dl { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 0 18px 16px; }
  .glossary dd + dt { margin-top: 10px; }
  .glossary summary, .sources-more summary { padding-left: 18px; }
  .install-card { display: block; padding: 24px 20px; }
  .install-actions { margin-top: 16px; }
  .get-app { padding-bottom: 48px; }
  .get-app-card { padding: 20px; }
  .notice { padding: 22px 18px 10px; }
  .notice-title { margin-bottom: 10px; }
  .notice-text { margin-bottom: 18px; padding: 12px 14px; font-size: 16px; }
  .testing-card { gap: 24px; padding: 24px 20px; }
  .docs { margin-top: 40px; }
  .docs-grid, .docs-grid.docs-grid--3 { grid-template-columns: minmax(0, 1fr); }
  #guides .docs-grid li:last-child:nth-child(n) { grid-column: auto; }
  .docs-grid a { min-height: 48px; }
  #guides + .docs { margin-top: 28px; }
  /* Подвал: две колонки ссылок рядом, а не одна под другой. */
  .site-foot { padding: 40px 0 32px; }
  .foot-cols { gap: 28px 24px; }
  .foot-nav { flex: 1 1 140px; }
  .foot-legal { margin-top: 28px; }
}
