/* ===== Токены ===== */
:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --ink: #17171C;
  --ink-2: #2E2E36;
  --ink-3: #3A3A42;
  --muted: #5F5F68;
  --muted-2: #9A9AA2;
  --faint: #C9C8C1;
  --line: #ECEBE6;
  --line-2: #E3E2DC;
  --line-3: #F1F0EB;

  --accent: #2E7BFF;
  --accent-ink: #1B57D6;
  --accent-soft: #E9F0FF;
  --accent-soft-2: #EEF3FF;
  --accent-line: #BFD3F8;
  --gradient: linear-gradient(135deg, #3B82F6 0%, #1748C7 100%);

  --tint-text: #E9F3EC;
  --tint-image: #F1ECF9;
  --tint-video: #E8EEFA;
  --tint-music: #FFF0E9;
  --tint-neutral: #F3F2ED;

  --ok-bg: #E9F3EC;
  --ok-ink: #2F6B44;

  --r-sm: 7px;
  --r-md: 11px;
  --r-lg: 16px;
  --r-xl: 20px;

  --pad: 80px;
  --maxw: 1280px;
  --sans: 'Onest', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Unbounded', 'Onest', sans-serif;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
/* Атрибут hidden должен побеждать любой display из класса */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation; /* двойной тап не зумит */
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
button { font-family: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.band { background: var(--surface); border-bottom: 1px solid var(--line); }
.section { padding-top: 56px; }
.section--last { padding-bottom: 64px; }
/* Последняя секция страницы всегда отбивается от подвала. Именно last-of-type:
   после секций в разметке идут <script>, и last-child не срабатывал. */
main > section:last-of-type:not(.section--last) { padding-bottom: 64px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Шапка ===== */
.header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { width: 26px; height: 26px; border-radius: 8px; background: var(--gradient); flex-shrink: 0; }
.logo__text { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav a { color: var(--muted); }
.nav a.is-active { color: var(--ink); }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: none; background: none; cursor: pointer; }

/* ===== Хлебные крошки ===== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; height: 56px; font-size: 14px; color: var(--muted-2); }
.crumbs a { color: var(--muted-2); }

/* ===== Заголовки разделов ===== */
.page-head { padding-bottom: 36px; }
.page-head h1 { font-family: var(--display); font-weight: 600; font-size: 42px; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 14px; }
.page-head p { margin: 0 0 28px; max-width: 680px; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ===== Главная: герой ===== */
.hero { padding-top: 76px; padding-bottom: 64px; }
.hero__eyebrow { margin: 0 0 20px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.hero h1 { max-width: 15ch; font-family: var(--display); font-weight: 600; font-size: 54px; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.hero__sub { margin: 18px 0 32px; max-width: 620px; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* Строка поиска как промпт: подсказка перебирает реальные задачи каталога */
.prompt { display: flex; align-items: center; gap: 12px; max-width: 720px; padding: 8px 8px 8px 20px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(23,23,28,.03); transition: border-color .15s, box-shadow .15s; }
.prompt:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px rgba(59,130,246,.12); }
.prompt__mark { font-family: var(--mono, ui-monospace, monospace); font-size: 20px; font-weight: 600; color: var(--accent); flex-shrink: 0; }
.prompt__input { flex-grow: 1; min-width: 0; height: 52px; border: none; outline: none; background: transparent; font-family: inherit; font-size: 18px; color: var(--ink); }
.prompt__input::placeholder { color: var(--muted-2); }
.prompt .btn { height: 52px; padding: 0 26px; border-radius: 12px; font-size: 16px; flex-shrink: 0; }

/* Четыре типа генерации — главная навигация каталога */
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.mode { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .15s, background .15s; }
.mode:hover { color: inherit; border-color: var(--accent-line); background: var(--accent-soft); }
.mode__icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; }
.mode__body { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.mode__name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.mode__job { font-size: 13px; line-height: 1.4; color: var(--muted-2); }
.mode__count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.mode--soon { background: transparent; }
.mode--soon .mode__icon { opacity: .55; }
.mode--soon .mode__count { color: var(--faint); }

/* Заголовки секций */
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section__head h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.section__head p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.section__more { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 15px; color: var(--muted); }
.section__more:hover { color: var(--accent-ink); }

/* ===== Поиск ===== */
.search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 640px; padding: 8px 8px 8px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.search input { flex-grow: 1; min-width: 0; height: 44px; border: none; outline: none; font-family: inherit; font-size: 16px; color: var(--ink); background: transparent; }
.search--plain { padding-right: 18px; }

/* ===== Кнопки ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border: none; border-radius: var(--r-md); background: var(--gradient); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; }
.btn:hover { color: #fff; opacity: .92; }
.btn--lg { height: 52px; border-radius: 12px; font-size: 16px; }
.btn--line { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.btn--line:hover { color: var(--ink); border-color: var(--faint); opacity: 1; }

/* ===== Чипы и фильтры ===== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--ink); }
.chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { font-size: 14px; color: var(--muted-2); margin-right: 4px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 14px; cursor: pointer; }
.fchip.is-active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.sort { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 14px; cursor: pointer; }
.counter { margin: 0 0 20px; font-size: 15px; color: var(--muted-2); }

/* ===== Сетки ===== */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ===== Карточка сервиса ===== */
.tool { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tool:hover { color: inherit; border-color: var(--line-2); }
.tool__top { display: flex; align-items: center; gap: 14px; }
.tool__name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tool__cat { font-size: 13px; color: var(--muted-2); }
.tool__id { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.tool__desc { margin: 16px 0 18px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.tool__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.tool__tags { font-size: 13px; color: var(--muted-2); }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; color: var(--muted); }
.rating svg { fill: var(--accent); }

/* Превью-плитка сервиса */
.thumb { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--lg { width: 92px; height: 92px; border-radius: var(--r-xl); }
.thumb--sm { width: 48px; height: 48px; }

/* ===== Карточка статьи ===== */
.post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.post:hover { color: inherit; border-color: var(--line-2); }
.post__cover { display: flex; align-items: center; justify-content: center; height: 172px; overflow: hidden; }
.post__cover img { width: 100%; height: 100%; object-fit: cover; }
.post__body { display: flex; flex-direction: column; flex-grow: 1; padding: 22px; }
.post__title { margin: 14px 0 10px; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; text-wrap: pretty; }
.post__lead { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.post__meta { margin-top: auto; font-size: 13px; color: var(--muted-2); }
.post__labels { display: flex; align-items: center; gap: 8px; }

/* ===== Бейджи ===== */
.pill { display: inline-flex; align-items: center; align-self: flex-start; height: 26px; padding: 0 10px; border-radius: var(--r-sm); background: var(--tint-neutral); font-size: 12px; font-weight: 500; color: var(--muted); }
.pill--accent { height: 30px; padding: 0 14px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; }
.pill--ok { background: var(--ok-bg); color: var(--ok-ink); }

/* ===== Строка-ссылка ===== */
.row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.row:hover { color: inherit; border-color: var(--line-2); }
.row__title { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.row__meta { font-size: 14px; color: var(--muted-2); flex-shrink: 0; }
.row--media { align-items: center; gap: 18px; padding: 16px 20px; }
.row--media .row__title { display: block; }

/* ===== Пагинация ===== */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 44px 0 0; }
.pager a, .pager span, .pager button { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; }
.pager .is-current { border: none; background: var(--gradient); color: #fff; }
.pager .is-gap { border: none; background: none; color: var(--faint); min-width: 32px; }
.pager .is-off { color: var(--faint); pointer-events: none; }

/* ===== Пустое состояние ===== */
.empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 40px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); text-align: center; }
.empty__icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 22px; background: var(--accent-soft); color: var(--accent-ink); }
.empty h2 { font-size: 24px; font-weight: 600; }
.empty p { margin: 0; max-width: 460px; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ===== Статья ===== */
.article__cover { display: flex; align-items: center; justify-content: center; height: 420px; border-radius: var(--r-xl); overflow: hidden; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__head { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 940px; margin: 40px auto 0; }
.article__head > .pill { align-self: center; }
.article__head h1 { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1.16; letter-spacing: -0.025em; text-align: center; text-wrap: balance; }
.article__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: 14px; color: var(--muted-2); }

.prose { max-width: 920px; margin: 40px auto 0; }
.prose > p { margin: 0 0 18px; font-size: 17px; line-height: 1.72; color: var(--ink-2); text-wrap: pretty; }
.prose > p.lead, .prose > .lead { margin-bottom: 28px; font-size: 19px; line-height: 1.6; color: var(--ink-3); }
.prose h2 { margin: 42px 0 14px; font-size: 25px; font-weight: 600; line-height: 1.25; }
.prose h3 { margin: 32px 0 12px; font-size: 20px; font-weight: 600; }
.prose a { color: var(--accent-ink); }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 0; list-style: none; }
.prose ol { counter-reset: n; }
.prose li { position: relative; margin-bottom: 13px; padding-left: 19px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose ul > li::before { content: ''; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 4px; background: var(--accent); }
.prose ol > li::before { counter-increment: n; content: counter(n) '.'; position: absolute; left: 0; top: 0; color: var(--accent-ink); font-weight: 600; }
.prose blockquote { margin: 0 0 28px; padding: 0; }
.prose blockquote p { margin: 0; font-size: 21px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.prose figure { margin: 0 0 28px; }
.prose figure img { width: 100%; border-radius: var(--r-lg); }
.prose figcaption { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--muted-2); }
.prose .callout { padding: 24px; border-radius: var(--r-lg); background: var(--accent-soft-2); margin: 0 0 28px; }
.prose .callout__label { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); }
.prose .callout p:last-child { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 16px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-weight: 600; }

/* ===== Страница сервиса ===== */
.tool-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 40px; align-items: start; }
.tool-page__intro { grid-column: 1; grid-row: 1; }
.tool-page__main { grid-column: 1; grid-row: 2; min-width: 0; }
.tool-page__side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.tool-page__head { display: flex; align-items: center; gap: 20px; }
.tool-page__head h1 { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -0.025em; }
.tool-page__tagline { margin: 24px 0 28px; font-size: 19px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery__item { display: flex; align-items: center; justify-content: center; height: 160px; border-radius: 14px; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted-2); }
.specs { display: flex; flex-direction: column; }
.specs__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-3); font-size: 15px; }
.specs__row:last-child { border-bottom: none; }
.specs__key { color: var(--muted-2); }
.specs__row a { color: var(--accent-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 9px; background: var(--tint-neutral); font-size: 13px; color: var(--muted); }
.proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proscons__box { padding: 22px; border-radius: var(--r-lg); }
.proscons__box--pro { background: #F1F7F3; }
.proscons__box--con { background: var(--tint-neutral); }
.proscons__label { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.proscons__box--pro .proscons__label { color: var(--ok-ink); }
.proscons__box--con .proscons__label { color: var(--muted); }
.proscons__list { display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.tariffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tariff { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tariff__name { font-size: 15px; font-weight: 600; }
.tariff__price { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.tariff__note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.features { display: flex; flex-direction: column; gap: 14px; }
.feature { display: flex; align-items: flex-start; gap: 12px; }
.feature::before { content: ''; width: 7px; height: 7px; margin-top: 12px; border-radius: 4px; background: var(--accent); flex-shrink: 0; }
.feature p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.h2 { margin: 44px 0 16px; font-size: 26px; font-weight: 600; }
.h2--tight { margin-top: 0; }

/* ===== SEO-блок и FAQ ===== */
.seotext { max-width: 780px; }
.seotext p { margin: 0 0 16px; font-size: 17px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 780px; }
.faq__item { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.faq__q { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.faq__a { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* ===== 404 ===== */
.nf { display: flex; flex-direction: column; align-items: center; padding-top: 100px; padding-bottom: 80px; }
.nf__code { font-family: var(--display); font-weight: 600; font-size: 104px; line-height: 1; letter-spacing: -0.04em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #1748C7; }
.nf h1 { margin: 28px 0 14px; font-size: 32px; font-weight: 600; letter-spacing: -0.025em; text-align: center; }
.nf p { margin: 0 0 28px; max-width: 480px; text-align: center; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tile__name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tile__sub { font-size: 14px; line-height: 1.5; color: var(--muted-2); }

/* ===== Футер ===== */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); background: var(--surface); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col b { font-weight: 500; margin-bottom: 4px; }
.footer__col a { color: var(--muted); }
.footer__about { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted-2); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }

/* ===== Мобильное меню ===== */
.mmenu { display: none; position: fixed; inset: 0; z-index: 50; background: var(--surface); overflow-y: auto; }
.mmenu.is-open { display: block; }
.mmenu__head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.mmenu__body { padding: 20px; }
.mmenu__link { display: flex; align-items: center; justify-content: space-between; height: 56px; border-bottom: 1px solid var(--line-3); font-size: 18px; font-weight: 500; }
.mmenu__label { margin: 26px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.mmenu__cat { display: flex; align-items: center; gap: 14px; height: 64px; }
.mmenu__cat span { font-size: 16px; font-weight: 500; }
.mmenu__cat small { display: block; font-size: 13px; font-weight: 400; color: var(--muted-2); }
.mmenu__extra { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-3); font-size: 15px; }
.mmenu__extra a { color: var(--muted); }

/* ===== Адаптив ===== */
@media (max-width: 1180px) {
  :root { --pad: 40px; }
}
@media (max-width: 1000px) {
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* на узком экране карточка с кнопкой и характеристиками идёт перед текстом */
  .tool-page { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .tool-page__intro, .tool-page__main, .tool-page__side { grid-column: 1; grid-row: auto; }
  .tool-page__intro { order: 1; }
  .tool-page__side { order: 2; position: static; width: 100%; }
  .tool-page__main { order: 3; }
  .tool-page__tagline { margin-bottom: 0; }
  .article__cover { height: 320px; }
}
@media (max-width: 720px) {
  :root { --pad: 10px; }
  .nav { display: none; }
  .burger { display: flex; }
  .header__inner { height: 64px; }
  .grid--3, .grid--4, .proscons, .tariffs, .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery__item { height: 104px; }
  .hero { padding-top: 32px; padding-bottom: 30px; }
  .hero__eyebrow { margin-bottom: 14px; font-size: 12px; }
  .hero h1 { max-width: none; font-size: 32px; line-height: 1.12; }
  .hero__sub { margin: 14px 0 22px; font-size: 16px; }
  .prompt { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .prompt__input { height: 44px; font-size: 16px; }
  .prompt .btn { width: 100%; height: 48px; }
  .modes { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
  .mode { padding: 14px 16px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
  .section__head h2 { font-size: 22px; }
  .search { flex-wrap: wrap; padding: 8px 16px; }
  .search input { height: 40px; }
  .search .btn { width: 100%; }
  .page-head h1 { font-size: 29px; }
  .page-head p { font-size: 16px; }
  .section { padding-top: 32px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { height: 44px; padding: 0 13px; }
  .filters { flex-wrap: wrap; gap: 10px; }
  .fchip, .sort { height: 40px; }
  .article__cover { height: 210px; border-radius: 0; margin: 0 calc(var(--pad) * -1); }
  .article__head { align-items: flex-start; margin-top: 22px; gap: 14px; }
  .article__head h1 { font-size: 27px; line-height: 1.2; text-align: left; }
  .article__meta { justify-content: flex-start; font-size: 13px; }
  .prose { margin-top: 24px; }
  .prose > p, .prose li { font-size: 17px; line-height: 1.7; }
  .prose > p.lead { font-size: 18px; }
  .prose h2 { margin: 32px 0 12px; font-size: 22px; }
  .prose blockquote p { font-size: 20px; }
  .tool-page__head h1 { font-size: 27px; }
  .tool-page__tagline { margin: 20px 0; font-size: 17px; }
  .h2, .empty h2 { font-size: 22px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pager { padding: 28px 0 0; }
  .pager .is-gap { display: none; }
  .empty { padding: 40px 20px; }
  .nf { padding-top: 60px; padding-bottom: 48px; }
  .nf__code { font-size: 72px; }
  .nf h1 { font-size: 26px; }
}

/* ===== SEO-текст категории: те же блоки, что и в статье ===== */
.seotext h2 { margin: 34px 0 14px; font-size: 25px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.seotext h3 { margin: 26px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.seotext a { color: var(--accent-ink); }
.seotext ul, .seotext ol { margin: 0 0 20px; padding-left: 0; list-style: none; }
.seotext ol { counter-reset: n; }
.seotext li { position: relative; margin-bottom: 12px; padding-left: 19px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.seotext ul > li::before { content: ''; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 4px; background: var(--accent); }
.seotext ol > li::before { counter-increment: n; content: counter(n) '.'; position: absolute; left: 0; top: 0; color: var(--accent-ink); font-weight: 600; }
.seotext blockquote { margin: 0 0 24px; padding: 0; }
.seotext blockquote p { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.seotext figure { margin: 0 0 24px; }
.seotext figure img { width: 100%; border-radius: var(--r-lg); }
.seotext figcaption { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--muted-2); }
.seotext img { max-width: 100%; height: auto; border-radius: var(--r-lg); }
.seotext .callout { padding: 22px 24px; border-radius: var(--r-lg); background: var(--accent-soft-2); margin: 0 0 24px; }
.seotext .callout__label { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); }
.seotext .callout p:last-child { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }

/* ===== Шапка раздела: одинаковая в каталоге и в статьях ===== */
.head { padding-bottom: 28px; }
.head h1 { max-width: 18ch; font-family: var(--display); font-weight: 600; font-size: 42px; line-height: 1.08; letter-spacing: -0.03em; }
.head__intro { margin: 16px 0 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.head__controls { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }

/* Категории — навигация: вкладки со счётчиком */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); font-size: 15px; font-weight: 500; color: var(--ink-2); transition: border-color .15s, background .15s; }
.tab:hover { color: var(--ink); border-color: var(--faint); background: var(--surface); }
.tab.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.tab__n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; background: var(--tint-neutral); font-size: 12px; font-weight: 500; color: var(--muted); }
.tab.is-active .tab__n { background: rgba(255,255,255,.18); color: #fff; }
.tab--muted { color: var(--muted); }
.tab--muted .tab__n { color: var(--muted-2); }

/* Доступ и сортировка — вторичный уровень, тише вкладок */
.subfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-2); }
.subfilters__label { margin-right: 2px; }
.subchip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--tint-neutral); color: var(--muted); font-size: 14px; }
.subchip:hover { color: var(--ink); }
.subchip.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.subfilters__spacer { flex-grow: 1; }
.result { display: flex; align-items: baseline; gap: 10px; margin: 0 0 20px; font-size: 15px; color: var(--muted-2); }
.result b { font-weight: 500; color: var(--ink); }

/* ===== Ведущая статья в ленте ===== */
.headliner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; margin-bottom: 20px; }
.headliner:hover { color: inherit; border-color: var(--line-2); }
.headliner__cover { display: flex; align-items: center; justify-content: center; min-height: 320px; }
.headliner__cover img { width: 100%; height: 100%; object-fit: cover; }
.headliner__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px 44px; }
.headliner__labels { display: flex; align-items: center; gap: 10px; }
.headliner h2 { font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; text-wrap: pretty; }
.headliner__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.headliner__meta { font-size: 14px; color: var(--muted-2); }

/* ===== Статья: шапка подстраивается под наличие обложки ===== */
.article-hero { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 64px 40px; border-radius: var(--r-xl); text-align: center; }
.article-hero h1 { max-width: 20ch; font-family: var(--display); font-weight: 600; font-size: 42px; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.article-hero .pill { align-self: center; background: rgba(255,255,255,.72); }
.article-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }

/* Сервисы, о которых статья, — карточка, а не список в конце */
.mentions { margin: 8px 0 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2, #FBFBF9); }
.mentions__label { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.mentions__list { display: flex; flex-direction: column; gap: 10px; }
.mention { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mention:hover { color: inherit; border-color: var(--accent-line); }
.mention__name { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.mention__note { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--muted); }

@media (max-width: 1000px) {
  .headliner { grid-template-columns: minmax(0, 1fr); }
  .headliner__cover { min-height: 220px; }
  .headliner__body { padding: 26px 24px; }
  .headliner h2 { font-size: 24px; }
}
@media (max-width: 720px) {
  .head h1 { max-width: none; font-size: 30px; }
  .head__intro { font-size: 16px; }
  .head__controls { gap: 12px; margin-top: 22px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; height: 44px; }
  .subchip { height: 36px; }
  .article-hero { padding: 34px 20px; gap: 14px; border-radius: var(--r-lg); }
  .article-hero h1 { max-width: none; font-size: 28px; }
  .mentions { padding: 18px; }
}
.prompt--sm { max-width: 560px; margin-top: 24px; padding: 6px 6px 6px 16px; border-radius: 14px; }
.prompt--sm .prompt__mark { font-size: 17px; }
.prompt--sm .prompt__input { height: 44px; font-size: 16px; }
.prompt--sm .btn { height: 44px; padding: 0 20px; font-size: 15px; }

/* ===== Страница сервиса ===== */
.tool-page__id { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tool-page__head h1 { font-size: 40px; letter-spacing: -0.03em; }
.tool-page__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.tool-page__facts a { color: var(--accent-ink); }
.tool-page__facts .dot { color: var(--faint); }
.tool-page__facts .rating b { font-weight: 600; color: var(--ink); }
.tool-page__facts .pill { align-self: center; height: 28px; padding: 0 11px; font-size: 13px; }

/* Примеры генерации: первый крупнее — он и задаёт впечатление */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shots__item { display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; }
.shots__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.shots__item:hover img { transform: scale(1.035); }

/* «Что умеет» — двумя колонками, иначе двенадцать пунктов читаются как стена */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.checks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B57D6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center no-repeat; }

/* Тарифы строками: цен бывает и две, и десять */
.prices { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.price { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.price:last-child { border-bottom: none; }
.price__name { font-size: 16px; font-weight: 500; }
.price__name small { display: block; margin-top: 3px; font-size: 14px; font-weight: 400; color: var(--muted); }
.price__value { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }

.prose--wide { max-width: none; margin: 0; }
.prose--wide > p, .prose--wide li { font-size: 17px; }

/* Оглавление обзора — в боковой колонке, вместе с прокруткой */
.toc { display: flex; flex-direction: column; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.toc__label { margin: 0 0 3px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.toc a { font-size: 14px; line-height: 1.4; color: var(--muted); }
.toc a:hover { color: var(--accent-ink); }

@media (max-width: 720px) {
  .tool-page__head h1 { font-size: 27px; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .price { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; }
  .toc { display: none; }
}

/* ===== Просмотр примеров генерации ===== */
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: none; background: transparent; overflow: hidden; }
.lightbox::backdrop { background: rgba(16, 16, 20, .82); backdrop-filter: blur(6px); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 24px; }
.lightbox__img { max-width: min(88vw, 62vh); max-height: 88dvh; object-fit: contain; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.45); background: #14141A; }
.lightbox__nav { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; flex-shrink: 0; transition: background .15s; }
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .15s; }
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__count { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; letter-spacing: .01em; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox__img { animation: shot-in .22s ease-out; }
  @keyframes shot-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
}
.shots__item { cursor: zoom-in; }

@media (max-width: 720px) {
  .lightbox { gap: 0; }
  .lightbox__img { max-width: 94vw; max-height: 78dvh; }
  .lightbox__nav { position: absolute; bottom: 18px; width: 48px; height: 48px; }
  .lightbox__nav--prev { left: 22px; }
  .lightbox__nav--next { right: 22px; }
  .lightbox__close { top: 14px; right: 14px; }
  .lightbox__count { bottom: 32px; }
}
