/* tools.cetto.ru — стили главной. Палитра и шрифт взяты с cetto.ru */
:root {
  --ink: #212121;          /* основной текст cetto.ru */
  --night: #131720;        /* тёмные блоки, шапка, футер */
  --night-2: #1C2130;      /* карточки на тёмном */
  --night-3: #262B38;      /* бейджи, разделители на тёмном */
  --night-line: #353B4B;   /* обводки на тёмном */
  --accent: #FCE300;       /* фирменный жёлтый cetto.ru */
  --accent-line: #C9B400;
  --link: #05679F;
  --link-hover: #033F63;
  --bg: #F6F6F6;           /* фон страницы cetto.ru */
  --surface: #FFFFFF;
  --chip: #F1F1F1;
  --line: #E4E4E4;
  --muted: #5C5C5C;
  --muted-2: #6B6B6B;
  --on-dark: #C9CCD3;
  --on-dark-2: #9EA3AE;
  --radius: 16px;
  --radius-lg: 28px;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Rubik, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px; border-radius: 10px; border: 0;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--accent { background: var(--accent); color: var(--night); }
.btn--tg svg { flex: 0 0 auto; }
.btn--accent:hover { background: #FFEB3B; color: var(--night); }
.btn--dark { background: var(--night); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid var(--night-line); font-weight: 500; }
.btn--ghost:hover { border-color: #fff; color: #fff; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--night-line);
  background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Логотип ---------- */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--night);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .04em; }
.logo__sub { color: var(--accent); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Шапка ---------- */
.header { background: var(--night); border-bottom: 1px solid var(--night-3); position: sticky; top: 0; z-index: 10; }
.header__row { display: flex; align-items: center; gap: 32px; padding-block: 14px; }
.nav { display: flex; gap: 28px; flex: 1 1 auto; font-size: 15px; font-weight: 500; }
.nav a { color: #E9E9E9; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__cta .cta-short { display: none; }

/* ---------- Меню «Все инструменты»: разделы → инструменты ---------- */
.nav-item { display: flex; align-items: center; gap: 2px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: #E9E9E9; cursor: pointer; }
.nav-toggle svg { transition: transform .2s; }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); }
.nav-item.is-open > .nav-link, .nav-item.is-open > .nav-toggle { color: var(--accent); }
.nav-item.is-open .nav-toggle svg { transform: rotate(180deg); }

.dd {
  position: absolute; left: 50%; top: 100%; z-index: 20;
  width: min(1040px, calc(100vw - 32px)); transform: translate(-50%, -6px);
  display: grid; grid-template-columns: 280px minmax(0, 1fr);
  background: #fff; color: var(--ink); border-radius: 0 0 16px 16px; box-shadow: 0 24px 48px rgba(19, 23, 32, .22);
  max-height: calc(100vh - 80px); overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s, visibility 0s .16s;
  font-weight: 400;
}
.nav-item.is-open .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .16s, transform .16s; }
.dd__head { display: none; }
.dd__caption { margin: 0 0 6px; padding: 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }

/* Уровень 2: разделы */
.dd__sections { background: var(--bg); padding: 18px 10px; overflow: auto; border-right: 1px solid var(--line); }
.dd__sections ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav .dd__section { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 500; }
.dd__section span { flex: 1 1 auto; min-width: 0; }
.dd__section small { color: var(--muted-2); font-size: 12px; white-space: nowrap; }
.dd__section svg { flex: 0 0 auto; color: var(--muted-2); opacity: 0; transition: opacity .12s; }
.nav .dd__section:hover, .nav .dd__section.is-active { background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--line); }
.dd__section.is-active svg { opacity: 1; }
.dd__section.is-active small { color: var(--ink); }
.nav .dd__section:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.dd__total { margin: 12px 12px 0; font-size: 13px; color: var(--muted); }
.nav .dd__total a { color: var(--link); font-weight: 500; }

/* Уровень 3: инструменты раздела */
.dd__pane { display: none; padding: 22px 26px; overflow: auto; }
.dd__pane.is-active { display: flex; flex-direction: column; gap: 14px; }
.nav .dd__pane-title { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--ink); font-size: 19px; font-weight: 700; }
.nav .dd__pane-title:hover { color: var(--link); text-decoration: none; }
.dd__tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.nav .dd__tools a { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 400; }
.dd__tools b { font-size: 15px; font-weight: 600; }
.dd__tools span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.nav .dd__tools a:hover, .nav .dd__tools a:focus-visible { background: var(--chip); text-decoration: none; color: var(--ink); outline: none; }
.dd__empty { margin: 0; color: var(--muted); font-size: 15px; max-width: 480px; }
.dd__soon { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.nav .dd__soon a { color: var(--link); font-weight: 500; }
.burger { display: none; }

/* ---------- Поиск в шапке ---------- */
.header__search { cursor: pointer; }
.header__search[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.hsearch { position: absolute; left: 0; right: 0; top: 100%; z-index: 25; background: #fff; color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 24px 48px rgba(19, 23, 32, .22); max-height: calc(100vh - 80px); overflow: auto; }
.hsearch[hidden] { display: none; }
.hsearch .container { max-width: 760px; padding-block: 16px 20px; }
.hsearch__box { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 12px; padding: 4px 6px 4px 14px; color: var(--muted-2); }
.hsearch__box input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; font: inherit; font-size: 17px; padding: 10px 0; color: var(--ink); background: transparent; }
.hsearch__close { flex: 0 0 auto; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--chip); border: 0; border-radius: 6px; padding: 6px 8px; cursor: pointer; }
.hsearch__x { display: none; font-size: 16px; }
@media (hover: none) { .hsearch__esc { display: none; } .hsearch__x { display: inline; } }
.hsearch__results { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hsearch__results:empty { display: none; }
.hsearch__results a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 10px; color: var(--ink); }
.hsearch__results a:hover, .hsearch__results a.is-active { background: var(--chip); text-decoration: none; color: var(--ink); }
.hsearch__results b { font-weight: 600; font-size: 15px; }
.hsearch__results span { font-size: 13px; color: var(--muted); }
.hsearch__results mark, .search__results mark { background: var(--accent); color: inherit; border-radius: 2px; }
.hsearch__empty { padding: 12px 14px; font-size: 15px; color: var(--muted); }
.hsearch__hints { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.hsearch__hints[hidden] { display: none; }
.hsearch__hints button { font: inherit; font-size: 14px; color: var(--ink); background: var(--chip); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.hsearch__hints button:hover { background: var(--ink); color: #fff; }
.search__results a b { font-weight: 600; }
.search__results a span { display: block; font-size: 13px; color: var(--muted); }
.search__results .hsearch__empty { color: var(--muted); }

/* ---------- Первый экран ---------- */
.hero { background: var(--night); color: #fff; padding: 64px 0 72px; }
.hero__grid { display: flex; gap: 56px; flex-wrap: wrap; align-items: center; }
.hero__main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { background: var(--night-3); color: #E9E9E9; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.badge--accent { color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 19px; line-height: 1.55; color: var(--on-dark); max-width: 600px; }

.search { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.search label { font-size: 14px; color: var(--on-dark); }
.search__box { display: flex; gap: 8px; background: #fff; border-radius: 14px; padding: 6px; }
.search__box input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: none; font: inherit; font-size: 17px;
  padding: 12px 14px; color: var(--ink); background: transparent;
}
.search__box input::placeholder { color: #6B6F78; }
.search__box .btn { min-height: 48px; padding-inline: 26px; font-size: 16px; }
.search__results { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 12px; overflow: hidden; }
.search__results:empty { display: none; }
.search__results a { display: block; padding: 12px 16px; color: var(--ink); border-top: 1px solid var(--line); }
.search__results li:first-child a { border-top: 0; }
.search__results a:hover { background: var(--chip); text-decoration: none; }

.quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.quick span { color: var(--on-dark-2); }
.quick a { color: #fff; border: 1px solid var(--night-line); padding: 6px 12px; border-radius: 999px; }
.quick a:hover { border-color: var(--accent); text-decoration: none; }

.preview {
  flex: 1 1 420px; min-width: 0; max-width: 520px; background: var(--night-2); border: 1px solid #2C3242;
  border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.preview__head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
.tag-new { background: var(--accent); color: var(--night); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.preview__input { background: var(--night); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.7; color: var(--on-dark); }
.preview__groups { display: flex; flex-direction: column; gap: 8px; }
.preview__group { display: flex; justify-content: space-between; background: var(--night-3); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.preview__group b { color: var(--accent); }
.preview__group span:last-child, .preview__foot { color: var(--on-dark-2); }
.preview__foot { display: flex; justify-content: space-between; font-size: 13px; }

/* ---------- Категории-чипы ---------- */
.chips-bar { background: #fff; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding-block: 18px; }
.chip { background: var(--chip); color: var(--ink); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; }
.chip span { color: var(--muted-2); }
.chip:hover, .chip--active { background: var(--ink); color: #fff; text-decoration: none; }
.chip:hover span, .chip--active span { color: var(--accent); }

/* ---------- Секции ---------- */
.section { padding: 72px 0; }
.section--tight-top { padding-top: 24px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__title { font-size: clamp(28px, 3vw, 36px); font-weight: 700; letter-spacing: -.01em; }
.section__sub { margin-top: 8px; color: var(--muted); font-size: 17px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Карточки инструментов ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 12px; color: var(--ink); min-height: 196px;
  transition: border-color .15s;
}
.tool-card:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }
.tool-card__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--night);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.tool-card__name { font-weight: 600; font-size: 18px; line-height: 1.3; }
.tool-card__desc { color: var(--muted); font-size: 15px; line-height: 1.45; flex: 1 1 auto; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 6px; }
.tag--browser { background: var(--chip); color: var(--ink); }
.tag--server { background: #fff; color: var(--muted); border: 1px solid #D6D6D6; padding: 3px 8px; }
.tag--new { background: var(--accent); color: var(--night); font-weight: 700; }

/* Инструменты, которых ещё нет: неактивные карточки и строки с пометкой «скоро» */
.tool-card--soon { background: transparent; border-style: dashed; color: var(--muted); }
.tool-card--soon .tool-card__name { color: var(--ink); }
.tool-card--soon .tool-card__icon { background: var(--chip); color: var(--muted-2); }
.tag--soon { background: var(--chip); color: var(--muted); font-weight: 600; }
.cat-soon { display: flex; align-items: baseline; gap: 8px; color: var(--muted-2); }
.cat-soon i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); background: var(--chip); border-radius: 4px; padding: 2px 6px; }
.geo-item--soon { opacity: .55; }
.geo-item--soon b { font-weight: 600; }

/* ---------- Промо-блоки (редкие, GEO, аудит) ---------- */
.promo { border-radius: var(--radius-lg); padding: 48px; display: flex; gap: 40px; flex-wrap: wrap; }
.promo__text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.promo__text h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.promo__text p { font-size: 17px; line-height: 1.55; }
.promo--dark { background: var(--night); color: #fff; }
.promo--dark .eyebrow { color: var(--accent); }
.promo--dark .promo__text p { color: var(--on-dark); }


.geo-list { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.geo-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--night-2); border: 1px solid #2C3242; border-radius: 14px; padding: 16px 20px; color: #fff;
}
.geo-item:hover { border-color: var(--accent); text-decoration: none; color: #fff; }
.geo-item b { display: block; font-weight: 600; font-size: 16px; }
.geo-item--soon::after { content: "скоро"; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark-2); background: var(--night-3); border-radius: 4px; padding: 3px 7px; }
.geo-item small { color: var(--on-dark-2); font-size: 14px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Каталог ---------- */
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #D6D6D6; flex: 0 0 auto; }
.dot--browser { background: var(--ink); }
.dot--new { background: var(--accent); border: 1px solid var(--accent-line); }
.legend .dot { width: 10px; height: 10px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.cat-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cat-card h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.cat-card__count { color: var(--muted-2); font-size: 14px; white-space: nowrap; }
.cat-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; flex: 1 1 auto; }
.cat-card li { display: flex; align-items: center; gap: 10px; }
.cat-card li a { color: var(--ink); }
.cat-card li a:hover { color: var(--link); }
.cat-card__all { font-weight: 500; font-size: 15px; }
.suggest-card {
  border: 2px dashed #C4C4C4; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column;
  gap: 10px; justify-content: center; color: var(--ink); min-height: 220px;
}
.suggest-card:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }
.suggest-card__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.suggest-card b { font-weight: 600; font-size: 19px; }
.suggest-card span { color: var(--muted); font-size: 15px; }

/* ---------- Карточки статей блога (главная и блог) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); }
.post-card:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }
.post-card__cat { align-self: flex-start; background: var(--accent); color: var(--night); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.post-card__title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.post-card__desc { color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1 1 auto; }
.post-card__meta { color: var(--muted-2); font-size: 13px; }

/* Лента статей на главной: горизонтальная прокрутка со «щелчком» по карточкам */
.posts-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 2px 2px 12px; scrollbar-width: thin; }
.posts-rail > * { scroll-snap-align: start; }
.posts-rail:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.rail-nav { display: flex; align-items: center; gap: 8px; }
.rail-nav a { margin-left: 8px; font-weight: 500; }
.rail-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #CFCFCF; background: #fff; color: var(--ink); cursor: pointer; }
.rail-btn:hover:not(:disabled) { border-color: var(--ink); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-btn[hidden] { display: none; }
@media (max-width: 960px) { .posts-rail { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 640px) { .posts-rail { grid-auto-columns: 85%; } .rail-btn { display: none; } }

/* ---------- Как работает / для кого ---------- */
.band { background: #fff; border-block: 1px solid var(--line); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.step { background: var(--bg); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step__num { font-size: 44px; font-weight: 800; line-height: 1; }
.step b, .audience b { font-weight: 600; font-size: 19px; }
.step span, .audience span { color: var(--muted); font-size: 15px; }
.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.audience { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.audience b { font-size: 18px; }
.band__gap { height: 64px; }

/* ---------- Автор / лидогенерация ---------- */
.author { background: var(--night); color: #fff; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-wrap: wrap; }
.author__photo {
  flex: 1 1 360px; min-height: 380px; background: var(--night-3); color: var(--on-dark-2);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.author__photo img { width: 100%; height: 100%; object-fit: cover; }
.author__name { font-weight: 600; color: #fff !important; font-size: 17px; }
.author__body { flex: 2 1 520px; min-width: 0; padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.author__body .eyebrow { color: var(--accent); }
.author__body h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; font-weight: 800; }
.author__body p { color: var(--on-dark); font-size: 17px; line-height: 1.55; max-width: 620px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact { background: var(--night-2); border-radius: 14px; padding: 16px; }
.fact b { display: block; font-size: 26px; font-weight: 800; color: var(--accent); }
.fact span { color: var(--on-dark); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { display: flex; gap: 48px; flex-wrap: wrap; }
.faq__side { flex: 1 1 300px; min-width: 0; }
.faq__side p { margin-top: 12px; color: var(--muted); }
.faq__list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- SEO-текст ---------- */
.seo-text { border-top: 1px solid var(--line); padding-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.seo-text h2 { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }

/* ---------- Футер ---------- */
.footer { background: var(--night); color: var(--on-dark); padding: 56px 0 32px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__col b { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.footer a { color: #E9E9E9; }
.footer a:hover { color: var(--accent); text-decoration: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--night-3); margin-top: 40px; padding-top: 22px; font-size: 13px; color: var(--on-dark-2); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--night); padding: 12px 24px 20px; border-bottom: 1px solid var(--night-3);
  }
  .nav.is-open a { padding: 10px 0; }
  /* Телефон: «Все инструменты» → разделы → инструменты, по одному уровню на экран, с кнопкой «Назад» */
  .nav.is-open { max-height: calc(100vh - 72px); overflow: auto; }
  .nav.is-open.is-deep > :not([data-menu]) { display: none; }
  .nav.is-deep [data-menu] > .nav-link, .nav.is-deep [data-menu] > .nav-toggle { display: none; }
  .nav-item { justify-content: space-between; flex-wrap: wrap; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle svg { transform: rotate(-90deg); }
  .nav-item.is-open .nav-toggle svg { transform: rotate(-90deg); }
  .dd { position: static; display: none; width: 100%; flex-basis: 100%; transform: none; grid-template-columns: 1fr;
    background: transparent; color: #E9E9E9; box-shadow: none; border-radius: 0; max-height: none; opacity: 1; visibility: visible; transition: none; }
  .nav-item.is-open .dd { display: block; transform: none; animation: dd-in .2s ease-out; }
  .dd[data-view="pane"] .dd__sections { display: none; }
  .dd[data-view="sections"] .dd__pane { display: none; }
  .dd__head { display: block; padding: 4px 0 8px; border-bottom: 1px solid var(--night-3); margin-bottom: 8px; }
  .dd__back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px 0 4px; border: 0; border-radius: 8px; background: none; color: var(--accent); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
  .dd__caption { padding: 0; color: var(--on-dark-2); }
  .dd__sections { background: transparent; border: 0; padding: 0; overflow: visible; }
  .nav.is-open .dd__section { padding: 12px 4px; color: #E9E9E9; border-radius: 0; border-bottom: 1px solid var(--night-3); box-shadow: none; }
  .nav .dd__section:hover, .nav .dd__section.is-active { background: transparent; box-shadow: none; color: #fff; }
  .dd__section svg { opacity: 1; }
  .dd__section small, .dd__section.is-active small { color: var(--on-dark-2); }
  .dd__total { margin: 14px 4px 4px; color: var(--on-dark-2); }
  .nav .dd__total a, .nav .dd__soon a { color: var(--accent); }
  .dd__pane { padding: 0; overflow: visible; }
  .dd__pane.is-active { gap: 10px; animation: dd-in .2s ease-out; }
  .nav.is-open .dd__pane-title { padding: 4px 0; color: #fff; font-size: 20px; }
  .dd__tools { grid-template-columns: 1fr; gap: 0; }
  .nav.is-open .dd__tools a { padding: 11px 4px; border-radius: 0; border-bottom: 1px solid var(--night-3); color: #fff; }
  .dd__tools span, .dd__empty, .dd__soon { color: var(--on-dark-2); }
  .nav .dd__tools a:hover { background: transparent; color: var(--accent); }
  .dd__soon { border-top: 0; padding-top: 4px; }
  .burger { display: inline-flex; }
  .header__row { gap: 12px; justify-content: space-between; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .hero { padding: 32px 0 40px; }
  .hero__lead { font-size: 16px; }
  .search__box { flex-direction: column; background: transparent; padding: 0; }
  .search__box input { background: #fff; border-radius: 12px; min-height: 48px; }
  .preview { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; }
  .chip { white-space: nowrap; }
  .section { padding: 44px 0; }
  .promo, .author__body { padding: 24px; border-radius: 20px; }
  .promo { border-radius: 20px; }
  .author { border-radius: 20px; }
  .author__photo { min-height: 220px; }
  .cat-grid { grid-template-columns: 1fr; }
  /* Узкий экран: короче кнопка и плотнее шапка, чтобы влезли лупа и бургер */
  .header__row { gap: 8px; }
  .header__actions { gap: 8px; }
  .header__cta { min-height: 40px; padding: 8px 14px; font-size: 14px; }
  .header__cta .cta-long { display: none; }
  .header__cta .cta-short { display: inline; }
  .header .icon-btn { width: 40px; height: 40px; }
}
@keyframes dd-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 360px) {
  .header .logo__text { display: none; }
}
