/* ============================================================
   alight-motion.ru — вёрстка из Pencil-макета «alight».
   Mobile-first (макет 360px), desktop-брейкпоинт 1024px.
   Тема: dark по умолчанию + light через prefers-color-scheme.
   ============================================================ */

:root {
  /* Тёмная тема (канон макета) */
  --bg: #0E1116;
  --surface: #171B22;
  --surface-2: #1E2530;
  --border: #252B36;
  --text: #E8EBF0;
  --text-muted: #9AA4B2;
  --accent: #7C5CFF;
  --accent-hover: #6B4AEE;
  --on-accent: #FFFFFF;
  --success: #31C48D;
  --success-soft: #10241C;
  --warning: #F5A524;
  --warning-soft: #2A2113;
  --accent-soft: #1B1733;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-btn: 12px;
  --r-card: 16px;
  --r-pill: 999px;
  --pad: 16px;

  --content-max: 420px;   /* mobile колонка */
}

/* Светлая тема — опционально, через <html data-theme="light">.
   По умолчанию сайт тёмный (канон макета). */
:root[data-theme="light"] {
    --bg: #FFFFFF;
    --surface: #F4F6F9;
    --surface-2: #EAEEF3;
    --border: #DDE3EC;
    --text: #141A22;
    --text-muted: #5B6675;
    --accent: #6B4AEE;
    --accent-hover: #5A3AD8;
    --success: #12885E;
    --success-soft: #E1F5EC;
    --warning: #B57312;
    --warning-soft: #FCF1DC;
    --accent-soft: #EDE9FF;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}

.icon { display: inline-block; width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.page { width: 100%; overflow-x: hidden; }
.container {
  width: 100%; max-width: var(--content-max);
  margin-inline: auto; padding-inline: var(--pad);
}

/* ============================================================
   Компоненты
   ============================================================ */

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 20px; border-radius: var(--r-btn);
  font-size: 17px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--secondary { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn--secondary .icon { color: var(--accent); }
.btn .icon { width: 20px; height: 20px; }
.btn--block { display: flex; width: 100%; }

/* Trust badge */
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  background: var(--success-soft); border-radius: var(--r-pill);
  color: var(--success); font-size: 13px; font-weight: 600;
}
.trust-badge .icon { width: 14px; height: 14px; }

/* Rating */
.rating { display: inline-flex; align-items: center; gap: 8px; }
.rating__stars { display: inline-flex; gap: 2px; color: var(--warning); }
.rating__stars .icon { width: 16px; height: 16px; }
.rating__value { font-size: 15px; font-weight: 700; color: var(--text); }

/* Feature card */
.feature-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
}
.feature-card__ib {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: var(--accent-soft); border-radius: 12px; color: var(--accent);
}
.feature-card__ib .icon { width: 22px; height: 22px; }
.feature-card__title { font-size: 18px; font-weight: 600; }
.feature-card__desc { color: var(--text-muted); font-size: 15px; line-height: 1.45; }

/* ============================================================
   Шапка (mobile)
   ============================================================ */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 56px;
}
.logo { display: flex; align-items: center; gap: 9px; }
.logo__img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.logo__brand { font-size: 17px; font-weight: 700; }
.burger { display: flex; color: var(--text); }
.burger .icon { width: 24px; height: 24px; }
.site-header__menu, .site-header__cta { display: none; }

/* ============================================================
   Подвал (mobile)
   ============================================================ */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); }
.site-footer__inner { display: flex; flex-direction: column; gap: 20px; padding-block: 28px 88px; }  /* макет: 28 сверху, 88 снизу */
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand-row { display: flex; align-items: center; gap: 9px; }
.site-footer__logo { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.site-footer__name { font-size: 16px; font-weight: 700; }
.site-footer__tag { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.site-footer__cols { display: flex; gap: 16px; }
.fcol { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.fcol__h { font-size: 12px; font-weight: 700; }
.fcol a { color: var(--text-muted); font-size: 14px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer__legal a { color: var(--text-muted); font-size: 12px; }
.site-footer__bottom {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.site-footer__cc, .site-footer__disc { color: var(--text-muted); font-size: 12px; }
.site-footer__disc { line-height: 1.5; }

/* ============================================================
   Общие секции
   ============================================================ */
.section { display: flex; flex-direction: column; gap: 14px; padding-block: 24px; }
/* h2 и контент лежат внутри .container — тянем на него ту же колонку с gap,
   иначе из-за reset `* { margin: 0 }` заголовок прилипает к контенту */
.section > .container { display: flex; flex-direction: column; gap: 14px; }
.h2 { font-size: 21px; font-weight: 700; line-height: 1.3; }
.lead { font-size: 16px; line-height: 1.6; }

/* Утилиты */
.ok { color: var(--success); }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }

/* ============================================================
   Hero
   ============================================================ */
.hero__inner { display: flex; flex-direction: column; gap: 16px; padding-block: 24px 28px; }
.hero__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero__preview { display: none; }   /* превью только на desktop */
.hero__top { display: flex; align-items: center; gap: 16px; }
.hero__app-icon { width: 88px; height: 88px; border-radius: 20px; border: 1px solid var(--border); object-fit: cover; flex-shrink: 0; }
.hero__title-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero__h1 { font-size: 26px; font-weight: 700; line-height: 1.23; }
.hero__subtitle { color: var(--text-muted); font-size: 15px; line-height: 1.4; }
.hero__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__rate { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; }
.hero__rate .icon { width: 15px; height: 15px; color: var(--warning); }
.hero__stats .dot { color: var(--border); }
.hero__stat { color: var(--text-muted); font-size: 14px; }
.hero__buttons { display: flex; flex-direction: column; gap: 10px; }
.hero__trust { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-muted); font-size: 13px; }
.hero__trust .icon { width: 14px; height: 14px; color: var(--success); }

/* ============================================================
   Info Table
   ============================================================ */
.itable { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.itable__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 0 14px; }
.itable__row:not(:last-child) { border-bottom: 1px solid var(--border); }
.itable__row:nth-child(odd) { background: var(--surface-2); }
.itable__key { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.itable__val { font-size: 14px; font-weight: 600; text-align: right; }

/* ============================================================
   Prose (What Is It)
   ============================================================ */
.prose { display: flex; flex-direction: column; gap: 12px; }
.prose p { color: var(--text-muted); font-size: 17px; line-height: 1.53; }

/* ============================================================
   Screenshots lane
   ============================================================ */
.shots__lane { display: flex; gap: 12px; overflow-x: auto; padding-inline: 16px; -webkit-overflow-scrolling: touch; }
.shot { display: flex; flex-direction: column; gap: 8px; width: 240px; flex-shrink: 0; }
.shot__img { width: 240px; height: 135px; border-radius: 12px; border: 1px solid var(--border); object-fit: cover; }
.shot__cap { color: var(--text-muted); font-size: 14px; line-height: 1.4; }

/* ============================================================
   Features grid
   ============================================================ */
.features { display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   Free vs Pro table
   ============================================================ */
.cmp2 { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.cmp2__row { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; }
.cmp2__row:not(:last-child) { border-bottom: 1px solid var(--border); }
.cmp2__row--head { background: var(--surface-2); }
.cmp2__feat { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; }
.cmp2__row--head .cmp2__feat { color: var(--text-muted); font-weight: 600; }
.cmp2__cell { width: 78px; flex-shrink: 0; text-align: center; font-size: 14px; color: var(--text-muted); }
.cmp2__row--head .cmp2__cell { font-weight: 600; }
.cmp2__cell--pro { color: var(--accent); font-weight: 700; }
.cmp2__yes { color: var(--success); font-weight: 600; }
.cmp2-cta { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px; background: var(--accent-soft); border-radius: var(--r-btn); color: var(--accent); font-size: 15px; font-weight: 600; }
.cmp2-cta .icon { width: 16px; height: 16px; }

/* ============================================================
   Install steps
   ============================================================ */
.isteps { display: flex; flex-direction: column; gap: 12px; }
.istep { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.istep__head { display: flex; align-items: center; gap: 12px; }
.istep__num { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; background: var(--accent); border-radius: var(--r-pill); color: var(--on-accent); font-size: 15px; font-weight: 700; }
.istep__title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.istep__desc { color: var(--text-muted); font-size: 15px; line-height: 1.5; }
.istep__screen { display: flex; align-items: center; justify-content: center; height: 120px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; color: var(--border); }
.istep__screen .icon { width: 26px; height: 26px; }

/* ============================================================
   Download (versions)
   ============================================================ */
.dl-versions { display: flex; flex-direction: column; gap: 10px; }
.dlv { display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-card); }
.dlv--latest { border-color: var(--accent); }
.dlv__col { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dlv__vrow { display: flex; align-items: center; gap: 8px; }
.dlv__ver { font-size: 16px; font-weight: 700; }
.dlv__tag { background: var(--accent); color: var(--on-accent); border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 600; }
.dlv__meta { color: var(--text-muted); font-size: 13px; }
.dlv__btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.dlv__btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dlv__btn .icon { width: 20px; height: 20px; }
.dl-alt { display: flex; gap: 10px; }
.dl-alt-card { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3px; height: 72px; padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-card); }
.dl-alt-card__row { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; }
.dl-alt-card__row .icon { width: 16px; height: 16px; color: var(--accent); }
.dl-alt-card__sub { color: var(--text-muted); font-size: 13px; }

/* ============================================================
   Guides
   ============================================================ */
.guides { display: flex; flex-direction: column; gap: 10px; }
.guide { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 5px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.guide__ib { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; background: var(--accent-soft); border-radius: 12px; color: var(--accent); }
.guide__ib .icon { width: 22px; height: 22px; }
.guide__col { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.guide__title { font-size: 16px; font-weight: 600; }
.guide__desc { color: var(--text-muted); font-size: 14px; line-height: 1.4; }
.guide__arrow { color: var(--text-muted); }
.guide__arrow .icon { width: 18px; height: 18px; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq[open] { border-color: var(--accent); }
.faq__q { display: flex; align-items: center; gap: 12px; padding: 16px; list-style: none; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__qt { flex: 1; font-size: 17px; font-weight: 600; line-height: 1.35; }
.faq__q .icon { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.faq[open] .faq__q .icon { color: var(--accent); }
.faq__chev-open { display: none; }
.faq[open] .faq__chev-open { display: block; }
.faq[open] .faq__chev-closed { display: none; }
.faq__a { padding: 0 16px 16px; color: var(--text-muted); font-size: 16px; line-height: 1.55; }

/* ============================================================
   Reviews
   ============================================================ */
.rev-summary { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.rev-avg { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rev-avg__v { font-size: 40px; font-weight: 700; line-height: 1; }
.rev-avg__stars { display: flex; gap: 2px; color: var(--warning); }
.rev-avg__stars .icon { width: 13px; height: 13px; }
.rev-avg__stars .icon.empty { color: var(--border); }
.rev-txt { display: flex; flex-direction: column; gap: 4px; }
.rev-txt__c { font-size: 16px; font-weight: 600; }
.rev-txt__d { color: var(--text-muted); font-size: 14px; line-height: 1.4; }
.rev-form { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.rev-form__label { font-size: 16px; font-weight: 600; }
.rev-form__rate { display: flex; gap: 6px; color: var(--warning); }
.rev-form__rate .icon { width: 26px; height: 26px; }
.rev-form__rate .icon.empty { color: var(--surface-2); }
.rev-form__input { min-height: 80px; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font: inherit; resize: vertical; }
.rev-form__input::placeholder { color: var(--text-muted); }
.rev-form__submit { align-self: flex-start; padding: 11px 20px; background: var(--accent); color: var(--on-accent); border-radius: var(--r-btn); font-size: 15px; font-weight: 600; }
.review { display: flex; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.review__av { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--r-pill); font-size: 15px; font-weight: 700; }
.review__col { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.review__meta { display: flex; align-items: center; gap: 8px; }
.review__name { font-size: 15px; font-weight: 600; }
.review__stars { color: var(--warning); font-size: 12px; }
.review__text { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

/* ============================================================
   Similar apps
   ============================================================ */
.similar { display: flex; flex-direction: column; gap: 10px; }
.simcard { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.simcard__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; font-size: 19px; font-weight: 700; }
.simcard__col { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.simcard__name { font-size: 16px; font-weight: 600; }
.simcard__desc { color: var(--text-muted); font-size: 14px; line-height: 1.4; }

.section--surface { background: var(--surface); }

/* Цветные аватары отзывов и иконки похожих приложений */
.review__av--a { background: rgba(124,92,255,0.2); color: var(--accent); }
.review__av--b { background: rgba(49,196,141,0.2); color: var(--success); }
.simcard__icon--c { background: rgba(49,196,141,0.15); color: #31C48D; }
.simcard__icon--k { background: rgba(245,165,36,0.15); color: #F5A524; }
.simcard__icon--i { background: rgba(124,92,255,0.15); color: #7C5CFF; }
.simcard__icon--v { background: rgba(61,169,252,0.15); color: #3DA9FC; }

/* ============================================================
   Скрытые по умолчанию desktop-блоки
   ============================================================ */


/* ============================================================
   DESKTOP (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding-inline: 24px; }

  /* --- Шапка --- */
  .site-header__inner { height: 64px; gap: 32px; }
  .logo__brand { font-size: 18px; }
  .burger { display: none; }
  .site-header__menu { display: flex; flex: 1; align-items: center; gap: 26px; }
  .site-header__menu a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
  .site-header__menu a.accent { color: var(--accent); font-weight: 600; }
  .site-header__cta { display: inline-flex; height: 40px; padding: 0 18px; font-size: 15px; }
  .site-header__cta .icon { width: 17px; height: 17px; }

  /* --- Герой главной: единый блок, на desktop — 2 колонки с превью --- */
  .hero__inner { display: grid; grid-template-columns: 1fr 480px; gap: 48px; align-items: center; padding-block: 0 136px; }
  /* макет: иконка, H1, Sub — отдельными строками с шагом 20px */
  .hero__top, .hero__title-col { display: contents; }
  .hero__main { gap: 20px; }
  .hero__top { gap: 18px; }
  .hero__app-icon { width: 80px; height: 80px; border-radius: 18px; }
  .hero__h1 { font-size: 40px; line-height: 1.2; }
  .hero__subtitle { font-size: 18px; line-height: 1.55; max-width: 560px; }
  .hero__stats { font-size: 15px; }
  .hero__stat { font-size: 15px; }
  .hero__buttons { flex-direction: row; gap: 12px; padding-top: 6px; }
  .hero__buttons .btn--block { width: auto; }
  .hero__trust { justify-content: flex-start; font-size: 14px; }
  .hero__preview { display: block; width: 480px; height: 300px; border-radius: 16px; border: 1px solid var(--border); object-fit: cover; }


  /* Лента скриншотов — выровнять по контейнеру, а не по краю окна */
  .shots__lane { max-width: 1200px; margin-inline: auto; padding-inline: 24px; gap: 16px; }
  .shot { width: 300px; }
  .shot__img { width: 300px; height: 168px; }

  /* Заголовки секций крупнее */
  .section { gap: 16px; padding-block: 0 80px; }
  .section > .container { gap: 16px; }
  .section--surface { padding-block: 64px 80px; }
  .cmp2 { max-width: 720px; margin-inline: auto; width: 100%; }
  .cmp2__row { min-height: 52px; padding-inline: 20px; }
  .cmp2-cta { width: auto; min-width: 258px; height: 48px; padding: 0 20px; margin-inline: auto; }
  .h2 { font-size: 30px; line-height: 1.27; }
  .section { padding-block: 40px; }

  /* --- Info table: 2 колонки (column-major) --- */
  .itable { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; }
  .itable__row { min-height: 52px; padding-inline: 20px; }
  .itable__key, .itable__val { font-size: 15px; }
  .itable__row:nth-child(odd) { background: var(--surface-2); }
  .itable__row:nth-child(-n+5) { border-right: 1px solid var(--border); }
  .itable__row:not(:last-child) { border-bottom: 1px solid var(--border); }
  .itable__row:nth-child(5) { border-bottom: none; }

  /* What is it: текст в колонку 760 */
  .prose { max-width: 760px; gap: 14px; }
  .prose p { font-size: 18px; line-height: 1.56; }

  /* --- Features: 4 колонки --- */
  .features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

  /* --- Free vs Pro: колонка 720 --- */
  .cmp2, .cmp2-cta { max-width: 720px; }

  /* --- Install: горизонтальные шаги без скрин-плейсхолдера --- */
  .isteps { display: flex; flex-direction: column; gap: 16px; }
  .istep { display: grid; grid-template-columns: 40px 1fr 180px; grid-template-rows: auto auto;
           column-gap: 20px; row-gap: 4px; align-items: center; height: 140px; padding: 20px; }
  .istep__head { display: contents; }
  .istep__num { grid-column: 1; grid-row: 1 / 3; width: 40px; height: 40px; font-size: 17px; }
  .istep__title { grid-column: 2; grid-row: 1; align-self: end; font-size: 18px; }
  .istep__desc { grid-column: 2; grid-row: 2; align-self: start; }
  .istep__screen { grid-column: 3; grid-row: 1 / 3; height: 100px; }

  /* --- Guides: 4 колонки, карточка вертикальная --- */
  .guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .guide { min-height: 184px; padding: 20px; justify-content: center; }
  .guide { flex-direction: column; align-items: flex-start; gap: 8px; }
  .guide__arrow { display: none; }

  /* --- FAQ: колонка 860 --- */
  .faq-list { max-width: 860px; }

  /* --- Reviews: 2 колонки (форма слева, отзывы справа) --- */
  .rev-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
  .rev-left { display: flex; flex-direction: column; gap: 16px; }
  .rev-summary { flex-direction: column; align-items: flex-start; }
  .rev-list { display: flex; flex-direction: column; gap: 16px; }

  /* --- Similar: 2 колонки --- */
  .similar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  /* --- Подвал: скрыть mobile, показать desktop --- */
  
  
  .footer-d__cols { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr 1fr; gap: 40px; padding-block: 40px 0; }
  .footer-d__brand { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
  .footer-d__bottom { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; margin-top: 24px; border-top: 1px solid var(--border); }
}

/* ============================================================
   /pro/ — компоненты
   ============================================================ */
.hero-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; background: var(--accent-soft); border-radius: var(--r-pill); color: var(--accent); font-size: 12px; font-weight: 600; }
.hero-pill .icon { width: 13px; height: 13px; }

.crumbs { }
.crumbs__inner { display: flex; align-items: center; gap: 6px; padding-block: 12px 4px; }
.crumbs a { color: var(--text-muted); font-size: 13px; }
.crumbs__sep { color: var(--border); }
.crumbs__cur { color: var(--text-muted); font-size: 13px; }

/* What Pro Gives — perks */
.perks { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.perk { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.perk:not(:last-child) { border-bottom: 1px solid var(--border); }
.perk__c { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; background: var(--success-soft); border-radius: var(--r-pill); color: var(--success); }
.perk__c .icon { width: 14px; height: 14px; }
.perk__t { font-size: 16px; line-height: 1.4; }

/* Mod vs Sub */
.modsub { display: flex; flex-direction: column; gap: 12px; }
.msub { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.msub--mod { border-color: var(--accent); }
.msub__head { display: flex; align-items: center; gap: 9px; }
.msub__ib { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; background: var(--accent-soft); border-radius: 9px; color: var(--accent); }
.msub__ib .icon { width: 17px; height: 17px; }
.msub__ib--muted { color: var(--text-muted); }
.msub__title { font-size: 17px; font-weight: 700; }
.msub__row { display: flex; gap: 10px; }
.msub__row .icon { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.msub__row .ok { color: var(--success); }
.msub__row .no { color: var(--text-muted); }
.msub__row span { color: var(--text-muted); font-size: 15px; line-height: 1.45; }

/* Install steps (horizontal) */
.psteps { display: flex; flex-direction: column; gap: 12px; }
.pstep { display: flex; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.pstep__num { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; background: var(--accent); border-radius: var(--r-pill); color: var(--on-accent); font-size: 14px; font-weight: 700; }
.pstep__col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pstep__t { font-size: 16px; font-weight: 600; line-height: 1.3; }
.pstep__d { color: var(--text-muted); font-size: 15px; line-height: 1.45; }

/* Comments */
.comments { display: flex; flex-direction: column; gap: 12px; }
.comment-input { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.comment-input textarea { min-height: 44px; background: none; border: none; color: var(--text); font: inherit; resize: vertical; }
.comment-input textarea::placeholder { color: var(--text-muted); }
.comment-input__send { align-self: flex-start; padding: 9px 18px; background: var(--accent); color: var(--on-accent); border-radius: 12px; font-size: 14px; font-weight: 600; }
.comment { display: flex; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.comment__av { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--r-pill); font-size: 14px; font-weight: 700; }
.comment__av--a { background: rgba(124,92,255,0.2); color: var(--accent); }
.comment__av--b { background: rgba(49,196,141,0.2); color: var(--success); }
.comment__col { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.comment__meta { display: flex; align-items: center; gap: 8px; }
.comment__name { font-size: 14px; font-weight: 600; }
.comment__date { color: var(--text-muted); font-size: 12px; }
.comment__text { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

@media (min-width: 1024px) {
  .crumbs__inner { padding-block: 14px; }
  /* Perks в 2 колонки — отдельные карточки */
  .perks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: none; border: none; overflow: visible; }
  .perk { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); height: 64px; padding: 0 18px; }
  /* Мод vs подписка — 2 колонки */
  .modsub { display: grid; grid-template-columns: 1fr 1fr; }
  /* Install — 3 колонки */
  .psteps { display: grid; grid-template-columns: repeat(3, 1fr); }
  /* Comments — форма + сетка */
  .comments { max-width: 860px; }
}

/* ============================================================
   /na-pc/ — компоненты
   ============================================================ */
.pc-hero__inner { display: flex; flex-direction: column; gap: 14px; padding-block: 16px 24px; }
.pc-hero__h1 { font-size: 26px; font-weight: 700; line-height: 1.23; }
.pc-hero__sub { color: var(--text-muted); font-size: 16px; line-height: 1.5; }
.answer { display: flex; gap: 11px; padding: 14px; background: var(--accent-soft); border-radius: var(--r-card); }
.answer .icon { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.answer span { color: var(--text); font-size: 15px; line-height: 1.5; }

/* Emulator cards */
.emus { display: flex; flex-direction: column; gap: 12px; }
.emu { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.emu__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.emu__l { display: flex; align-items: center; gap: 10px; }
.emu__ib { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; background: var(--accent-soft); border-radius: 9px; color: var(--accent); }
.emu__ib .icon { width: 19px; height: 19px; }
.emu__name { font-size: 18px; font-weight: 700; }
.emu__tag { background: #000000; border-radius: var(--r-pill); padding: 4px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.emu__tag--rec { color: var(--accent); }
.emu__tag--light { color: var(--success); }
.emu__tag--flex { color: var(--warning); }
.emu__desc { color: var(--text-muted); font-size: 15px; line-height: 1.45; }
:root[data-theme="light"] .emu__tag { background: #EAEEF3; }

/* Spec / compare tables */
.spectbl { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.spectbl__row { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 46px; }
.spectbl__row--head { background: var(--surface-2); min-height: 44px; }
.spectbl__row:not(:last-child) { border-bottom: 1px solid var(--border); }
.spectbl--striped .spectbl__row:nth-child(even) { background: var(--surface-2); }
.spectbl__feat { flex: 1; min-width: 0; font-size: 13px; color: var(--text); }
.spectbl__row--head .spectbl__feat { color: var(--text-muted); font-weight: 600; }
.spectbl__c { flex-shrink: 0; font-size: 13px; color: var(--text); }
.spectbl__row--head .spectbl__c { color: var(--text-muted); font-weight: 600; }
.spectbl__c--accent { color: var(--accent); font-weight: 700; }
.spectbl-note { color: var(--text-muted); font-size: 14px; line-height: 1.45; }

/* Problems */
.probcards { display: flex; flex-direction: column; gap: 12px; }
.probcard { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.probcard__h { display: flex; align-items: center; gap: 9px; }
.probcard__h .icon { width: 16px; height: 16px; color: var(--warning); flex-shrink: 0; }
.probcard__t { font-size: 16px; font-weight: 600; }
.probcard__d { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

@media (min-width: 1024px) {
  .pc-hero__inner { padding-block: 24px 40px; }
  .pc-hero__h1 { font-size: 40px; }
  .pc-hero__sub { font-size: 18px; max-width: 760px; }
  .answer { max-width: 820px; }
  .emus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .spectbl { max-width: 720px; }
  .probcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .psteps--half { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   /kak-polzovatsya/ — компоненты
   ============================================================ */
.glayout { display: block; }

.toc-box { display: flex; flex-direction: column; gap: 9px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.toc-box__h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.toc-box__h .icon { width: 16px; height: 16px; color: var(--accent); }
.toc-box__it { display: flex; gap: 9px; }
.toc-box__n { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.toc-box__t { flex: 1; font-size: 15px; line-height: 1.4; }

.guide-content { display: flex; flex-direction: column; }
.gsec { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.gsec__h { display: flex; align-items: center; gap: 10px; }
.gsec__num { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; background: var(--accent-soft); border-radius: 8px; color: var(--accent); font-size: 14px; font-weight: 700; }
.gsec__title { font-size: 20px; font-weight: 700; line-height: 1.25; }
.gsec__desc { color: var(--text-muted); font-size: 16px; line-height: 1.55; }
.gsec__shot { display: flex; align-items: center; justify-content: center; height: 180px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; color: var(--border); }
.gsec__shot .icon { width: 26px; height: 26px; }
.gsec__link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--accent); font-size: 14px; font-weight: 600; }
.gsec__link .icon { width: 15px; height: 15px; }

.related-list { display: flex; flex-direction: column; gap: 12px; }
.relcard { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.relcard__ib { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; background: var(--accent-soft); border-radius: 9px; color: var(--accent); }
.relcard__ib .icon { width: 18px; height: 18px; }
.relcard__t { flex: 1; font-size: 16px; font-weight: 600; min-width: 0; }
.relcard__a { color: var(--text-muted); }
.relcard__a .icon { width: 18px; height: 18px; }

.pc-hero__inner .gsec { padding-top: 0; }

@media (min-width: 1024px) {
  .glayout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; padding-block: 8px 24px; }
  .toc-wrap { position: sticky; top: 24px; }
  .related-list { display: grid; grid-template-columns: repeat(3, 1fr); }
}

/* --- Лайтбокс скриншотов (нативный <dialog>) --- */
.shot__btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.lb { border: 0; padding: 0; background: transparent; overflow: visible;
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; inset: 0; margin: auto; }
.lb::backdrop { background: rgba(6, 8, 12, .9); }
.lb[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lb__img { max-width: min(94vw, 900px); max-height: 78vh; width: auto; height: auto;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.lb__cap { color: var(--text); font-size: 15px; text-align: center; }
.lb__close, .lb__nav { position: fixed; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.lb__close { top: 16px; right: 16px; }
.lb__nav { top: 50%; transform: translateY(-50%); }
.lb__prev { left: 12px; } .lb__next { right: 12px; }
.lb__close:hover, .lb__nav:hover { background: var(--surface-2); }
.gsec__note { color: var(--text-muted); font-size: 14px; }

/* --- маркированные списки на правовых страницах --- */
.ul-list { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.ul-list li { color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.ul-list li::marker { color: var(--accent); }
.section__text + .ul-list { margin-top: 10px; }

/* --- единый подвал вместо двух версий в DOM --- */
/* макет mobile: бренд отдельной строкой (98), колонки ссылок — в ряд (114) */
.site-footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 12px; }
.site-footer__brand { flex: 1 0 100%; }
.fcol { flex: 0 1 auto; min-width: 0; }
.fcol a { overflow-wrap: anywhere; }
.site-footer__brand { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 1024px) {
  .site-footer__cols { display: grid; grid-template-columns: minmax(0,1.6fr) 1fr 1fr 1fr; gap: 40px; }
  .site-footer__inner { padding-block: 40px 0; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; gap: 24px; padding: 20px 0; margin-top: 24px; }
}
