/* ============================================================
   Applokal (applokal.app) — стили v4 «магазин приложений»
   Ориентир палитры: каталоги типа APKPure — белые карточки,
   фирменный зелёный на действиях, тёмный подвал, плитки-иконки.
   ============================================================ */

:root {
  --bg: #f2f4f6;
  --card: #ffffff;
  --ink: #1f2430;
  --muted: #63707e;
  --line: #e5e9ee;
  --green: #0bab5c;
  --green-dark: #078d4b;
  --green-soft: #e7f7ef;
  --accent: #ff8a00;          /* тёплый маркер: «в наполнении», гео-точки */
  --accent-soft: #fff1e0;
  --foot-bg: #232936;         /* тёмный подвал в духе магазинов приложений */
  --foot-ink: #cfd6df;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --body: "Golos Text", system-ui, sans-serif;
  --display: "Unbounded", var(--body);
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(31, 36, 48, .05), 0 4px 16px rgba(31, 36, 48, .06);
  --shadow-hover: 0 2px 6px rgba(31, 36, 48, .08), 0 10px 28px rgba(31, 36, 48, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(11, 171, 92, .2); }

/* ---------- Шапка ---------- */
header.site {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-bar { display: flex; align-items: center; gap: 20px; padding: 13px 0; flex-wrap: wrap; }
.brand {
  font-family: var(--display); font-weight: 500; font-size: 18px;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 9px; letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--green); display: inline-block;
  box-shadow: 0 0 0 4px var(--green-soft);
}
.brand small { font-family: var(--mono); font-size: 10px; color: var(--muted); font-weight: 400; align-self: flex-end; }
nav.main { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
nav.main a { font-size: 14px; color: var(--ink); text-decoration: none; }
nav.main a:hover { color: var(--green-dark); text-decoration: underline; }
nav.main a[aria-current="page"] { color: var(--green-dark); font-weight: 600; }
.langs { display: flex; gap: 6px; flex-wrap: wrap; }
.langs a {
  font-family: var(--mono); font-size: 11px; text-decoration: none;
  color: var(--muted); border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 7px; background: var(--card);
}
.langs a:hover { color: var(--green-dark); border-color: var(--green); }
.langs a[aria-current="true"] { color: #fff; background: var(--green); border-color: var(--green); font-weight: 600; }

/* ---------- Служебная строка ---------- */
.truthline { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 26px 0 0; }
.truthline b { color: var(--green-dark); font-weight: 600; }

/* ---------- Герой ---------- */
.hero { padding: 12px 0 6px; }
.hero h1 {
  font-family: var(--body); font-weight: 700;
  font-size: clamp(25px, 4.4vw, 40px); line-height: 1.16;
  letter-spacing: -0.015em; margin: 10px 0 12px; max-width: 24ch;
}
.hero p.sub { color: var(--muted); max-width: 60ch; margin: 0 0 6px; }

/* ---------- Поиск ---------- */
.search-row { margin: 8px 0 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
input.q {
  width: 100%; max-width: 440px;
  padding: 11px 18px; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s, box-shadow .15s;
}
input.q::placeholder { color: var(--muted); }
input.q:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.q-empty { font-size: 13.5px; color: var(--muted); }

/* ---------- Плитки «Популярные» (горизонтальная лента) ---------- */
.tiles {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 12px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.tile { flex: 0 0 86px; text-align: center; text-decoration: none; color: var(--ink); }
.tile-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 7px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 24px; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 3px 10px rgba(31, 36, 48, .18);
  transition: transform .15s, box-shadow .15s;
}
.tile:hover .tile-icon { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tile-name {
  display: block; font-size: 12px; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tile:hover .tile-name { color: var(--green-dark); }

/* ---------- Фильтр-маршрут ---------- */
.route {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px; margin: 24px 0 14px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.route::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green); }
.route-steps { display: flex; flex-direction: column; }
.stop { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.stop-rail { display: flex; flex-direction: column; align-items: center; }
.stop-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--line); background: var(--card);
  flex: none; margin-top: 5px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.stop.active .stop-dot { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.stop.done .stop-dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.stop-line { width: 2px; flex: 1; background: var(--line); min-height: 18px; transition: background .2s; }
.stop.done .stop-line { background: var(--green); opacity: .45; }
.stop:last-child .stop-line { display: none; }
.stop-body { padding-bottom: 18px; min-width: 0; }
.stop:last-child .stop-body { padding-bottom: 4px; }
.stop-label {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted); margin-bottom: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--body); font-size: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.chip:hover { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.chip[aria-pressed="true"] {
  background: var(--green); border-color: var(--green); color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px rgba(11, 171, 92, .35);
}
.chip.ghost { color: var(--muted); border-style: dashed; }
.route-note { font-size: 13px; color: var(--muted); margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.route-reset {
  background: none; border: none; color: var(--green-dark); cursor: pointer;
  font-family: var(--mono); font-size: 12px; padding: 0; text-decoration: underline;
}

/* ---------- Результаты и карточки ---------- */
.results-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 24px 0 14px; }
.results-head h2 { font-weight: 700; font-size: 20px; margin: 0; }
.results-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 14px; margin-bottom: 28px;
}
.app-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.app-card:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow-hover); }
.app-top { display: flex; gap: 12px; align-items: center; }
.app-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 20px; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 3px 8px rgba(31, 36, 48, .16);
}
.app-name { font-weight: 600; font-size: 15.5px; }
.app-name a { color: var(--ink); text-decoration: none; }
.app-name a:hover { color: var(--green-dark); text-decoration: underline; }
.app-cat { font-size: 12.5px; color: var(--muted); }
.app-cat a { color: var(--muted); }
.app-cat a:hover { color: var(--green-dark); }
.app-desc { font-size: 14px; color: var(--ink); margin: 0; }
.app-meta {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 10px;
}
.fresh { color: var(--green-dark); }
.geo-tag { color: var(--accent); }
.empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--muted); font-size: 14px;
  grid-column: 1 / -1; background: var(--card);
}

/* ---------- Хабы ---------- */
.hubs { border-top: 1px solid var(--line); padding: 26px 0 8px; }
.hubs h2 { font-weight: 700; font-size: 19px; margin: 0 0 14px; }
.hubs h3 {
  font-size: 13px; font-family: var(--mono); text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); font-weight: 500; margin: 0 0 10px;
}
.soon {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255, 138, 0, .3);
  border-radius: 6px; padding: 3px 8px; vertical-align: middle; margin-left: 8px; font-weight: 400;
}
.hub-sub { font-size: 14px; color: var(--muted); max-width: 68ch; margin: -4px 0 14px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.hub-list li:last-child { border-bottom: none; }
.hub-list .cnt { font-family: var(--mono); font-size: 11px; color: var(--muted); flex: none; }
.hub-list.cols3 { column-count: 3; column-gap: 28px; display: block; }
.hub-list.cols3 li { break-inside: avoid; display: block; }
@media (max-width: 860px) { .hub-list.cols3 { column-count: 2; } }
@media (max-width: 560px) { .hub-list.cols3 { column-count: 1; } }

.teasers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.teaser {
  display: flex; flex-direction: column; gap: 7px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.teaser:hover { border-color: var(--green); box-shadow: var(--shadow-hover); }
.teaser-type {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--green-dark); width: fit-content;
}
.teaser-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.teaser-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: auto; }

.foot-compact { column-count: 2; column-gap: 18px; }
.foot-compact li { break-inside: avoid; }

/* ---------- Принципы ---------- */
.principles { border-top: 1px solid var(--line); padding: 30px 0; }
.principles h2 { font-weight: 700; font-size: 19px; margin: 0 0 8px; }
.principles .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 18px; }
.principles h3 { font-size: 15px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.principles h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); flex: none;
}
.principles .cols p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Страница приложения ---------- */
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 20px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green-dark); }
.app-hero { display: flex; gap: 18px; align-items: center; padding: 18px 0 6px; flex-wrap: wrap; }
.app-hero .app-icon { width: 76px; height: 76px; border-radius: 20px; font-size: 30px; }
.app-hero h1 { font-weight: 700; font-size: clamp(24px, 4vw, 34px); margin: 0; letter-spacing: -0.01em; }
.verified {
  font-family: var(--mono); font-size: 12px; color: var(--green-dark);
  background: var(--green-soft); border: 1px solid rgba(11, 171, 92, .3);
  border-radius: 8px; padding: 4px 10px; display: inline-block; margin-top: 6px;
}
.store-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 0 6px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; text-decoration: none;
  border-radius: 10px; padding: 12px 20px; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 3px 12px rgba(11, 171, 92, .35);
  transition: background .15s, box-shadow .15s, transform .15s;
}
.store-btn:hover { color: #fff; background: var(--green-dark); box-shadow: 0 5px 18px rgba(11, 171, 92, .45); transform: translateY(-1px); }
.store-btn small { font-family: var(--mono); font-size: 10px; opacity: .85; font-weight: 400; }
.no-apk { font-size: 13px; color: var(--muted); max-width: 62ch; margin: 6px 0 0; }
.no-apk b { color: var(--green-dark); }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; padding: 22px 0 40px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.panel h2 { font-weight: 700; font-size: 16.5px; margin: 0 0 12px; }
.facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts td:first-child { color: var(--muted); width: 42%; }
.facts tr:last-child td { border-bottom: none; }
.ver { border-left: 2px solid var(--line); padding: 2px 0 14px 14px; margin-left: 4px; position: relative; }
.ver:last-of-type { padding-bottom: 2px; }
.ver::before {
  content: ""; position: absolute; left: -6px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px var(--green-soft);
}
.ver .v { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--green-dark); }
.ver .d { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 8px; }
.ver p { margin: 4px 0 0; font-size: 14px; color: var(--ink); }
.geo-list { display: flex; flex-wrap: wrap; gap: 6px; }
.geo-list span {
  font-size: 13px; background: var(--green-soft); color: var(--green-dark);
  border: 1px solid rgba(11, 171, 92, .25); border-radius: 999px; padding: 4px 11px;
}
.author { display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.author .ava {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft);
  border: 1px solid rgba(11, 171, 92, .3);
  display: grid; place-items: center; font-weight: 600; color: var(--green-dark); flex: none;
}
.author .role { color: var(--muted); font-size: 12.5px; }

/* ---------- Текстовые страницы ---------- */
.page { max-width: 760px; padding: 28px 0 50px; }
.page.wide { max-width: var(--maxw); }
.page h1 { font-weight: 700; font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.015em; margin: 8px 0 14px; line-height: 1.16; }
.page h2 { font-weight: 700; font-size: 18px; margin: 28px 0 10px; }
.page .lead { color: var(--muted); font-size: 17px; max-width: 60ch; }
.page p, .page li { font-size: 15.5px; }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 9px; }
.page li::marker { color: var(--green); }
.page-updated { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 32px; }
.center-404 { text-align: center; padding-top: 58px; padding-bottom: 70px; max-width: 640px; }
.err-code {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(64px, 14vw, 116px); margin: 0; line-height: 1; color: var(--green);
}

/* ---------- Подвал (тёмный, как у магазинов приложений) ---------- */
footer.site { background: var(--foot-bg); color: var(--foot-ink); padding: 30px 0 34px; margin-top: 16px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
footer.site h4 {
  font-size: 12.5px; margin: 0 0 10px; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: .08em; color: #8b95a3; font-weight: 500;
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 7px; font-size: 14px; }
footer.site a { color: var(--foot-ink); text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.foot-note {
  font-family: var(--mono); font-size: 11px; color: #8b95a3;
  margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px;
}

/* ---------- Мобильная версия ---------- */
.burger {
  display: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  width: 40px; height: 36px; cursor: pointer; padding: 0;
  font-size: 18px; line-height: 1; color: var(--ink); flex: none;
}

@media (max-width: 720px) {
  .site-bar { justify-content: space-between; gap: 10px; row-gap: 8px; }
  .burger { display: grid; place-items: center; }
  nav.main {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--card); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 6px 20px 12px;
    box-shadow: 0 18px 40px rgba(31, 36, 48, .16);
  }
  body.menu-open nav.main { display: flex; }
  nav.main a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  nav.main a:last-child { border-bottom: none; }
  .site-bar { position: relative; }
  .langs { order: 3; flex-basis: 100%; }

  .route { padding: 16px 14px 14px; }
  .chip { padding: 8px 13px; font-size: 13.5px; }
  .stop { grid-template-columns: 20px 1fr; gap: 10px; }
  .stop-body { padding-bottom: 14px; }
  .hero h1 { max-width: none; }
  .truthline { padding-top: 18px; }
  .tile { flex-basis: 78px; }
  .tile-icon { width: 58px; height: 58px; font-size: 22px; }
  .app-hero .app-icon { width: 60px; height: 60px; font-size: 24px; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
  .panel { padding: 16px; }
}

@media (max-width: 420px) {
  .brand small { display: none; }
}

/* === v8: о приложении, покрытие, похожие, FAQ === */
.about p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; }
.feat-h { font-size: 14px; margin: 16px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.feat { margin: 0; padding: 0 0 0 2px; list-style: none; }
.feat li { font-size: 14px; padding: 5px 0 5px 24px; position: relative; }
.feat li::before { content: ''; position: absolute; left: 0; top: 10px; width: 14px; height: 14px; border-radius: 4px;
  background: var(--green); opacity: .9;
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 0, 40% 66%); }
.cov { margin-top: 14px; }
.cov-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 6px; }
.cov-top span { color: var(--muted); } .cov-top b { font-family: var(--mono); font-weight: 600; font-size: 12.5px; }
.covbar { height: 8px; border-radius: 99px; background: #e7ecf2; overflow: hidden; }
.covbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green), #067a41); }
.alt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.alt-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  padding: 0 10px 8px 0; border-bottom: 1px solid #e3e9f0; font-weight: 600; }
.alt-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid #eef2f7; }
.alt-table tr:last-child td { border-bottom: 0; }
.faq details { border-bottom: 1px solid #eef2f7; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 12px 26px 12px 0; font-weight: 600; font-size: 14.5px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 10px; font-family: var(--mono); font-size: 18px;
  color: var(--green); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: #35414e; }
.tile-icon img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* ============ v9: мобильные элементы ============ */
/* Кнопка «наверх» */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(11, 171, 92, .4);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s, background .15s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-dark); }
.to-top:focus-visible { outline: 3px solid var(--green-soft); outline-offset: 2px; }

/* Закреплённая панель скачивания на странице приложения */
.dl-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: flex; gap: 10px; justify-content: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(31, 36, 48, .12);
}
.dl-btn {
  flex: 1 1 0; max-width: 260px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 10px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; border: 1.5px solid var(--green);
}
.dl-btn.play { background: var(--green); color: #fff; }
.dl-btn.play:hover { background: var(--green-dark); border-color: var(--green-dark); }
.dl-btn.ios { background: #fff; color: var(--green-dark); }
.dl-btn.ios:hover { background: var(--green-soft); }
.dl-btn svg { flex: none; }
/* когда закреплённая панель показана — освобождаем место снизу и поднимаем кнопку «наверх» */
body.has-dlbar footer.site { padding-bottom: 80px; }
body.has-dlbar .to-top { bottom: calc(74px + env(safe-area-inset-bottom)); }

/* Фильтр-чипы категорий */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip-f {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 8px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 500;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  transition: background .15s, color .15s, border-color .15s;
}
.chip-f:hover { border-color: var(--green); color: var(--green-dark); }
.chip-f.is-on { background: var(--green); color: #fff; border-color: var(--green); }
.cf-n { font-family: var(--mono); font-size: 11px; opacity: .8; }
.chip-f.is-on .cf-n { opacity: .95; }

@media (max-width: 720px) {
  .cat-filter { gap: 7px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .chip-f { flex: none; white-space: nowrap; }
}

/* затемнение фона при открытом меню */
.menu-scrim {
  position: fixed; inset: 0; z-index: 30; background: rgba(20, 24, 33, .32);
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s;
}
body.menu-open .menu-scrim { opacity: 1; visibility: visible; }
@media (min-width: 721px) { .menu-scrim { display: none; } }


/* ============ v10: плотнее на мобильном, пагинация списков ============ */
.load-more {
  display: block; width: 100%; margin: 4px 0 8px; padding: 13px 16px;
  border: 1.5px solid var(--green); border-radius: 12px; cursor: pointer;
  background: var(--green-soft); color: var(--green-dark); font-weight: 600; font-size: 14.5px;
  transition: background .15s, color .15s;
}
.load-more:hover { background: var(--green); color: #fff; }
.load-more .lm-n { font-family: var(--mono); font-size: 12px; opacity: .85; }
.app-card[hidden] { display: none !important; }

/* Раскрывающийся список приложений в футере */
.foot-apps { margin-top: 2px; }
.foot-apps > summary {
  cursor: pointer; list-style: none; font-size: 13.5px; color: var(--foot-ink);
  padding: 6px 0; display: inline-flex; align-items: center; gap: 7px; opacity: .92;
}
.foot-apps > summary::-webkit-details-marker { display: none; }
.foot-apps > summary::before {
  content: '+'; font-family: var(--mono); font-size: 15px; color: var(--green);
  width: 16px; text-align: center;
}
.foot-apps[open] > summary::before { content: '–'; }
.foot-apps > summary:hover { opacity: 1; }
.foot-apps ul { margin: 8px 0 0; }

@media (max-width: 720px) {
  .wrap { padding: 0 14px; }
  .route { padding: 16px 14px 14px; margin: 18px 0 12px; }
  .hero { padding: 8px 0 4px; }
  .truthline { padding-top: 18px; }
  .panel { padding: 14px; }
  .app-hero { padding: 14px 0 4px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 12px; }
}

/* ============ v13: выпадающий переключатель языков ============ */
.lang-dd { position: relative; flex: none; }
.lang-dd > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--green); color: #fff; border: 1px solid var(--green);
}
.lang-dd > summary::-webkit-details-marker { display: none; }
.lang-dd > summary svg { transition: transform .15s; }
.lang-dd[open] > summary svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 70;
  min-width: 200px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(31, 36, 48, .18);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.lang-menu a {
  display: grid; place-items: center; padding: 9px 0; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line);
}
.lang-menu a:hover { border-color: var(--green); color: var(--green-dark); }
.lang-menu a[aria-current="true"] { background: var(--green); color: #fff; border-color: var(--green); }
@media (max-width: 720px) {
  .lang-dd { order: 0; }
  .lang-menu { right: -4px; }
}

/* ============ v22: популярные по странам + картинки тизеров ============ */
#popgeo .cat-filter { margin-bottom: 14px; }
.popgeo-more { margin: 12px 0 0; font-size: 14px; }
.popgeo-more a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.popgeo-more a:hover { text-decoration: underline; }
.teaser-img { display: block; margin: -16px -16px 8px; border-radius: 14px 14px 0 0; overflow: hidden; aspect-ratio: 16/9; background: #e7ecf2; }
.teaser-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) {
  #popgeo .cat-filter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}

/* ============ v28: RTL для урду (Пакистан) ============ */
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .to-top { right: auto; left: 18px; }
[dir="rtl"] .crumbs, [dir="rtl"] .app-meta, [dir="rtl"] .facts td:first-child { text-align: right; }
[dir="rtl"] .ver .v { margin-left: 10px; margin-right: 0; }

/* ============ v29: витрина брендов на страницах стран ============ */
.showcase { margin: 20px 0 4px; }
.show-row { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 12px; scrollbar-width: thin; }
.show-app { flex: 0 0 auto; width: 92px; text-align: center; text-decoration: none; color: var(--ink); }
.show-app:hover .show-name { text-decoration: underline; }
.show-icon { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 22px; color: #fff; }
.show-icon img { width: 100%; height: 100%; display: block; }
.show-name { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-check { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.show-more { flex: 0 0 auto; align-self: center; font-size: 13.5px; font-weight: 600; color: var(--green-dark); text-decoration: none; padding: 0 8px; white-space: nowrap; }
.show-more:hover { text-decoration: underline; }
