/* ===== Layrix: приведение в порядок (флаг home, решение владельца 22.11) =====
   Стиль прежний (светлый, индиго-акцент), но: нормальный шрифт, иерархия,
   витрина вместо синих ссылок, мобильное меню, аккуратные анимации.
   Подключается последним на всех светлых страницах (_refresh_head.html). */

/* ---------- Типографика ---------- */
body.light, body.light-app {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.light :is(h1, h2, h3, .topbar-logo, .fact-big),
body.light-app :is(h1, h2, h3, .topbar-logo, .facts .value, .chords-row, .auth-card h2, .fact-big) {
  font-family: "Onest", system-ui, sans-serif;
  letter-spacing: -0.03em;
}
body.light h1, body.light-app h1 { font-weight: 800; }
/* Страница трека: все места, где тёмная тема ставила широкий Unbounded */
body.light-app :is(.hero-title, .track-title, .track-hero .stat b, #karaoke-line, #karaoke-chord-now,
  .pulse-num, .scene-fact b, .cta-full b, .genre-strip-text b, #latest .latest-rank, .shell-logo) {
  font-family: "Onest", system-ui, sans-serif; letter-spacing: -0.03em;
}
body.light-app .track-hero .stat b { font-weight: 800; font-variant-numeric: tabular-nums; }
/* Шапка трека: крупное название и обложка — это заголовок страницы, а не подпись */
body.light-app .track-title { font-size: clamp(22px, 3.2vw, 32px); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.03em; }
body.light-app .cover:not(.cover-sm) { width: 104px; height: 104px; border-radius: 18px; border: 0;
  box-shadow: 0 10px 30px rgba(28, 39, 48, .14); }
body.light-app div.cover { color: var(--primary);
  background: linear-gradient(140deg, var(--surface-2), color-mix(in srgb, var(--primary) 16%, var(--surface))); }
@media (max-width: 480px) {
  body.light-app .cover:not(.cover-sm) { width: 72px; height: 72px; border-radius: 14px; }
  body.light-app .track-title { font-size: 21px; }
}
body.light .topbar-logo, body.light-app .topbar-logo {
  font-weight: 800; font-size: 21px; letter-spacing: -0.04em;
}
body.light :is(.fact-big, .fact-cell .v, .hero-stats dd, .fact-chip, .badge-estimate),
body.light-app :is(.facts .value, .tag, .fact-chip) { font-variant-numeric: tabular-nums; }

/* ---------- Шапка: мобильное полноэкранное меню ---------- */
.topbar-menu { display: none; }
@media (max-width: 720px) {
  .topbar { flex-wrap: nowrap; padding: 12px 16px; gap: 12px; }
  .topbar .topbar-nav { display: none; }
  /* Вход/аккаунт на телефоне живёт В МЕНЮ (решение владельца 23.11):
     в шапке остаются только логотип и одна кнопка меню */
  .topbar > .topbar-login { display: none; }
  .topbar-menu { display: block; order: 3; margin-left: auto; }
  .topbar-menu > summary { list-style: none; cursor: pointer; width: 40px; height: 40px;
    border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center;
    background: var(--surface); -webkit-tap-highlight-color: transparent; }
  .topbar-menu > summary::-webkit-details-marker { display: none; }
  .burger { position: relative; width: 18px; height: 12px; display: block; }
  .burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
    background: var(--ink); transition: transform .25s ease, top .25s ease; }
  .burger i:first-child { top: 1px; } .burger i:last-child { top: 9px; }
  .topbar-menu[open] .burger i:first-child { top: 5px; transform: rotate(45deg); }
  .topbar-menu[open] .burger i:last-child { top: 5px; transform: rotate(-45deg); }
  .menu-sheet { position: fixed; left: 0; right: 0; top: 65px; bottom: 0; z-index: 30;
    background: var(--bg); padding: 18px 16px 40px; overflow-y: auto;
    border-top: 1px solid var(--line); animation: sheet-in .28s cubic-bezier(.2, .8, .3, 1); }
  body:has(.topbar-menu[open]) { overflow: hidden; }
  .menu-title { margin: 6px 4px 10px; font-size: 12px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .08em; }
  /* Аккаунт — первая строка меню (вход переехал из шапки, решение 23.11) */
  .menu-account { display: flex; align-items: center; gap: 12px; margin: 2px 0 20px;
    padding: 13px 14px; border-radius: 14px; background: var(--surface);
    border: 1px solid var(--line); color: var(--ink); text-decoration: none;
    font-size: 16px; font-weight: 600; }
  .menu-account svg { flex: 0 0 auto; color: var(--accent); }
  .menu-account span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Инструменты — компактные плитки 3 в ряд: всё меню видно без прокрутки */
  .menu-tools { list-style: none; margin: 0 0 22px; padding: 0; display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .menu-tools a { display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 13px 6px 11px; border-radius: 14px; background: var(--surface);
    border: 1px solid var(--line); color: var(--ink); text-decoration: none;
    font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.25;
    opacity: 0; animation: item-in .35s cubic-bezier(.2, .8, .3, 1) forwards; }
  .menu-tools li:nth-child(2) a { animation-delay: .03s; } .menu-tools li:nth-child(3) a { animation-delay: .06s; }
  .menu-tools li:nth-child(4) a { animation-delay: .09s; } .menu-tools li:nth-child(5) a { animation-delay: .12s; }
  .menu-tools li:nth-child(6) a { animation-delay: .15s; } .menu-tools li:nth-child(7) a { animation-delay: .18s; }
  .menu-tools a[aria-current] { border-color: var(--accent); }
  .menu-tools a span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; }
  .menu-tools .t-ico { flex: 0 0 auto; width: 34px; height: 34px; padding: 7px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent); }
  /* Каталог — чистый список без «пилюль» (жалоба 23.11 на закруглённые кнопки) */
  .menu-catalog { display: flex; flex-direction: column; }
  .menu-catalog a { padding: 11px 4px; color: var(--ink); text-decoration: none;
    font-weight: 600; font-size: 15.5px; border-bottom: 1px solid var(--line); }
  .menu-catalog a:last-child { border-bottom: 0; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes item-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Главная: hero ---------- */
body.light main:has(.home-hero) { max-width: 1120px; padding-top: 44px; }
.home-hero { display: grid; gap: 28px; align-items: start; margin-bottom: 44px; }
.home-hero.has-popular { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.home-hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.04em;
  margin: 0 0 14px; max-width: 15ch; animation: rise-in .6s cubic-bezier(.2, .8, .3, 1) both; }
.home-hero .sub { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 0 0 26px;
  max-width: 46ch; animation: rise-in .6s .06s cubic-bezier(.2, .8, .3, 1) both; }
.home-hero .drop-card { padding: 30px 24px 26px; border-style: solid; box-shadow: none;
  border-radius: 20px; animation: rise-in .6s .12s cubic-bezier(.2, .8, .3, 1) both;
  transition: border-color .2s, background .2s, box-shadow .2s; }
.home-hero .drop-card:hover { box-shadow: var(--shadow); }
.btn-accent { display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s, filter .15s, box-shadow .15s; }
.btn-accent:hover { transform: translateY(-1px); }
.btn-accent:active { transform: translateY(0) scale(.98); }

/* Живая волна в зоне загрузки */
.drop-wave { display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 52px; margin: 0 auto 20px; max-width: 360px; }
.drop-wave i { flex: 1 1 0; max-width: 6px; height: 30%; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 35%, var(--surface)));
  opacity: .55; transform-origin: center;
  animation: wave 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * -0.11s); }
.drop-wave i:nth-child(3n) { height: 70%; } .drop-wave i:nth-child(4n) { height: 50%; }
.drop-wave i:nth-child(5n) { height: 90%; } .drop-wave i:nth-child(7n) { height: 40%; }
.drop-card.dragover .drop-wave i { opacity: 1; animation-duration: .7s; }
@keyframes wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }

/* Счётчики — прямо в hero */
/* Ровная сетка без разделителей: колонки одной ширины, цифра всегда над
   своей подписью, табличные цифры — ничего не «плывёт» при переносе строк
   (жалоба владельца 23.11: 5-й счётчик ломал бордюрную раскладку) */
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 16px 22px; margin: 22px 0 0; animation: rise-in .6s .18s cubic-bezier(.2, .8, .3, 1) both; }
.hero-stats > div { display: flex; flex-direction: column-reverse; min-width: 0; }
.hero-stats dd { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-stats dt { color: var(--muted); font-size: 12.5px; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Популярный трек */
.popular-card { display: grid; gap: 14px; padding: 16px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow); animation: rise-in .7s .2s cubic-bezier(.2, .8, .3, 1) both;
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.popular-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.popular-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.popular-label i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }
.popular-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; display: block;
  background: var(--accent-soft); }
.cover-ph { display: grid; place-items: center; color: var(--accent);
  background: radial-gradient(120% 120% at 20% 10%, #fff 0, var(--accent-soft) 55%, color-mix(in srgb, var(--accent) 22%, #fff) 100%); }
/* фирменная заглушка обложки «L.» — как лого, точка розовая (25.11) */
.lph { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: .02em; line-height: 1; user-select: none; }
.lph i { color: #E96A9B; font-style: normal; font-size: 1.35em; line-height: 0; }
.lph.lph-xl { font-size: 34px; }
.popular-meta { display: grid; gap: 2px; min-width: 0; }
.p-artist { color: var(--muted); font-size: 14px; font-weight: 500; }
.p-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  overflow-wrap: anywhere; }
.popular-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.popular-views { color: var(--muted); font-size: 12px; margin-left: auto; }
.fact-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  font-size: 12px; color: var(--muted); white-space: nowrap; }
.fact-chip b { color: var(--ink); font-weight: 700; font-size: 13px; }

/* ---------- Главная: инструменты ---------- */
.tools-grid-v2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.tools-grid-v2 .tool-card { position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 20px 20px 22px; border-radius: 18px; box-shadow: none;
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
.tools-grid-v2 .tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tool-card-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; transition: transform .25s; }
.tools-grid-v2 .tool-card:hover .tool-card-ico { transform: rotate(-6deg) scale(1.05); }
.tools-grid-v2 .tool-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.tools-grid-v2 .tool-card p { font-size: 14px; line-height: 1.45; }
.tool-card-arrow { position: absolute; right: 18px; top: 22px; color: var(--muted); opacity: 0;
  transform: translateX(-6px); transition: opacity .2s, transform .2s, color .2s; }
.tools-grid-v2 .tool-card:hover .tool-card-arrow { opacity: 1; transform: none; color: var(--accent); }
/* Главный инструмент — крупнее и в акценте: иерархия вместо 7 одинаковых плиток */
.tools-grid-v2 .tool-card:first-child { grid-column: span 2; background: var(--accent); border-color: var(--accent); color: #fff; }
.tools-grid-v2 .tool-card:first-child h3 { font-size: 22px; }
.tools-grid-v2 .tool-card:first-child p { color: rgba(255, 255, 255, .82); font-size: 15px; max-width: 34ch; }
.tools-grid-v2 .tool-card:first-child .tool-card-ico { background: rgba(255, 255, 255, .16); color: #fff; }
.tools-grid-v2 .tool-card:first-child .tool-card-arrow { opacity: 1; transform: none; color: #fff; }
.tools-grid-v2 .tool-card:first-child:hover { box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---------- Главная: «Разобрали последним» — как плейлист ---------- */
.latest-v2 { margin-top: 48px; }
.latest-v2 h2 { font-size: 24px; font-weight: 800; margin: 0 0 14px; }
.latest-v2 .latest-list { list-style: none; margin: 0; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; display: grid; gap: 2px; }
.latest-v2 .latest-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 18px;
  align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px;
  color: var(--ink); text-decoration: none; transition: background .15s; }
.latest-v2 .latest-row:hover { background: var(--bg); }
.latest-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px;
  color: var(--accent); text-decoration: none; font-weight: 700; font-size: 14px; }
.latest-more:hover { text-decoration: underline; }
.latest-cover { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: block; }
.latest-cover.cover-ph, .popular-cover.cover-ph { display: grid; place-items: center; }
.latest-meta { display: grid; min-width: 0; }
.l-artist { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-facts { display: flex; gap: 6px; }
.latest-arrow { color: var(--muted); transition: transform .15s, color .15s; }
.latest-v2 .latest-row:hover .latest-arrow { transform: translateX(3px); color: var(--accent); }

/* ---------- Страницы инструментов: FAQ без системного треугольника ---------- */
details.faq { transition: border-color .2s; }
details.faq[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
details.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) center / 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%236366f1' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .25s; }
details.faq[open] summary::after { transform: rotate(45deg); }
/* ---------- Страницы инструментов — в один вид с главной ---------- */
body.light main:has(.tool-hero) { max-width: 920px; padding-top: 44px; }
.tool-hero { text-align: left; margin-bottom: 26px; }
.tool-hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.03; letter-spacing: -0.04em;
  max-width: 18ch; animation: rise-in .6s cubic-bezier(.2, .8, .3, 1) both; }
.tool-hero .sub { font-size: 18px; max-width: 52ch; margin: 0;
  animation: rise-in .6s .06s cubic-bezier(.2, .8, .3, 1) both; }
main > .drop-card { padding: 30px 24px 26px; border-style: solid; box-shadow: none; border-radius: 20px;
  animation: rise-in .6s .12s cubic-bezier(.2, .8, .3, 1) both; transition: border-color .2s, background .2s, box-shadow .2s; }
main > .drop-card:hover { box-shadow: var(--shadow); }
.tool-seo { margin-top: 52px; color: var(--ink); font-size: 16px; line-height: 1.7; }
.tool-seo h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.tool-seo p { color: #44403c; max-width: 68ch; }
.tool-seo a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tool-faq { margin-top: 28px; }
details.faq { border-radius: 14px; padding: 14px 18px; }
details.faq summary { font-size: 16px; }
@media (max-width: 600px) {
  body.light main:has(.tool-hero) { padding-top: 24px; }
  .tool-hero .sub { font-size: 16px; }
}

/* ---------- Шаги загрузки и разбора (22.11) ---------- */
.drop-steps { list-style: none; margin: 0 auto 18px; padding: 0; max-width: 460px; text-align: left;
  display: grid; gap: 2px; }
.drop-steps .step { display: grid; grid-template-columns: 22px auto 1fr; align-items: center; gap: 12px;
  min-height: 38px; padding: 6px 10px; border-radius: 12px; color: var(--muted);
  animation: step-in .35s cubic-bezier(.2, .8, .3, 1) both; transition: background .25s, color .25s; }
.drop-steps .step:has(.step-cover) { grid-template-columns: 22px auto 28px 1fr; }
.drop-steps .step.is-running { background: var(--accent-soft); color: var(--ink); }
.drop-steps .step.is-ok, .drop-steps .step.is-failed { color: var(--ink); }
.step-label { font-weight: 600; font-size: 15px; white-space: nowrap; }
.step-value { justify-self: end; text-align: right; font-size: 14px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; max-width: 100%; animation: value-in .4s ease both; }
.step.is-pending .step-value, .step.is-running .step-value { color: var(--muted); font-weight: 500; }
.step-cover { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.step-mark { width: 20px; height: 20px; border-radius: 50%; position: relative;
  border: 2px solid color-mix(in srgb, var(--muted) 45%, transparent); transition: background .25s, border-color .25s; }
.step.is-running .step-mark { border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  border-top-color: var(--accent); animation: spin .8s linear infinite; }
.step.is-ok .step-mark { background: #16a34a; border-color: #16a34a; }
.step.is-ok .step-mark::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); animation: check-in .3s ease both; }
.step.is-failed .step-mark { background: var(--err, #dc2626); border-color: var(--err, #dc2626); }
.step.is-failed .step-mark::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font: 700 14px/1 system-ui; }
/* В очереди: янтарный пульс, номер справа */
.drop-steps .step.is-queued { background: color-mix(in srgb, #f59e0b 10%, transparent); color: var(--ink); }
.step.is-queued .step-mark { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 25%, transparent);
  animation: queue-pulse 1.6s ease-in-out infinite; }
.step.is-queued .step-value { color: #b45309; font-weight: 700; }
.step.is-running .step-value { color: var(--accent); font-weight: 700; }
@keyframes queue-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .45); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); } }
/* Страница трека: карточка живого анализа — те же шаги, что на главной */
#live:has(.live-steps) { padding: 16px 18px !important; }
#live:has(.live-steps) #live-wave { display: none !important; }
#live:has(.live-steps) #live-text { font-size: 15px !important; font-weight: 700; color: var(--fg); }
.live-steps { max-width: none; margin: 12px 0 0; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  column-gap: 10px; }
.live-steps:empty { display: none; }
.resume-note { max-width: 460px; margin: 0 auto 12px; font-size: 14px; color: var(--muted); text-align: left; }
.upload-other { display: block; margin: 14px auto 0; background: none; border: 0; padding: 6px 10px;
  color: var(--muted); font: 600 14px "Onest", system-ui, sans-serif; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; border-radius: 8px; }
.upload-other:hover { color: var(--accent); }
.drop-steps:not(:empty) ~ .bar { max-width: 460px; height: 4px; }
.drop-steps:not(:empty) ~ .drop-status:empty { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes value-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes check-in { from { opacity: 0; transform: rotate(45deg) scale(.4); } to { opacity: 1; transform: rotate(45deg); } }
@media (max-width: 600px) {
  .drop-steps .step { gap: 10px; padding: 6px 6px; }
  .step-label { font-size: 14px; }
  .step-value { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .drop-steps .step, .step-value, .step.is-ok .step-mark::after { animation: none; }
  .step.is-running .step-mark { animation-duration: 2.4s; }
}

/* ---------- Главная: «Что умеет Layrix» (SEO-текст, 22.11) ---------- */
.home-about { margin-top: 56px; }
.home-about h2 { font-size: 26px; font-weight: 800; margin: 0 0 18px; }
.home-about-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-about-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.home-about h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
.home-about p { margin: 0; color: #44403c; font-size: 15px; line-height: 1.6; }
/* Ссылки в текстах — без «синего» (жалоба владельца 23.11): цвет текста,
   подчёркивание светлой линией, на ховере линия темнеет */
.home-about a, .tool-seo a { color: inherit; text-decoration: underline;
  text-decoration-color: #d6d3d1; text-decoration-thickness: 1.5px;
  text-underline-offset: 3px; transition: text-decoration-color .15s; }
.home-about a:hover, .tool-seo a:hover { text-decoration-color: var(--ink); }
.home-about-note { margin-top: 14px !important; color: var(--muted) !important; font-size: 14px !important; }
@media (max-width: 720px) { .home-about-grid { grid-template-columns: 1fr; } }

/* ---------- Подвал: по ширине контента ---------- */
.site-footer { padding-inline: max(24px, calc((100% - 1072px) / 2)); }
.footer-col strong { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.site-footer a { transition: color .15s, transform .15s; }
.site-footer a:hover { transform: translateX(2px); }

@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .home-hero.has-popular { grid-template-columns: 1fr; }
  .popular-card { grid-template-columns: 88px minmax(0, 1fr); align-items: center; }
  .popular-card .popular-label { grid-column: 1 / -1; }
  .popular-card .popular-cover { grid-row: span 2; }
  .tools-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.light main:has(.home-hero) { padding-top: 24px; }
  .home-hero { margin-bottom: 32px; gap: 20px; }
  .home-hero .sub { font-size: 16px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .hero-stats dd { font-size: 24px; }
  .tools-grid-v2 .tool-card { padding: 16px; }
  .tools-grid-v2 .tool-card p { font-size: 13px; }
  .tools-grid-v2 .tool-card:first-child h3 { font-size: 19px; }
  .latest-v2 .latest-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 9px 8px; }
  .latest-cover { width: 44px; height: 44px; }
  .latest-arrow { display: none; }
  .latest-facts .fact-chip:not(:first-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* «уменьшить, а не выключить» (принцип спека 2026-07-29): волна остаётся,
     но медленная и спокойная — на iPhone с включённым «Уменьшением движения»
     зона загрузки выглядела мёртвой картинкой (жалоба владельца 23.11) */
  .drop-wave i { animation-duration: 5s; }
  .popular-label i { animation: none; }
  .home-hero h1, .home-hero .sub, .home-hero .drop-card, .hero-stats, .popular-card,
  .menu-sheet, .menu-tools a { animation: none; opacity: 1; }
}

/* Точечный розовый (палитра 23.11: ~5% площади — детали волны и метки) */
.drop-wave i:nth-child(5n) {
  background: linear-gradient(180deg, #E96A9B,
    color-mix(in srgb, #E96A9B 35%, var(--surface))); }
.popular-label i { background: #E96A9B; }

/* Заглушка обложки «L.» рисуется стилем, а не текстом: иначе поисковик
   видел «L .» в содержании страницы (аудит 26.11) */
.lph:empty::before,.ph:empty::before{content:"L"}
.lph:empty::after,.ph:empty::after{content:".";color:#E96A9B;font-style:normal;font-size:1.35em;line-height:0}
