/* Variant C «Карта» — bulgaria.zydeno.com
   Bulgaria itself is the canvas: 27 220 real places of the Travel Guide drawn as dots. */

/* ---------- Fonts (self-hosted, split by script) ---------- */
@font-face { font-family: "Piazzolla"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/piazzolla-latin.woff2") format("woff2");
  unicode-range: U+0000-017F, U+0218-021B, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Piazzolla"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/piazzolla-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+2116, U+0300-0301; }
@font-face { font-family: "Piazzolla"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/piazzolla-greek.woff2") format("woff2");
  unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Piazzolla"; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url("/fonts/piazzolla-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-017F, U+0218-021B, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Piazzolla"; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url("/fonts/piazzolla-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+2116, U+0300-0301; }
@font-face { font-family: "Piazzolla"; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url("/fonts/piazzolla-italic-greek.woff2") format("woff2");
  unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/commissioner-latin.woff2") format("woff2");
  unicode-range: U+0000-017F, U+0218-021B, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/commissioner-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+2116, U+0300-0301; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/commissioner-greek.woff2") format("woff2");
  unicode-range: U+0370-03FF, U+1F00-1FFF; }

/* ---------- Tokens ---------- */
:root {
  --paper: #FFFFFF;
  --paper-2: #F1F1EE;
  --card: #FFFFFF;
  --ink: #171412;
  --ink-2: #45403A;
  --ink-3: #69625A;
  --rule: rgba(28, 23, 20, .12);
  --rule-2: rgba(28, 23, 20, .22);

  --red: #B42318;
  --green: #0E6A4F;
  --green-deep: #0C4F3C;
  --oxblood: #3A1719;
  --night: #231112;
  --limestone: #F1ECE9;
  --copper: #9C4E27;
  --copper-l: #E0956A;

  --serif: "Piazzolla", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 72px);
  --panel-w: clamp(400px, 37vw, 600px);
  --head-h: 76px;
  --btn-h: 48px;
  --band-h: clamp(230px, 45svh, 520px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --intro-delay: 150ms;
  color-scheme: light;
}
.is-loading { --intro-delay: 1050ms; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  font-kerning: normal; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.panel--night :focus-visible, .partners :focus-visible { outline-color: var(--copper-l); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200; padding: 12px 18px; background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }
.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.kicker {
  font: 600 .75rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .7; }

/* ---------- Loader (first visit in a session only; CSS ends it even if JS fails) ---------- */
.loader { display: none; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px, 2.4vh, 28px); background: var(--paper); pointer-events: none;
  animation: loader-out .42s cubic-bezier(.6, 0, .3, 1) .9s forwards;
}
.is-loaded .loader { display: none; }
.loader-map { width: min(64vw, 520px); height: auto; overflow: visible; }
.loader-map path {
  fill: none; stroke: var(--ink); stroke-width: 5.5; stroke-linecap: round; opacity: .75;
  clip-path: inset(0 100% 0 0); animation: loader-sweep .75s cubic-bezier(.3, .6, .2, 1) .05s forwards;
}
.loader-title {
  font: 400 clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem)/1 var(--serif); letter-spacing: .01em; color: var(--ink);
  opacity: 0; transform: translateY(8px); animation: loader-title .5s var(--ease) .3s forwards;
}
@keyframes loader-sweep { to { clip-path: inset(0 0 0 0); } }
@keyframes loader-title { to { opacity: 1; transform: none; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; transform: scale(1.015); } }

/* ---------- Header ---------- */
.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 30; height: var(--head-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand { gap: 10px; }
.brand-mark { display: block; width: 34px; height: 34px; flex: none; margin: -2px -2px 0 -6px; }
.foot-brand .brand-mark { width: 40px; height: 40px; margin: 0 0 0 -7px; }
.brand-name { font: 500 1.2rem/1 var(--serif); letter-spacing: .005em; }
.brand-sub { font: 500 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-left: 12px; border-left: 1px solid var(--rule-2); }
.site-nav { margin-left: auto; display: flex; gap: clamp(16px, 2vw, 32px); }
.site-nav a { font: 500 .9rem/1 var(--sans); color: var(--ink-2); text-decoration: none; padding: 14px 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

/* Language switcher */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--rule-2); border-radius: 6px; font: 600 .78rem/1 var(--sans); letter-spacing: .1em; color: var(--ink);
  background: rgba(255, 255, 255, .7);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--ink-3); }
.lang-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.lang[open] .lang-caret { transform: translateY(1px) rotate(-135deg); }
.lang-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: max-content; min-width: 260px; max-width: calc(100vw - 2 * var(--gutter));
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 10px 10px;
  box-shadow: 0 24px 48px -20px rgba(28, 23, 20, .3);
}
.lang-title { font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 10px; }
.lang-pop ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; }
.lang-pop a { display: block; padding: 10px; border-radius: 6px; text-decoration: none; font-size: .92rem; color: var(--ink-2); }
.lang-pop a:hover { background: var(--paper-2); color: var(--ink); }
.lang-pop a[aria-current] { color: var(--ink); font-weight: 600; background: var(--paper-2); }

/* ---------- Story: sticky map + scrolling steps ---------- */
.story { position: relative; display: grid; }
.stage, .steps { grid-area: 1 / 1; min-width: 0; }
.stage {
  position: sticky; top: 0; align-self: start; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--paper); z-index: 0; contain: layout paint;
}
.map { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.map canvas { position: absolute; inset: 0; display: block; }
.map-breath {
  position: absolute; inset: 6% 4%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 48, 44, .10), rgba(224, 149, 106, .06) 55%, transparent 100%);
  opacity: 0; transition: opacity 1.2s;
}
.map.is-hero .map-breath { opacity: 1; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .55; } 50% { transform: scale(1.04); opacity: 1; } }
.map-layer { position: absolute; inset: 0; pointer-events: none; }

/* Words that rise over the cities (Learn) */
.layer-words { overflow: visible; }
.word {
  position: absolute; left: 0; top: 0; white-space: nowrap; font: italic 400 1.35rem/1 var(--serif); color: var(--red);
  opacity: 0; transform: translate(-50%, 0); animation: rise 5.6s cubic-bezier(.25, .6, .3, 1) forwards;
  text-shadow: 0 0 10px var(--paper), 0 0 2px var(--paper);
}
.word.is-letter { font: 400 2.6rem/1 var(--serif); font-style: normal; color: var(--ink); }
.word.is-static { animation: none; opacity: .9; }
.word.is-static.is-letter { opacity: .3; }
@keyframes rise {
  0% { opacity: 0; transform: translate(-50%, 14px); filter: blur(3px); }
  18% { opacity: 1; filter: blur(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -56px); }
}
.word.is-letter { animation-name: rise-letter; }
@keyframes rise-letter {
  0% { opacity: 0; transform: translate(-50%, 18px); }
  25% { opacity: .32; }
  70% { opacity: .32; }
  100% { opacity: 0; transform: translate(-50%, -64px); }
}

/* Cities (Travel) */
.city { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; white-space: nowrap; opacity: 0; transition: opacity .25s, translate .3s; translate: 0 6px; }
.layer-cities.is-on .city:nth-child(n) { transition: opacity .6s calc(var(--ci, 0) * 70ms), translate .7s var(--ease) calc(var(--ci, 0) * 70ms); }
.layer-cities.is-on .city { opacity: 1; translate: 0 0; }
.city i { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); }
.city b { font: 600 .78rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-shadow: 0 0 6px var(--paper), 0 0 3px var(--paper), 0 0 1px var(--paper); }
.city[data-pos="r"] { transform: translate(-4.5px, -50%); }
.city[data-pos="l"] { transform: translate(calc(-100% + 4.5px), -50%); flex-direction: row-reverse; }
.city[data-pos="t"] { transform: translate(-50%, calc(-100% + 4.5px)); flex-direction: column-reverse; gap: 5px; }
.city[data-pos="b"] { transform: translate(-50%, -4.5px); flex-direction: column; gap: 5px; }

/* Historic sites (History) */
.site {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 3px; white-space: nowrap;
  opacity: 0; transition: opacity .25s, translate .3s; translate: 0 6px;
}
.layer-sites.is-on .site { opacity: 1; translate: 0 0; transition: opacity .7s calc(var(--i) * 110ms + 200ms), translate .9s var(--ease) calc(var(--i) * 110ms + 200ms); }
.site b { font: 500 .98rem/1.1 var(--serif); color: var(--limestone); text-shadow: 0 0 8px var(--night), 0 0 3px var(--night); }
.site small { font: 600 .66rem/1.1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--copper-l); text-shadow: 0 0 6px var(--night), 0 0 2px var(--night); }
/* JS places each label next to its glow (see placeSiteLabels); data-pos only sets alignment */
.site[data-pos="l"], .site[data-pos="tl"], .site[data-pos="bl"] { text-align: right; align-items: flex-end; }
.site[data-pos="t"], .site[data-pos="b"] { text-align: center; align-items: center; }

/* HUD under the map */
.hud { position: absolute; left: 0; top: 0; pointer-events: none; }
.hud-item { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; visibility: hidden; }
.counter { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.counter-n { font: 400 clamp(2rem, 1.4rem + 1.6vw, 3.1rem)/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.counter-l { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hud-cap { margin-top: 6px; font-size: .88rem; line-height: 1.45; color: var(--ink-2); max-width: 40em; }
.hud-title { font: 400 clamp(1.3rem, 1rem + .9vw, 1.75rem)/1.15 var(--serif); color: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .86rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 10px; height: 10px; border-radius: 50%; background: #9C2B2B; }
.sw-1 { background: #3E9B6B; } .sw-2 { background: #D4920E; } .sw-3 { background: #2F6FC8; } .sw-4 { background: #2A2420; }
.site-caption { font: 500 .95rem/1.35 var(--serif); color: var(--limestone); min-height: 2.7em; }
.site-caption small { display: block; font: 600 .66rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--copper-l); margin-top: 3px; }

/* ---------- Steps ---------- */
.steps { position: relative; z-index: 2; }
.step { position: relative; padding-inline: var(--gutter); }

/* Hero: title + lead on the left, the map drawing itself on the right, the three apps below */
.step--hero {
  min-height: 100vh; min-height: 100svh; display: grid; align-content: end;
  grid-template-columns: var(--panel-w) minmax(0, 1fr);
  grid-template-areas: "head ." "lead ." "apps apps";
  padding-top: calc(var(--head-h) + 12px); padding-bottom: clamp(20px, 3.2vh, 40px);
}
.hero-head { grid-area: head; position: relative; z-index: 1; }
.hero-lead { grid-area: lead; position: relative; z-index: 1; }
.overview { grid-area: apps; margin-top: clamp(22px, 4vh, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.eyebrow { font: 600 .78rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--red); flex: none; }
.title {
  font: 380 min(clamp(3.4rem, .6rem + 7.4vw, 9rem), 15.5vh)/.9 var(--serif); letter-spacing: -.03em;
  margin: .2em 0 .22em -.04em; white-space: nowrap;
}
.title-letters span { display: inline-block; animation: letter-in 1s var(--ease) both; animation-delay: calc(var(--intro-delay) + 120ms + var(--d)); }
@keyframes letter-in { from { opacity: 0; transform: translateY(.32em); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.lead { font-size: clamp(1.04rem, .9rem + .42vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 31em; }
.hero-counter { margin-top: clamp(16px, 2.6vh, 26px); }
.hero-cap { margin-top: 6px; font-size: .86rem; line-height: 1.45; color: var(--ink-3); max-width: 30em; }
.reveal { animation: fade-up .9s var(--ease) both; animation-delay: calc(var(--intro-delay) + var(--d, 0ms)); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-lead .cta-row { margin-top: clamp(16px, 2.6vh, 26px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: var(--btn-h); padding: 10px 24px; border-radius: 6px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--sans); letter-spacing: .005em; text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }
.btn--line { border-color: var(--rule-2); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; }
.btn--copper { background: var(--copper-l); color: #2A1214; }
.btn--copper:hover { background: #EBA982; }

/* Overview cards: the three apps at a glance */
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: var(--card); border: 1px solid var(--rule); border-radius: 3px; padding: clamp(16px, 1.5vw, 24px);
  box-shadow: 0 30px 60px -44px rgba(28, 23, 20, .35);
}
.app-card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 48px; height: 3px; background: var(--accent); }
.ac-top { display: flex; align-items: center; gap: 14px; }
.ac-top .app-icon { width: 56px; height: 56px; border-radius: 13px; flex: none; box-shadow: 0 0 0 1px var(--rule), 0 8px 18px -10px rgba(0, 0, 0, .35); }
.ac-id { min-width: 0; }
.ac-kicker { font: 600 .68rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ac-kicker span { color: var(--ink); }
.ac-name { font: 500 1.28rem/1.15 var(--serif); margin-top: 4px; }
.ac-name a { text-decoration: none; }
.ac-name a:hover { text-decoration: underline; }
.ac-desc { font-size: .93rem; line-height: 1.45; color: var(--ink-2); }
.ac-status { font-size: .8rem; line-height: 1.6; color: var(--ink-3); }
.dot { display: inline-block; vertical-align: middle; width: 7px; height: 7px; margin: -2px 9px 0 2px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(14, 106, 79, .14); flex: none; }
.ac-status .pill { color: var(--copper); border-color: currentColor; height: 24px; padding: 0 10px; font-size: .64rem; margin: 0 8px 2px 0; vertical-align: middle; }
.ac-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: auto; padding-top: 4px; }
.ac-stores .badge img { height: 42px; }
.ac-stores .soon-store { min-height: 42px; padding: 8px 16px; font-size: .84rem; }
.ac-notify { font-size: .84rem; font-weight: 600; color: var(--ink-2); padding: 8px 0; }
.plaque-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 2px; }
.plaque {
  display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 6px 16px; border-radius: 6px;
  border: 1px solid var(--rule-2); background: rgba(255, 255, 255, .75); font: 500 .84rem/1.3 var(--sans); color: var(--ink);
}
.tags { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tags li { display: inline-flex; align-items: center; gap: 7px; font: 600 .7rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tags li::before { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: translateY(-2px) rotate(-45deg); flex: none; }
.ac-links { display: none; align-items: center; gap: 4px 16px; flex-wrap: wrap; font-size: .84rem; font-weight: 600; }
.ac-links .dot { margin: 0 -6px 0 2px; }
.ac-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); text-decoration-color: var(--rule-2); text-underline-offset: .25em; }
.ac-notify:hover { color: var(--ink); }

/* App panels */
.step--app { padding-top: 40vh; padding-top: 40svh; padding-bottom: 24vh; }
.step--history { padding-bottom: 30vh; }
.panel {
  --accent: var(--red);
  position: relative; width: var(--panel-w); background: var(--card); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 3px; padding: clamp(28px, 2.6vw, 48px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 40px 80px -48px rgba(28, 23, 20, .28);
}
.panel::before { content: ""; position: absolute; left: -1px; top: -1px; width: 64px; height: 3px; background: var(--accent); }
.step--travel .panel { margin-left: auto; }
.panel--night {
  --ink: var(--limestone); --ink-2: #DCCDC5; --ink-3: #C2AA9E; --rule: rgba(241, 236, 233, .14); --rule-2: rgba(241, 236, 233, .3);
  --card: var(--oxblood); background: var(--oxblood); color: var(--ink); border-color: rgba(224, 149, 106, .22);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6);
}
.ch-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font: 600 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ch-num { color: var(--accent); }
.panel:not(.panel--night) .ch-num { color: color-mix(in srgb, var(--accent) 88%, #000); }
.ch-word { font: 400 clamp(3.6rem, 1.6rem + 4.4vw, 6.6rem)/.95 var(--serif); letter-spacing: -.025em; color: var(--accent); margin: 14px 0 26px -.03em; }
.panel:not(.panel--night) .ch-word { color: color-mix(in srgb, var(--accent) 92%, #000); }
.app-id { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-block: 1px solid var(--rule); }
.app-id .app-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; box-shadow: 0 0 0 1px var(--rule), 0 10px 22px -12px rgba(0, 0, 0, .35); }
.app-name { font: 500 1.3rem/1.2 var(--serif); }
.app-plat { font-size: .86rem; color: var(--ink-3); margin-top: 3px; }
.ch-title { font: 500 clamp(1.45rem, 1.1rem + 1vw, 2.05rem)/1.2 var(--serif); letter-spacing: -.005em; margin-top: 28px; text-wrap: balance; }
.ch-text { margin-top: 14px; font-size: 1.04rem; line-height: 1.65; color: var(--ink-2); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.badge { display: inline-flex; border-radius: 9px; }
.badge img { display: block; height: 48px; width: auto; }
.store-more { margin-top: 12px; font-size: .86rem; }
.store-more a { color: var(--ink-2); display: inline-block; padding: 6px 0; }
.store-more a:hover { color: var(--ink); }

.status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 6px; border: 1px solid var(--copper-l); color: var(--copper-l); font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.soon-store { display: inline-flex; align-items: center; min-height: var(--btn-h); padding: 10px 22px; border-radius: 6px; border: 1px dashed var(--rule-2); color: var(--ink-3); font: 600 .9rem/1.2 var(--sans); }
.review { margin-top: 26px; padding: 4px 0 4px 20px; border-left: 2px solid var(--copper-l); }
.review p { font: italic 400 1.12rem/1.5 var(--serif); color: var(--ink); }

.showcase { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: clamp(22px, 2.4vw, 40px); align-items: center; margin-top: 38px; }
.phone { width: 100%; }
.phone-frame {
  padding: 8px; border-radius: 38px; background: #15100E;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 0 0 1px rgba(0, 0, 0, .25), 0 34px 60px -28px rgba(28, 23, 20, .55), 0 10px 22px -14px rgba(28, 23, 20, .4);
}
.phone-screen { position: relative; aspect-ratio: 600 / 1304; border-radius: 31px; overflow: hidden; background: #fff; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .7s ease; }
.phone-screen img.is-on { opacity: 1; }
.phone figcaption { margin-top: 10px; }
.pager { display: flex; justify-content: center; }
.pager button { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.pager button::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--rule-2); transition: width .35s var(--ease), background .35s; }
.pager button[aria-pressed="true"]::before { width: 18px; background: var(--accent); }
.phone-note { margin-top: 6px; font-size: .76rem; line-height: 1.4; color: var(--ink-3); text-align: center; }

.stats { display: flex; flex-direction: column; }
.stats li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--rule); }
.stats li:last-child { border-bottom: 1px solid var(--rule); }
.stat-n { font: 400 clamp(2.1rem, 1.5rem + 1.2vw, 2.9rem)/1 var(--serif); letter-spacing: -.015em; font-variant-numeric: lining-nums; }
.stat-l { font-size: .86rem; line-height: 1.3; color: var(--ink-3); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; margin-top: 40px; counter-reset: feat; }
.feat { counter-increment: feat; padding-top: 14px; border-top: 1px solid var(--rule); }
.feat dt { font: 600 1.06rem/1.3 var(--serif); }
.feat dt::before { content: counter(feat, decimal-leading-zero); display: block; font: 600 .68rem/1 var(--sans); letter-spacing: .14em; color: var(--accent); margin-bottom: 8px; }
.panel:not(.panel--night) .feat dt::before { color: color-mix(in srgb, var(--accent) 88%, #000); }
.feat dd { margin-top: 6px; font-size: .93rem; line-height: 1.55; color: var(--ink-2); }

.strata { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--rule); }
.strata-title { font: 500 1.35rem/1.2 var(--serif); }
.strata-note { margin-top: 6px; font-size: .9rem; color: var(--ink-3); }
.strata-list { margin-top: 18px; display: flex; flex-direction: column; gap: 3px; }
.strata-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 34px; font-size: .9rem; }
.strata-list i { align-self: stretch; background: var(--fill); border-radius: 2px; }
.era-n { color: var(--ink); line-height: 1.3; }
.era-d { color: var(--ink-3); font-size: .8rem; text-align: right; white-space: nowrap; }

/* ---------- Dedication ---------- */
.dedication { padding: clamp(80px, 12vw, 168px) 0 clamp(64px, 9vw, 120px); background: var(--paper); position: relative; }
.dedication .kicker { color: var(--red); }
.ded-quote { margin-top: 30px; }
.ded-quote p { max-width: 21em; font: italic 380 clamp(1.9rem, 1.1rem + 2.8vw, 3.7rem)/1.18 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.ded-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); margin-top: clamp(36px, 5vw, 64px); }
.ded-text > p { font-size: 1.08rem; line-height: 1.7; color: var(--ink-2); max-width: 38em; }
.principles { display: flex; flex-direction: column; border-top: 1px solid var(--rule); align-self: start; margin-top: 30px; max-width: 30em; }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-self: start; }
.mo { position: relative; margin: 0; overflow: hidden; border-radius: 2px; background: var(--paper-2); aspect-ratio: 4 / 5; }
.mo-tsarevets { grid-column: 1 / -1; aspect-ratio: 3.4 / 1; }
.mo-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mo:hover .mo-img { transform: scale(1.035); }
.mo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 10px 9px; font: 600 .66rem/1.25 var(--sans); letter-spacing: .09em; text-transform: uppercase;
  color: #FFF; background: linear-gradient(rgba(16, 11, 9, 0), rgba(16, 11, 9, .84));
}
.principles li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
.principles li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--green); flex: none; }
.ded-stats { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.ded-stats li { padding: 22px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.ded-stats li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.ded-stats .stat-n { font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.8rem); }

/* ---------- Facts ---------- */
.facts { padding: clamp(72px, 9vw, 140px) 0; background: var(--paper-2); }
.facts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(32px, 6vw, 112px); }
.facts-head { align-self: start; position: sticky; top: 40px; }
.facts-head h2 { margin-top: 20px; font: 400 clamp(2.1rem, 1.3rem + 2.6vw, 3.8rem)/1.06 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.facts-list { border-top: 1px solid var(--ink); }
.fact { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) clamp(132px, 12vw, 184px); gap: 12px clamp(20px, 2.4vw, 36px); align-items: start; padding: 26px 0; border-bottom: 1px solid var(--rule-2); }
.fact-fig { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--paper); box-shadow: 0 0 0 1px var(--rule); }
.fact-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform 1.2s var(--ease); }
.fact:hover .fact-img { transform: scale(1.04); }
.fact-date { font: italic 400 1.35rem/1.25 var(--serif); color: var(--copper); }
.fact h3 { font: 500 1.35rem/1.25 var(--serif); }
.fact div p { margin-top: 8px; color: var(--ink-2); line-height: 1.6; max-width: 36em; }

/* ---------- Author ---------- */
.author { padding: clamp(80px, 10vw, 150px) 0; background: var(--paper); }
.author-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.portrait-mat {
  background: var(--card); padding: clamp(14px, 1.6vw, 22px); border: 1px solid var(--rule-2);
  box-shadow: 0 40px 80px -50px rgba(28, 23, 20, .45);
}
.portrait-mat img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; outline: 1px solid rgba(28, 23, 20, .28); outline-offset: clamp(5px, .6vw, 9px); }
.author-text h2 { margin-top: 18px; font: 400 clamp(2.4rem, 1.5rem + 2.8vw, 4.2rem)/1.02 var(--serif); letter-spacing: -.02em; }
.role { margin-top: 12px; font-size: .95rem; color: var(--ink-3); }
.author-text > p:not(.kicker):not(.role):not(.signature) { margin-top: 18px; font-size: 1.06rem; line-height: 1.7; color: var(--ink-2); max-width: 36em; }
.author-text > .role + p { margin-top: 28px !important; }
.signature { margin-top: 26px; font: italic 400 clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem)/1 var(--serif); color: var(--ink); }

/* ---------- Partners ---------- */
.partners { padding: clamp(72px, 9vw, 136px) 0; background: var(--ink); color: var(--paper); }
.partners .kicker { color: #CFC5BB; }
.partners-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: end; }
.partners h2 { margin-top: 18px; font: 400 clamp(2.2rem, 1.4rem + 2.6vw, 3.9rem)/1.05 var(--serif); letter-spacing: -.02em; }
.partners-text { margin: 20px 0 32px; font-size: 1.06rem; line-height: 1.7; color: #DCD3C9; max-width: 36em; }
.p-facts { border-top: 1px solid rgba(245, 244, 240, .3); }
.p-facts div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(245, 244, 240, .16); }
.p-facts dt { font: 600 .72rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #BDB2A7; }
.p-facts dd { font-size: .98rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--paper); padding: 64px 0 96px; font-size: .9rem; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--rule-2); }
.foot-name { margin-top: 14px; font: 500 1.5rem/1 var(--serif); }
.foot-tag { margin-top: 8px; color: var(--ink-3); }
.foot-author { margin-top: 12px; }
.foot-author a { color: var(--ink-2); text-decoration: none; }
.foot-author a:hover { color: var(--ink); text-decoration: underline; }
.foot-col h2 { font: 600 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.foot-col li a { display: inline-block; padding: 6px 0; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.foot-col li a:hover { color: var(--ink); text-decoration: underline; }
.muted { color: var(--ink-3); }
.foot-bottom { display: flex; flex-direction: column; gap: 6px; padding-top: 28px; color: var(--ink-3); font-size: .82rem; line-height: 1.55; }
.credits { margin-top: 8px; }
.credits summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 36px;
  font-weight: 600; color: var(--ink-2);
}
.credits summary::-webkit-details-marker { display: none; }
.credits summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.credits[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.credits ol { margin-top: 6px; display: grid; gap: 9px; max-width: 64em; }
.credits li { font-size: .78rem; line-height: 1.5; color: var(--ink-3); }
.credits li b { color: var(--ink-2); font-weight: 600; }
.credits a { color: var(--ink-2); overflow-wrap: anywhere; }
.to-top { align-self: flex-start; margin-top: 14px; color: var(--ink-2); font-weight: 600; padding: 8px 0; }

/* ---------- Variant tag ---------- */
.variant-tag {
  position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 0 6px 0 12px; height: 34px; border-radius: 6px; background: rgba(28, 23, 20, .92); color: var(--paper);
  font: 600 .72rem/1 var(--sans); letter-spacing: .04em; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.variant-tag a { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; background: rgba(245, 244, 240, .14); color: var(--paper); text-decoration: none; white-space: nowrap; }
.variant-tag a:hover { background: rgba(245, 244, 240, .26); }
.variant-tag a:focus-visible { outline-color: var(--paper); }

/* ---------- Browser-language suggestion (shown only when it applies) ---------- */
.lang-offer {
  position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 10px;
  max-width: min(440px, calc(100vw - 32px)); padding: 10px 10px 10px 18px; border-radius: 8px;
  background: var(--card); color: var(--ink); border: 1px solid var(--rule-2);
  box-shadow: 0 24px 50px -22px rgba(28, 23, 20, .45);
  opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.lang-offer.is-in { opacity: 1; transform: none; }
.lang-offer p { font: 500 .92rem/1.35 var(--sans); margin-right: 4px; }
.lang-offer .btn { min-height: 40px; padding: 8px 18px; font-size: .88rem; flex: none; }
.lang-offer .x {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer;
  display: grid; place-items: center; font: 400 1.4rem/1 var(--sans);
}
.lang-offer .x:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- Desktop-only refinements ---------- */
@media (min-width: 1024px) {
  .hud-hero, .hud-history { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-nav { gap: 18px; }
  .brand-sub { display: none; }
  :root { --panel-w: clamp(420px, 41vw, 520px); }
  .hero-lead .btn { padding-inline: 18px; font-size: .9rem; }
  .app-card { padding: 16px; gap: 8px; }
  .ac-top { gap: 12px; }
  .ac-top .app-icon { width: 48px; height: 48px; border-radius: 11px; }
  .ac-name { font-size: 1.12rem; }
  .ac-stores .badge img { height: 36px; }
  .ac-stores .soon-store { min-height: 36px; padding: 6px 14px; }
  .tags { gap: 4px 12px; }
  .tags li { font-size: .64rem; letter-spacing: .08em; }
  .showcase { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); }
  .features { grid-template-columns: 1fr; }
}

/* Short desktop screens: keep the three apps on the first screen */
@media (min-width: 1024px) and (max-height: 860px) {
  .hero-lead .cta-row { display: none; }
  .title { font-size: min(clamp(3.4rem, .6rem + 7.4vw, 9rem), 13.5vh); }
  .hero-counter { margin-top: 14px; }
  .overview { margin-top: 20px; }
}

/* ---------- Band layout: tablets and phones ---------- */
@media (max-width: 1023px) {
  :root { --head-h: 60px; --band-h: clamp(230px, 42svh, 520px); }
  .site-head { position: relative; background: var(--paper); gap: 16px; }
  .site-nav { display: none; }
  .lang { margin-left: auto; }
  .story { display: block; }
  .stage { position: sticky; top: 0; height: var(--band-h); z-index: 5; border-bottom: 1px solid var(--rule); }
  .hud-cap { font-size: .76rem; line-height: 1.4; margin-top: 2px; }
  .counter-n { font-size: 1.45rem; }
  .counter { gap: 10px; }
  .counter-l { font-size: .66rem; }
  .hud-title { font-size: 1.15rem; }
  .legend { gap: 4px 14px; font-size: .76rem; }
  .sw { width: 8px; height: 8px; }
  .site { display: none; }
  .city b { font-size: .64rem; }
  .city i { width: 7px; height: 7px; }
  .word { font-size: 1rem; }
  .word.is-letter { font-size: 1.8rem; }

  .steps { background: var(--paper); }
  .step { padding: 0; }
  .step--hero {
    min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "apps" "lead";
    padding: 26px var(--gutter) 56px; align-content: start;
  }
  .title { font-size: clamp(3.1rem, 15vw, 6.5rem); margin-bottom: .12em; }
  .overview { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); margin-top: 14px; gap: 10px; }
  .hero-lead { margin-top: 30px; max-width: 640px; }
  .hero-counter, .hero-cap { display: none; }
  .step--app, .step--history { padding: 0; }
  .panel { width: auto; border: 0; border-radius: 0; box-shadow: none; padding: 56px var(--gutter) 72px; border-top: 1px solid var(--rule); }
  .panel::before { left: var(--gutter); top: 0; }
  .panel--night { border-top: 0; }
  .panel > * { max-width: 680px; }
  .step--travel .panel { margin-left: 0; background: #F9F8F5; }
  .ded-body, .facts-grid, .author-grid, .partners-grid { grid-template-columns: 1fr; }
  .mosaic { max-width: 640px; }
  .facts-head { position: static; }
  .author-grid { justify-items: start; }
  .portrait { width: min(100%, 420px); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 1023px) {
  .overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .app-card { padding: 14px; gap: 8px; }
  .ac-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ac-top .app-icon { width: 48px; height: 48px; border-radius: 11px; }
  .ac-name { font-size: 1.08rem; }
  .ac-desc { font-size: .86rem; }
  .ac-status { font-size: .76rem; }
  .ac-stores { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ac-stores .badge img { height: 38px; }
  .ac-stores .soon-store { min-height: 38px; padding: 6px 14px; font-size: .8rem; }
}
@media (max-width: 640px) {
  body { font-size: .98rem; }
  .lang-offer { left: 12px; right: 12px; bottom: 48px; max-width: none; padding-left: 14px; }
  .brand-sub { display: none; }
  .step--hero { padding-top: 18px; }
  .overview { gap: 0; margin-top: 12px; border-top: 1px solid var(--rule); }
  .app-card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 11px 0 10px;
    background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; box-shadow: none;
  }
  .app-card::before { display: none; }
  .app-card > * { grid-column: 2; }
  .ac-top { display: contents; }
  .ac-top .app-icon { grid-column: 1; grid-row: 1 / span 3; align-self: start; margin-top: 2px; width: 44px; height: 44px; border-radius: 10px; }
  .ac-id { grid-column: 2; grid-row: 1; }
  .ac-kicker { display: none; }
  .ac-name { font-size: 1.1rem; margin-top: 0; }
  .ac-desc { grid-row: 2; font-size: .84rem; line-height: 1.35; }
  .is-live .ac-status, .ac-stores { display: none; }
  .ac-links { display: flex; }
  .ac-status { margin-top: 4px; }
  .plaque-row { order: 5; margin: 16px 0 0; flex-direction: column; align-items: flex-start; gap: 10px; }
  .plaque { font-size: .8rem; }
  .tags { gap: 4px 14px; }
  .fact { grid-template-columns: minmax(0, 1fr) 92px; column-gap: 16px; }
  .fact-date, .fact-text { grid-column: 1; }
  .fact-fig { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 1; }
  .mosaic { gap: 6px; }
  .cta-row .btn { flex: 1 1 auto; }
  .showcase { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 20px; align-items: start; }
  .phone-frame { padding: 6px; border-radius: 28px; }
  .phone-screen { border-radius: 23px; }
  .stats li { padding: 11px 0; }
  .stat-n { font-size: 1.85rem; }
  .features { grid-template-columns: 1fr; gap: 20px; }
  .ded-stats { grid-template-columns: 1fr 1fr; }
  .ded-stats li { padding: 18px 12px 18px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--rule); }
  .ded-stats li:nth-child(2n) { padding-left: 14px !important; border-left: 1px solid var(--rule) !important; }
  .fact { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .fact-date { font-size: 1.15rem; }
  .p-facts div { grid-template-columns: 1fr; gap: 4px; }
  .strata-list li { grid-template-columns: 30px minmax(0, 1fr); row-gap: 0; padding: 4px 0; }
  .strata-list i { grid-row: span 2; }
  .era-d { text-align: left; }
  .foot-top { grid-template-columns: 1fr; gap: 24px; }
  .lang-pop { min-width: 240px; }
  .variant-tag { left: 8px; bottom: 8px; height: 30px; font-size: .66rem; gap: 6px; padding-left: 10px; }
  .variant-tag a { height: 22px; padding: 0 8px; }
}
@media (max-width: 640px) and (max-height: 700px) {
  .step--hero .eyebrow { display: none; }
  .step--hero { padding-top: 10px; }
  .title { font-size: clamp(3rem, 14vw, 4rem); }
  .app-card { padding: 9px 0 8px; }
}
@media (max-width: 1023px) and (max-height: 520px) {
  :root { --band-h: 62svh; }
}

/* ---------- Reduced motion: final states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .map.is-hero .map-breath { animation: none; opacity: .8; }
  .lang-offer { transition: none; }
  .step--travel .panel { margin-left: 0; }
  .is-loading .loader { display: none; }
}

@media print {
  .stage, .variant-tag, .loader, .lang, .lang-offer { display: none !important; }
  .step--app { padding: 0; }
  .panel { width: auto; box-shadow: none; }
}

/* ================= v3 — merged design: roadmap cards, richer app panels, galleries, chapter maps on phones ================= */
:root { --panel-w: clamp(470px, 42vw, 640px); }
body { font-size: 1.0625rem; }

/* Logo lockup: stitched tricolour on a tile + wordmark */
.brand { gap: 12px; }
.brand-mark { width: 40px; height: 40px; margin: 0; border-radius: 10px; box-shadow: 0 0 0 1px var(--rule), 0 8px 16px -10px rgba(28, 23, 20, .5); }
.brand-name { font: 600 1.34rem/1 var(--serif); letter-spacing: -.005em; }
.brand-sub { font-size: .74rem; }
.foot-brand .brand-mark { width: 44px; height: 44px; margin: 0 0 10px; }

/* Readability */
.lead { font-size: clamp(1.12rem, .95rem + .45vw, 1.34rem); line-height: 1.55; }
.hud-cap, .hero-cap { font-size: .95rem; }
.legend { font-size: .92rem; }
.eyebrow, .ch-kicker { font-size: .8rem; }

/* Roadmap cards (from «Вкладки») */
.overview { gap: clamp(12px, 1.3vw, 18px); }
.rc {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px 22px 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--rule); box-shadow: 0 30px 50px -40px rgba(40, 25, 10, .55);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .3s;
}
.rc::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); transform: scaleX(.2); transform-origin: left; transition: transform .6s var(--ease); }
.rc:hover { transform: translateY(-5px); box-shadow: 0 40px 60px -36px rgba(40, 25, 10, .6); border-color: var(--rule-2); }
.rc:hover::before { transform: none; }
.rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rc-top .app-icon { width: 54px; height: 54px; border-radius: 13px; flex: none; box-shadow: 0 0 0 1px var(--rule), 0 8px 18px -10px rgba(0, 0, 0, .45); }
.rc-status { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 6px; background: var(--paper-2); font: 600 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; flex: none; }
.rc-status i { width: 7px; height: 7px; border-radius: 50%; background: #2E8B57; }
.rc-status.is-soon { background: #F4E4DA; color: var(--copper); }
.rc-status.is-soon i { background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
.panel--night .rc-status.is-soon { background: rgba(224, 149, 106, .14); color: var(--copper-l); }
.rc-kicker { font: italic 500 1rem/1.2 var(--serif); color: color-mix(in srgb, var(--accent) 82%, #000); }
.rc-name { font: 600 clamp(1.28rem, 1.05rem + .6vw, 1.6rem)/1.12 var(--serif); letter-spacing: -.012em; margin: 3px 0 6px; }
.rc-link { color: inherit; text-decoration: none; }
.rc-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; z-index: 1; }
.rc-link:focus-visible { outline: none; }
.rc-link:focus-visible::after { outline: 2px solid var(--red); outline-offset: 3px; }
.rc-sub { font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.rc-plat { font-size: .88rem; color: var(--ink-3); margin-top: 4px; }
.rc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); }
.rc-sub + .rc-plat + .rc-foot, .rc-plat + .rc-foot { margin-top: 16px; }
.rc-stat b { display: block; font: 600 1.85rem/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.rc-stat span { font-size: .86rem; color: var(--ink-3); }
.rc-more { display: inline-flex; align-items: center; gap: 6px; font: 600 .92rem/1 var(--sans); color: color-mix(in srgb, var(--accent) 82%, #000); white-space: nowrap; }
.rc-more svg { transition: transform .3s var(--ease); }
.rc:hover .rc-more svg { transform: translateX(4px); }
.rc-stores { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font: 600 .88rem/1 var(--sans); }
.rc-stores a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .3em; }
.rc-stores a:hover { text-decoration-color: currentColor; }
.rc-stores span { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-3); }

/* App panels: bigger type, v2 details */
.panel { border-radius: 12px; padding: clamp(28px, 2.6vw, 46px); }
.panel::before { left: 28px; width: 72px; border-radius: 0 0 3px 3px; }
.ch-word { font-size: clamp(2.9rem, 1.6rem + 3.2vw, 4.8rem); margin: 10px 0 22px -.02em; }
.app-id { gap: 14px; }
.app-id > div { flex: 1; min-width: 0; }
.app-name { font: 600 1.38rem/1.2 var(--serif); }
.app-plat { font-size: .92rem; }
.ch-title { font: 600 clamp(1.6rem, 1.2rem + 1.1vw, 2.3rem)/1.15 var(--serif); letter-spacing: -.015em; margin-top: 26px; }
.ptags { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font: 600 .74rem/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.ptags li { display: inline-flex; align-items: center; gap: 8px; }
.ptags li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent); }
.ch-text { font-size: 1.12rem; line-height: 1.66; margin-top: 16px; }
.status { margin-top: 18px; font-size: 1rem; }
.stores { margin-top: 24px; }
.badge img { height: 50px; }
.feat dt { font-size: 1.12rem; }
.feat dd { font-size: 1rem; line-height: 1.58; }

/* Stats as tiles */
.showcase { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; margin-top: 34px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats li, .stats li:last-child { padding: 14px 14px 12px; border: 1px solid var(--rule); border-radius: 8px; background: color-mix(in srgb, var(--card) 60%, #fff); }
.panel--night .stats li { background: rgba(255, 255, 255, .04); }
.stat-n { font-size: clamp(1.7rem, 1.25rem + .9vw, 2.3rem); }
.stat-l { font-size: .9rem; }

/* Realistic phone proportions (iPhone 15/16: corner ≈ 14% of the width) */
.phone-frame {
  padding: 2.9%; border-radius: 14.5% / 6.7%;
  background: linear-gradient(150deg, #3b3b3f 0%, #161618 28%, #0c0c0e 64%, #2c2c30 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), 0 0 0 1px rgba(0, 0, 0, .3), 0 34px 60px -28px rgba(28, 23, 20, .55), 0 10px 22px -14px rgba(28, 23, 20, .4);
}
.phone-screen { border-radius: 11.8% / 5.45%; }

/* Gallery of screens + fullscreen viewer */
.gal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--rule); }
.gal-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.gal-h h4 { font: 600 1.18rem/1.2 var(--serif); margin-right: auto; }
.gal-hint { font-size: .86rem; color: var(--ink-3); }
.gal-nav { display: flex; gap: 8px; }
.gal-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rule-2); background: transparent; color: var(--ink); font: 400 1.5rem/1 var(--serif); cursor: pointer; transition: border-color .2s, background .2s; }
.gal-nav button:hover { border-color: var(--ink); background: rgba(255, 255, 255, .06); }
.gal-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.gal-track li { flex: none; scroll-snap-align: start; }
.gal-item { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule), 0 16px 30px -20px rgba(28, 23, 20, .5); transition: transform .3s var(--ease); }
.gal-item:hover { transform: translateY(-3px); }
.gal-item img { display: block; width: clamp(130px, 10.5vw, 158px); height: auto; aspect-ratio: 1320 / 2868; }
.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(14, 10, 8, .94); }
.lb-img { display: block; width: auto; height: auto; max-width: min(92vw, 540px); max-height: calc(100dvh - 110px); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); user-select: none; -webkit-user-drag: none; touch-action: pan-y; }
.lb-btn, .lb-x { position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); color: #fff; font: 400 1.9rem/1 var(--serif); cursor: pointer; }
.lb-btn:hover, .lb-x:hover { background: rgba(255, 255, 255, .16); }
.lb-prev { left: max(14px, 4vw); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(14px, 4vw); top: 50%; transform: translateY(-50%); }
.lb-x { top: 16px; right: 16px; }
.lb-count { position: fixed; left: 0; right: 0; bottom: 22px; text-align: center; font: 600 .9rem/1 var(--sans); letter-spacing: .06em; opacity: .75; }

/* Chapter maps for phones (the big sticky map is desktop-only) */
.mini { display: none; }

@media (min-width: 1024px) and (max-width: 1279px) {
  .rc { padding: 16px 16px 12px; }
  .rc-top .app-icon { width: 46px; height: 46px; border-radius: 11px; }
  .rc-name { font-size: 1.18rem; }
  .rc-sub { font-size: .92rem; }
  .rc-stat b { font-size: 1.5rem; }
  .rc-status { height: 24px; padding: 0 9px; font-size: .62rem; }
  .showcase { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); }
}
@media (min-width: 1024px) and (max-height: 860px) {
  .rc-sub { display: none; }
  .rc-foot { padding-top: 10px; }
  .rc-top { margin-bottom: 8px; }
}

@media (max-width: 1023px) {
  .stage { display: none !important; }
  body { font-size: 1.04rem; }
  .step--hero { grid-template-areas: "head" "mini" "lead" "apps"; }
  .mini { display: block; }
  .mini--hero { grid-area: mini; margin: 14px 0 6px; }
  .mini-map { position: relative; aspect-ratio: 1000 / 655; }
  .mini canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .mini canvas.mini-static { opacity: 0; transition: opacity 1.1s ease; }
  .mini.is-in canvas.mini-static { opacity: 1; }
  .mini-cap { margin-top: 10px; font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
  .mini-cap b { display: block; font: 500 1.25rem/1.2 var(--serif); color: var(--red); margin-bottom: 2px; }
  .mini--hero .mini-cap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
  .mini--hero .counter-n { font-size: 2rem; }
  .step--app .mini { padding: 44px var(--gutter) 6px; border-top: 1px solid var(--rule); }
  .step--app .mini + .panel { border-top: 0; padding-top: 18px; }
  .step--travel .mini { background: #F9F8F5; }
  .mini--history { background: var(--oxblood); color: var(--limestone); border-top: 0 !important; }
  .mini--history .mini-cap { color: var(--limestone); }
  .mini-words { position: absolute; inset: 0; overflow: hidden; }
  .mini-words .word { font-size: 1.05rem; }
  .mini-words .word.is-letter { font-size: 1.7rem; }
  .mini-cities { position: absolute; inset: 0; }
  .mc { position: absolute; display: inline-flex; align-items: center; gap: 5px; transform: translate(-4px, -50%); font: 600 .72rem/1 var(--sans); color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .6s ease; text-shadow: 0 0 6px #F9F8F5, 0 0 2px #F9F8F5; }
  .mc i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #F9F8F5; }
  .mini.is-in .mc { opacity: 1; }
  .mini-sites { position: absolute; inset: 0; }
  .ms { position: absolute; width: 0; height: 0; }
  .ms.is-on::after { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #FFE3B8; animation: ring 1.6s ease-out infinite; }
  @keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
  .mini--history .site-caption { min-height: 2.8em; font-size: 1.05rem; }
  .panel { padding: 30px var(--gutter) 64px; }
  .ch-word { font-size: clamp(2.6rem, 10vw, 3.6rem); margin-bottom: 18px; }
  .ch-text { font-size: 1.07rem; }
  .rc-sub { font-size: .98rem; }
}
@media (min-width: 641px) and (max-width: 1023px) {
  .overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rc { padding: 16px 14px 12px; }
  .rc-top .app-icon { width: 46px; height: 46px; }
  .rc-name { font-size: 1.15rem; }
  .rc-sub { font-size: .9rem; }
  .rc-stat b { font-size: 1.4rem; }
  .rc-more { font-size: .82rem; }
}
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .overview { gap: 12px; border-top: 0; margin-top: 16px; }
  .rc { padding: 16px 16px 12px; border-radius: 10px; }
  .rc::before { left: 18px; right: 18px; }
  .rc-link::after { border-radius: 10px; }
  .rc-top { margin-bottom: 8px; }
  .rc-top .app-icon { width: 48px; height: 48px; border-radius: 11px; }
  .rc-name { font-size: 1.32rem; }
  .rc-stat b { font-size: 1.6rem; }
  .plaque-row { margin-top: 18px; }
  .showcase { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 16px; }
  .stats { grid-template-columns: 1fr; gap: 8px; }
  .stats li, .stats li:last-child { padding: 10px 12px; }
  .stat-n { font-size: 1.6rem; }
  .gal-nav { display: none; }
  .gal-item img { width: 132px; }
  .gal-track { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .lb-btn { top: auto; bottom: 14px; transform: none; width: 48px; height: 48px; }
  .lb-prev { left: 18px; } .lb-next { right: 18px; }
  .lb-count { bottom: 30px; }
  .lb-img { max-height: calc(100dvh - 150px); }
  .badge img { height: 46px; }
}

/* ================= Mini-site: shared page chrome, home page, app pages, author page ================= */
.site-head--page { position: relative; background: var(--paper); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--red); height: 2px; }
.tabs-nav { display: none; }
.wrap { width: min(100% - 2 * var(--gutter), 1240px); }
.ap-sec, .hm-sec { margin-top: clamp(48px, 6vw, 88px); }
.ap h2, .hm h2 { font: 600 clamp(1.7rem, 1.25rem + 1.3vw, 2.5rem)/1.12 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 18px 0 0; font-size: .88rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.mini--always { display: block; }
.mini--always .mini-map { position: relative; aspect-ratio: 1000 / 655; }
.mini--always canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mini--always canvas.mini-static { opacity: 0; transition: opacity 1.1s ease; }
.mini--always.is-in canvas.mini-static { opacity: 1; }
.mini-words { position: absolute; inset: 0; overflow: hidden; }

/* ----- Home ----- */
.hm-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 56px); align-items: center; padding-top: clamp(18px, 3vw, 40px); }
.hm-title { font: 380 clamp(3.6rem, 1.2rem + 6.4vw, 7.6rem)/.92 var(--serif); letter-spacing: -.03em; margin: .16em 0 .18em -.04em; }
.hm-title span { display: inline-block; animation: letter-in 1s var(--ease) both; animation-delay: calc(var(--intro-delay) + 100ms + var(--d)); }
.hm-hero .lead { max-width: 30em; }
.hm-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 22px; }
.hm-hero .cta-row { margin-top: 24px; }
.hm-map { position: relative; }
.hm-map .mini-map { aspect-ratio: 1000 / 655; }
.hm-map .city-p { position: absolute; transform: translate(-50%, -50%); width: 0; height: 0; }
.hm-map .city-p i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(200, 48, 44, .16); opacity: 0; transition: opacity .6s ease var(--cd); }
.hm-map .city-p::after { content: ""; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--red); opacity: 0; }
.hm-map.is-pulse .city-p i { opacity: 1; }
.hm-map.is-pulse .city-p::after { animation: city-ring 3.6s cubic-bezier(.2, .6, .3, 1) infinite; animation-delay: var(--cd); }
@keyframes city-ring { 0% { transform: scale(.3); opacity: .9; } 70% { opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
.hm-map .city-p b { position: absolute; left: 10px; top: -9px; font: 600 .78rem/1 var(--sans); letter-spacing: .02em; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .6s ease var(--cd); text-shadow: 0 0 6px var(--paper), 0 0 2px var(--paper); }
.hm-map .city-p.l b { left: auto; right: 10px; }
.hm-map.is-pulse .city-p b { opacity: .9; }
.hm-overview { margin-top: clamp(26px, 3.4vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 18px); }
.hm-plaque { margin-top: clamp(26px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.hm-ded { margin-top: clamp(56px, 7vw, 104px); padding: clamp(36px, 4vw, 56px) 0; border-block: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hm-ded .ded-quote p { font: italic 400 clamp(1.5rem, 1.1rem + 1.2vw, 2.3rem)/1.25 var(--serif); letter-spacing: -.01em; }
.hm-ded p.ded-text { font-size: 1.04rem; color: var(--ink-2); line-height: 1.6; }

/* App showcase on the home page */
.hm-app { margin-top: clamp(56px, 7vw, 104px); display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.hm-app--flip .hm-vis { order: 2; }
.hm-vis { position: sticky; top: 24px; border-radius: 14px; padding: clamp(22px, 2.6vw, 40px); background: color-mix(in srgb, var(--accent) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); overflow: hidden; }
.hm-vis-top { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: center; }
.hm-vis .mini { opacity: .9; }
.hm-vis .gal { margin-top: 22px; padding-top: 18px; border-top-color: color-mix(in srgb, var(--accent) 20%, transparent); }
.hm-vis .gal-item img { width: clamp(92px, 7.4vw, 118px); }
.hm-copy .ch-kicker { margin-bottom: 14px; }
.hm-copy h2 { margin-top: 22px; }
.hm-copy .ch-text { max-width: 36em; }
.hm-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin-top: 26px; }
.hm-feats div { padding-top: 12px; border-top: 1px solid var(--rule); }
.hm-feats dt { font: 600 1.08rem/1.3 var(--serif); }
.hm-feats dd { margin-top: 4px; font-size: .97rem; line-height: 1.55; color: var(--ink-2); }
.hm-copy .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; }
.hm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.hm-actions .stores { margin-top: 0; }
.link-more { display: inline-flex; align-items: center; gap: 8px; min-height: var(--btn-h); padding: 10px 22px; border-radius: 6px; border: 1px solid var(--rule-2); font: 600 .95rem/1.2 var(--sans); color: var(--ink); text-decoration: none; transition: border-color .25s, background .25s; }
.link-more:hover { border-color: var(--ink); background: rgba(255, 255, 255, .5); }
.link-more svg { transition: transform .3s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }
.hm-night { margin-top: clamp(56px, 7vw, 104px); background: radial-gradient(120% 90% at 20% 0%, #3A1E1C 0%, #1D0F10 55%, #160B0C 100%); color: var(--limestone); padding: clamp(48px, 6vw, 88px) 0;
  --ink: var(--limestone); --ink-2: #DCCDC5; --ink-3: #C2AA9E; --rule: rgba(241, 236, 233, .14); --rule-2: rgba(241, 236, 233, .3); --card: #2A1617; }
.hm-night .hm-app { margin-top: 0; }
.hm-night .hm-vis { background: rgba(255, 255, 255, .03); border-color: rgba(224, 149, 106, .2); }
.hm-night .stats li { background: rgba(255, 255, 255, .04); }
.hm-night .link-more:hover { background: rgba(255, 255, 255, .06); }
.hm-night .strata-list li { font-size: .92rem; }
.hm-night .review { margin-top: 22px; }
.hm-facts { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.hm-facts .facts-list { margin: 0; }
.hm-author { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hm-author .portrait { max-width: 380px; }
.hm-author h2 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); margin: 12px 0 8px; }

/* ----- App pages ----- */
.ap-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 72px); align-items: center; padding-top: clamp(20px, 3vw, 44px); }
.ap-kicker { font: 600 .8rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 80%, #000); }
.page--history .ap-kicker { color: var(--copper); }
.ap-id { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.ap-id .app-icon, .ap-cta-id .app-icon { width: 72px; height: 72px; border-radius: 17px; flex: none; box-shadow: 0 0 0 1px var(--rule), 0 12px 24px -12px rgba(0, 0, 0, .45); }
.ap-name { font: 600 1.4rem/1.15 var(--serif); }
.ap-store { font-size: .95rem; color: var(--ink-3); margin-top: 3px; }
.ap-h1 { font: 600 clamp(2.1rem, 1.4rem + 2.4vw, 3.6rem)/1.06 var(--serif); letter-spacing: -.025em; margin-top: 26px; text-wrap: balance; }
.ap-intro { margin-top: 18px; font-size: clamp(1.1rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.ap-status { margin-top: 16px; padding: 14px 18px; border-radius: 8px; background: #F4E4DA; color: #5A2A15; font-size: 1rem; }
.ap-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.ap-visual .mini { position: absolute; inset: 0; display: grid; place-items: center; opacity: .55; }
.ap-visual .mini .mini-map { width: 100%; }
.ap-phone { position: relative; width: min(280px, 70vw); }
.stats--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ap-gal .gal-item img { width: clamp(150px, 15vw, 210px); }
.ap-gal { border-top: 0; padding-top: 0; }
.ap-gal h2 { margin-right: auto; }
.ap-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.ap-split h2 { margin-bottom: 16px; }
.ap-split p { font-size: 1.04rem; line-height: 1.65; color: var(--ink-2); }
.ap-list li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--rule); font-size: 1.04rem; }
.ap-list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent); }
.ap-priv .principles { margin-top: 16px; }
.ap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: 22px; }
.ap-in { padding: 18px 0; border-top: 1px solid var(--rule); }
.ap-in dt { font: 600 1.1rem/1.3 var(--serif); }
.ap-in dd { margin-top: 6px; font-size: .98rem; line-height: 1.55; color: var(--ink-2); }
.ap-arts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 44px) clamp(28px, 4vw, 64px); }
.ap-art h3 { font: 600 1.35rem/1.2 var(--serif); margin-bottom: 10px; }
.ap-art p { font-size: 1.04rem; line-height: 1.68; color: var(--ink-2); }
.ap-faq { max-width: 860px; }
.ap-faq h2 { margin-bottom: 14px; }
.ap-q { border-top: 1px solid var(--rule); }
.ap-q:last-child { border-bottom: 1px solid var(--rule); }
.ap-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.ap-q summary::-webkit-details-marker { display: none; }
.ap-q summary h3 { font: 600 1.12rem/1.35 var(--serif); }
.ap-q summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--ink-3); transition: transform .3s var(--ease); flex: none; }
.ap-q[open] summary::after { transform: rotate(45deg); }
.ap-q p { padding: 0 0 20px; font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); max-width: 46em; }
.ap-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 36px; align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: 12px; background: var(--card); border: 1px solid var(--rule); }
.ap-cta-id { display: flex; align-items: center; gap: 14px; }
.ap-cta-stores .stores, .ap-cta-stores .cta-row { margin-top: 0; }
.ap-docs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: .92rem; }
.ap-docs a { color: var(--ink-2); }
.ap-more .overview--more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.overview--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.ap-author-link { margin-top: 18px; }
.ap-author-link a { font-weight: 600; color: var(--ink); }
.ap-strata { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: clamp(28px, 3vw, 44px); border-radius: 12px; background: var(--oxblood); color: var(--limestone);
  --ink: var(--limestone); --ink-3: #C2AA9E; --rule: rgba(241, 236, 233, .14); }
.ap-strata h2 { color: var(--limestone); }
.ap-strata .strata-list { margin-top: 16px; }
.page--author .ap { padding-bottom: 0; }
.au-hero { margin-top: clamp(20px, 3vw, 40px); }
.au-hero h1 { font: 500 clamp(2.6rem, 1.6rem + 3vw, 4.4rem)/1 var(--serif); letter-spacing: -.03em; margin: 14px 0 10px; }
.ap-h2 { margin-bottom: 4px; }
.page .partners { margin-top: clamp(56px, 7vw, 104px); }

@media (max-width: 1023px) {
  .site-head--page { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--rule); }
  .tabs-nav { display: block; position: sticky; top: var(--head-h); z-index: 39; background: rgba(245, 244, 240, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
  .tabs-in { display: flex; gap: 4px; overflow-x: auto; padding: 8px var(--gutter); scrollbar-width: none; }
  .tabs-in::-webkit-scrollbar { display: none; }
  .tabs-nav a { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 6px; font: 600 .9rem/1 var(--sans); color: var(--ink-2); text-decoration: none; border: 1px solid transparent; }
  .tabs-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
  .hm-hero, .ap-hero, .hm-app, .hm-facts, .hm-author, .ap-split, .ap-arts, .ap-strata, .hm-ded { grid-template-columns: 1fr; }
  .hm-app--flip .hm-vis { order: 0; }
  .hm-vis { position: relative; top: auto; }
  .hm-overview { grid-template-columns: 1fr; }
  .ap-grid { grid-template-columns: 1fr 1fr; }
  .ap-cta { grid-template-columns: 1fr; }
  .ap-more .overview--more, .overview--3 { grid-template-columns: 1fr !important; }
  .ap-visual { min-height: 0; padding: 10px 0; }
  .ap-visual .mini { opacity: .35; }
  .stats--row, .hm-copy .stats { grid-template-columns: 1fr 1fr; }
  .hm-map { margin-inline: -6px; }
}
@media (max-width: 640px) {
  .hm-vis { padding: 16px; border-radius: 12px; }
  .hm-vis-top { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 14px; }
  .hm-feats, .ap-grid { grid-template-columns: 1fr; }
  .hm-vis .gal-track, .ap-gal .gal-track { margin-inline: 0; padding-inline: 0; }
  .hm-vis .gal-item img { width: 96px; }
  .ap-gal .gal-item img { width: 140px; }
  .gal-track { margin-inline: 0 !important; padding-inline: 0 !important; }
  .ap-id .app-icon { width: 60px; height: 60px; border-radius: 14px; }
  .ap-h1 { font-size: 2rem; }
  .hm-title { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  .ap-phone { width: min(230px, 64vw); }
  .app-id .rc-status { display: none; }
  .mosaic figcaption { font-size: .62rem; letter-spacing: .04em; }
}

/* Loader: the border of Bulgaria draws itself, fills with the tricolour, the title rises (first visit per session, ~1.5 s) */
.loader--outline .lo-map { width: min(70vw, 520px); height: auto; overflow: visible; }
.loader--outline .lo-line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: lo-draw 1s cubic-bezier(.6, .1, .3, 1) .05s forwards; }
.loader--outline .lo-fill { opacity: 0; animation: lo-fill .5s ease .85s forwards; }
.is-loading .loader--outline { animation: loader-out .45s cubic-bezier(.6, 0, .3, 1) 1.45s forwards; }
.loader--outline .loader-title { animation-delay: .7s; }
@keyframes lo-draw { to { stroke-dashoffset: 0; } }
@keyframes lo-fill { to { opacity: 1; } }
.page--home .reveal, .page--home .hm-title span { animation-delay: calc(var(--intro-delay) + var(--d, 0ms)); }
.is-loading .page--home, .is-loading { --intro-delay: 1500ms; }
/* Hero map: outline traces around the country once the dots are in */
.hm-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hm-outline path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .55; }
.hm-map.is-in .hm-outline path { animation: lo-draw 2.6s cubic-bezier(.45, .1, .25, 1) .3s forwards; }
.hm-cap { margin-top: 12px; }
.hm-cap .counter { gap: 12px; }
@media (prefers-reduced-motion: reduce) { .hm-outline path { stroke-dashoffset: 0; } .loader--outline { display: none !important; } }

.site-head--page .site-nav { gap: clamp(14px, 1.6vw, 26px); }
.site-head--page .site-nav a { white-space: nowrap; }
.hm .kicker, .ap .kicker, .hm h2.kicker { font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.hm-ded .kicker { color: var(--red); margin-bottom: 14px; }
/* chapter-map overlays: shared by phones and the always-on maps (home showcases, app pages) */
.mini-cap { margin-top: 10px; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.mini-cap b { display: block; font: 500 1.15rem/1.2 var(--serif); color: var(--red); margin-bottom: 2px; }
.mini-cities, .mini-sites { position: absolute; inset: 0; }
.mc { position: absolute; display: inline-flex; align-items: center; gap: 5px; transform: translate(-4px, -50%); font: 600 .7rem/1 var(--sans); color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .6s ease; text-shadow: 0 0 6px var(--paper), 0 0 2px var(--paper); }
.mc i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); flex: none; }
.mini.is-in .mc { opacity: 1; }
.ms { position: absolute; width: 0; height: 0; }
.ms.is-on::after { content: ""; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #FFE3B8; animation: ring 1.6s ease-out infinite; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.mini-words .word { font-size: 1rem; }
.mini-words .word.is-letter { font-size: 1.6rem; }
.hm-vis-map .legend { gap: 4px 12px; font-size: .8rem; }
.hm-vis-map .sw { width: 8px; height: 8px; }
.mini--history .site-caption { color: var(--limestone); font-size: 1rem; min-height: 2.8em; }
.hm-vis-map .mc:nth-child(n+5) { display: none; }
/* phones: compact app cards and clean showcases */
@media (max-width: 640px) {
  .rc { display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 14px 14px 10px; }
  .rc-top { display: contents; }
  .rc-top .app-icon { grid-column: 1; grid-row: 1 / span 3; align-self: start; width: 50px; height: 50px; }
  .rc-status { grid-column: 2; justify-self: start; height: 24px; font-size: .62rem; margin-bottom: 4px; }
  .rc-kicker, .rc-name, .rc-sub { grid-column: 2; }
  .rc-name { margin: 0 0 2px; font-size: 1.22rem; }
  .rc-sub { font-size: .92rem; }
  .rc-plat { display: none; }
  .rc-foot { grid-column: 1 / -1; margin-top: 12px; padding-top: 10px; }
  .rc-stat b { font-size: 1.4rem; display: inline; margin-right: 6px; }
  .rc-stores { grid-column: 1 / -1; margin-top: 4px; }
  .hm-vis-top { grid-template-columns: 1fr; justify-items: center; }
  .hm-vis-top .phone { width: min(210px, 60vw); }
  .hm-vis-map { display: none; }
  .hm-copy .stats { grid-template-columns: 1fr 1fr; }
  .hm-ded { padding: 28px 0; }
  .hm-actions .stores { width: 100%; }
  .hm-actions .link-more { width: 100%; justify-content: center; }
}
/* Living Bulgarian alphabet (Learn Bulgarian) */
.abc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.abc-grid span { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1 / 1.05; border-radius: 9px; background: rgba(255, 255, 255, .55); border: 1px solid var(--rule); opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .5s ease calc(var(--i) * 45ms), transform .6s var(--ease) calc(var(--i) * 45ms), background .35s, color .35s, border-color .35s; }
.abc-grid b { font: 500 clamp(.95rem, .7rem + .6vw, 1.3rem)/1 var(--serif); }
.abc-grid i { font: 600 .58rem/1 var(--sans); letter-spacing: .04em; color: var(--ink-3); margin-top: 4px; font-style: normal; }
.abc.is-in .abc-grid span { opacity: 1; transform: none; }
.abc-grid span.is-on { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.06); }
.abc-grid span.is-on i { color: rgba(255, 255, 255, .85); }
.abc .mini-cap { margin-top: 12px; }
.abc--big .abc-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.abc--big .abc-grid b { font-size: clamp(1.2rem, .8rem + 1.2vw, 2rem); }
.abc--big .abc-grid i { font-size: .7rem; }
.abc--big .mini-cap b { font-size: 1.5rem; }
@media (max-width: 640px) { .abc--big .abc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .abc-grid span { opacity: 1; transform: none; } }
/* Huawei AppGallery: a plain black store button at the same height as the official badges */
.badge--ag { align-items: center; height: 50px; padding: 0 16px 0 14px; border-radius: 9px; background: #000; color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px #A6A6A6; }
.badge--ag span { display: flex; flex-direction: column; line-height: 1; }
.badge--ag small { font: 600 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.badge--ag b { font: 600 1.18rem/1.05 var(--sans); letter-spacing: -.01em; margin-top: 3px; }
.badge--ag:hover { background: #1a1a1a; }
@media (max-width: 640px) { .badge--ag { height: 46px; } }
/* alignment: label/value rows sit on one baseline; action rows share one height */
.p-facts div { align-items: baseline; padding: 16px 0; }
.p-facts dt { line-height: 1.5; }
.p-facts dd { font-size: 1rem; line-height: 1.5; }
.hm-actions, .ap-cta-stores .stores, .stores { align-items: center; }
.hm-actions .link-more, .stores .badge, .stores .badge img { height: 50px; }
.hm-actions .link-more { min-height: 0; padding-block: 0; }
.app-id { align-items: center; }
.gal-h { align-items: center; }
.rc-foot { align-items: baseline; }
.stats li { display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 640px) { .hm-actions .link-more, .stores .badge, .stores .badge img { height: 46px; } }
/* header: logo + name only, on one optical line */
.brand-sub { display: none !important; }
.brand { gap: 12px; align-items: center; }
.brand-name { line-height: 1; padding-top: 2px; }
/* buttons in one row never wrap their label and share one height */
.cta-row { align-items: center; }
.cta-row > .btn, .cta-row > .soon-store { white-space: nowrap; min-height: 50px; }
/* ---------- Right-to-left (Hebrew, Arabic) ---------- */
:lang(he) { --serif: "Piazzolla", "New Peninim MT", "Times New Roman", "Noto Serif Hebrew", serif; --sans: "Commissioner", "Arial Hebrew", "Noto Sans Hebrew", system-ui, sans-serif; }
:lang(ar) { --serif: "Piazzolla", "Geeza Pro", "Noto Naskh Arabic", "Times New Roman", serif; --sans: "Commissioner", "SF Arabic", "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif; }
:lang(ar) *, :lang(ar) *::before, :lang(ar) *::after { letter-spacing: 0 !important; }
:lang(ar) em, :lang(ar) i, :lang(ar) .rc-kicker, :lang(ar) .fact-date, :lang(ar) .signature, :lang(ar) .ded-quote p,
:lang(he) em, :lang(he) .rc-kicker, :lang(he) .fact-date, :lang(he) .signature, :lang(he) .ded-quote p { font-style: normal; }
[dir="rtl"] .rc-more svg, [dir="rtl"] .link-more svg { transform: scaleX(-1); }
[dir="rtl"] .rc:hover .rc-more svg, [dir="rtl"] .link-more:hover svg { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .crumbs span[aria-hidden] { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .rc::before { transform-origin: right; }
[dir="rtl"] .ap-list li { padding: 12px 22px 12px 0; }
[dir="rtl"] .ap-list li::before { left: auto; right: 2px; }
[dir="rtl"] .eyebrow::before, [dir="rtl"] .kicker::before { order: 0; }
[dir="rtl"] .lb-prev { left: auto; right: max(14px, 4vw); }
[dir="rtl"] .lb-next { right: auto; left: max(14px, 4vw); }
[dir="rtl"] .gal-nav { flex-direction: row-reverse; }
[dir="rtl"] .counter, [dir="rtl"] .hm-cap { direction: rtl; }
[dir="rtl"] .mini-map, [dir="rtl"] .hm-outline, [dir="rtl"] .lo-map { direction: ltr; }
/* gallery header: title and arrows never collide */
.gal-h { flex-wrap: nowrap; }
.gal-h .gal-title, .gal-h h2, .gal-h h4 { flex: 1 1 auto; min-width: 0; margin-right: 0; font: 600 1.18rem/1.25 var(--serif); letter-spacing: -.005em; }
.ap-gal .gal-h h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); }
.gal-h .gal-hint { flex: none; }
.gal-nav { flex: none; }
@media (max-width: 640px) { .gal-h .gal-hint { display: none; } }
/* fullscreen viewer: solid dark stage regardless of ::backdrop support */
.lb { background: rgba(12, 9, 8, .97); }
.lb::backdrop { background: rgba(12, 9, 8, .97); }
.lb-img { background: #fff; }
.ap .ded-quote { margin: 4px 0 20px; max-width: none; }
.ap .ded-quote p { font: italic 400 clamp(1.45rem, 1.1rem + 1.1vw, 2.1rem)/1.28 var(--serif); letter-spacing: -.01em; color: var(--ink); max-width: 24em; }
.ap-split .ap-priv > p { max-width: 38em; }
/* hero map: calm silhouette, legible city labels on paper pills */
.hm-outline path { stroke-width: 1.2; opacity: .45; }
.hm-map .city-p b { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px rgba(28, 23, 20, .1), 0 4px 10px -6px rgba(28, 23, 20, .35); top: -12px; left: 12px; text-shadow: none; font-size: .76rem; }
.hm-map .city-p.l b { left: auto; right: 12px; }
.hm-map .city-p i { width: 9px; height: 9px; left: -4.5px; top: -4.5px; background: var(--ink); box-shadow: 0 0 0 2.5px #FCFBF8; }
.hm-map .city-p::after { border-color: rgba(179, 38, 42, .7); }
@keyframes city-ring { 0% { transform: scale(.35); opacity: .8; } 60% { opacity: 0; } 100% { transform: scale(1.6); opacity: 0; } }
.hm-map.is-pulse .city-p::after { animation-duration: 4.2s; }
.badge--ag { gap: 10px; padding: 0 16px 0 10px; }
.badge--ag svg { flex: none; display: block; }
.badge--ag small { text-transform: none; letter-spacing: .01em; font-size: .64rem; font-weight: 500; opacity: .92; }
.badge--ag b { font-size: 1.12rem; margin-top: 2px; }
/* alphabet: the letter pair is sized from the cell itself, so wide letters (Шш, Щщ, Жж) always fit */
.abc-grid span { container-type: inline-size; overflow: hidden; padding: 0 2px; }
.abc-grid b, .abc--big .abc-grid b { font-size: clamp(.7rem, 34cqw, 2rem); letter-spacing: -.01em; white-space: nowrap; }
.abc-grid i, .abc--big .abc-grid i { font-size: clamp(.5rem, 15cqw, .72rem); }
/* arrow buttons: drawn chevrons, optically centred */
.gal-nav button, .lb-btn { display: inline-grid; place-items: center; padding: 0; line-height: 0; }
.gal-nav button svg, .lb-btn svg { display: block; }
[dir="rtl"] .gal-nav button svg, [dir="rtl"] .lb-btn svg { transform: scaleX(-1); }

/* =====================================================================
   v5 · Loader: the country is drawn, the flag fills stripe by stripe,
   the name settles, then a paper curtain with a tricolour edge lifts.
   ===================================================================== */
.loader--outline { background: var(--paper); }
.loader--outline::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(#FFFFFF 0 33.4%, #00966E 33.4% 66.7%, #D62612 66.7%); box-shadow: 0 -1px 0 rgba(28, 23, 20, .1); }
.is-loading .loader--outline { animation: lo-curtain .85s cubic-bezier(.76, 0, .24, 1) 1.6s forwards; }
.lo-in { display: flex; flex-direction: column; align-items: center; animation: lo-lift .55s cubic-bezier(.6, 0, .4, 1) 1.5s forwards; }
.loader--outline .lo-map { width: min(62vw, 360px); filter: drop-shadow(0 18px 22px rgba(28, 23, 20, .12)); }
.loader--outline .lo-line { stroke-width: 5.5; animation: lo-draw .9s cubic-bezier(.6, .1, .3, 1) .05s forwards; }
.lo-s { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); animation: lo-stripe .6s cubic-bezier(.65, 0, .25, 1) forwards; }
.lo-s1 { animation-delay: .5s; } .lo-s2 { animation-delay: .6s; } .lo-s3 { animation-delay: .7s; }
.loader--outline .loader-title { margin-top: clamp(20px, 3.4vh, 32px); font: 400 clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem)/1 var(--serif); letter-spacing: .01em;
  opacity: 0; animation: lo-title .8s cubic-bezier(.2, .7, .2, 1) .72s forwards; }
.lo-rule { display: block; width: 132px; height: 1px; margin: 18px 0 14px; background: var(--ink); opacity: .32; transform: scaleX(0); animation: lo-stripe .7s cubic-bezier(.65, 0, .25, 1) .95s forwards; }
.lo-words { font: 600 .72rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); opacity: 0; animation: lo-fade .6s ease 1.05s forwards; }
@keyframes lo-stripe { to { transform: scaleX(1); } }
@keyframes lo-title { from { opacity: 0; letter-spacing: .2em; transform: translateY(8px); } to { opacity: 1; letter-spacing: .01em; transform: none; } }
@keyframes lo-fade { to { opacity: 1; } }
@keyframes lo-lift { to { opacity: 0; transform: translateY(-28px); } }
@keyframes lo-curtain { to { transform: translateY(-100%); visibility: hidden; } }
.is-loading .page--home, .is-loading { --intro-delay: 1900ms; }
html:lang(ar) .lo-words, html:lang(ar) .loader--outline .loader-title { letter-spacing: 0; animation-name: lo-fade; }

/* =====================================================================
   v5 · Blocks: text sections become outlined cards (all pages)
   ===================================================================== */
:root { --box: #FFFFFF; --box-line: rgba(28, 23, 20, .11); --box-hover: rgba(28, 23, 20, .22); }
.hm-night, .ap-strata, .partners { --box: rgba(255, 255, 255, .045); --box-line: rgba(241, 236, 233, .14); --box-hover: rgba(241, 236, 233, .3); }

/* What's inside: numbered cards */
.ap-grid { gap: 14px; counter-reset: ins; margin-top: 24px; }
.ap-in { counter-increment: ins; position: relative; padding: 20px 22px 22px; border: 1px solid var(--box-line); border-radius: 10px; background: var(--box);
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s; }
.ap-in::before { content: counter(ins, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; height: 24px; min-width: 36px; padding: 0 9px; margin-bottom: 14px;
  border-radius: 6px; border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent);
  font: 600 .7rem/1 var(--sans); letter-spacing: .1em; color: color-mix(in srgb, var(--accent) 78%, #000); font-variant-numeric: tabular-nums; }
.ap-in:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); box-shadow: 0 16px 32px -24px rgba(28, 23, 20, .45); }
.ap-in dt { font-size: 1.12rem; }

/* Long reads: tinted cards with an accent edge */
.ap-arts { gap: 16px; }
.ap-art { position: relative; padding: clamp(24px, 2.6vw, 34px); padding-inline-start: calc(clamp(24px, 2.6vw, 34px) + 6px); border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 5%, var(--box)); border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--box-line)); }
.ap-art::before { content: ""; position: absolute; inset-block: 26px; inset-inline-start: -1px; width: 3px; border-radius: 3px; background: var(--accent); }
.ap-art h3 { font-size: 1.3rem; }
.ap-art p { font-size: 1.02rem; }

/* Two-column panels (who it is for / privacy; dedication / principles) */
.ap-split { gap: 16px; align-items: stretch; }
.ap-split > div { padding: clamp(24px, 2.6vw, 36px); border-radius: 12px; border: 1px solid var(--box-line); background: var(--box); }
.ap-split > .ap-priv { background: color-mix(in srgb, var(--green) 5%, var(--box)); border-color: color-mix(in srgb, var(--green) 20%, var(--box-line)); }
.ap-split .ap-list li:first-child { border-top: 0; padding-top: 4px; }
.ap-split .ap-list li:first-child::before { top: calc(4px + .62em); }
.ap-split .principles { max-width: none; }
.ap-split .principles li:last-child { border-bottom: 0; padding-bottom: 0; }
.ap-aud > .principles:first-child { margin-top: 0; border-top: 0; }
.ap-aud > .principles:first-child li:first-child { padding-top: 0; }
.ap-split .ded-quote { margin-top: 18px; }
.ap-split .ded-quote p { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }

/* FAQ: each question is its own card */
.ap-faq h2 { margin-bottom: 18px; }
.ap-q, .ap-q:last-child { border: 1px solid var(--box-line); border-radius: 10px; background: var(--box); padding: 0 clamp(16px, 2vw, 24px); transition: border-color .3s, box-shadow .3s; }
.ap-q + .ap-q { margin-top: 10px; }
.ap-q:hover { border-color: var(--box-hover); }
.ap-q[open] { border-color: color-mix(in srgb, var(--accent) 38%, transparent); box-shadow: 0 16px 34px -28px rgba(28, 23, 20, .5); }
.ap-q summary { padding: 16px 0; min-height: 60px; }
.ap-q summary::after { content: ""; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule-2);
  background: linear-gradient(var(--ink-2), var(--ink-2)) center / 12px 1.6px no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) center / 1.6px 12px no-repeat;
  transition: transform .35s var(--ease), border-color .3s, background-color .3s; }
.ap-q[open] summary::after { transform: rotate(45deg); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background-color: color-mix(in srgb, var(--accent) 9%, transparent); }
.ap-q p { padding-bottom: 20px; }

/* Home: feature pairs, dedication, facts */
.hm-feats { gap: 12px; }
.hm-feats div { padding: 16px 18px 17px; border: 1px solid var(--box-line); border-top: 1px solid var(--box-line); border-radius: 10px; background: var(--box); transition: border-color .3s; }
.hm-feats div:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.hm-feats dt { font-size: 1.04rem; }
.hm-feats dd { font-size: .95rem; }
.hm-ded { border-block: 0; padding: clamp(28px, 3.4vw, 52px); border-radius: 14px; border: 1px solid var(--box-line); background: var(--box); position: relative; overflow: hidden; }
.hm-ded::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(#FFFFFF 0 33.4%, #00966E 33.4% 66.7%, #D62612 66.7%); }
.facts-list, .hm-facts .facts-list { border-top: 0; display: grid; gap: 12px; }
.fact { padding: clamp(16px, 1.8vw, 22px); border: 1px solid var(--box-line); border-radius: 12px; background: var(--box); transition: border-color .3s, box-shadow .35s; }
.fact:hover { border-color: var(--box-hover); box-shadow: 0 18px 36px -30px rgba(28, 23, 20, .5); }
.fact-fig { border-radius: 12px; }
.hm-night .hm-vis { border-radius: 14px; }
.ap-strata .strata-list li { padding: 2px 0; }
.review { padding: 18px 22px; border: 1px solid var(--box-line); border-radius: 10px; background: var(--box); }

/* Partners: facts as a framed panel */
.p-facts { border: 1px solid var(--box-line); border-radius: 12px; padding: 6px 22px; background: var(--box); }
.p-facts div:last-child { border-bottom: 0; }

/* Footer: no-cookies line as a quiet pill link */
.foot-priv { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--rule-2); border-radius: 6px; color: var(--ink-2); text-decoration: none; transition: border-color .25s, color .25s; }
.foot-priv i { width: 18px; height: 18px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--green) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 45%, transparent); position: relative; }
.foot-priv i::after { content: ""; position: absolute; left: 6px; top: 4px; width: 4px; height: 7px; border: solid var(--green); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.foot-priv:hover { border-color: var(--ink); color: var(--ink); }

/* =====================================================================
   v5 · Privacy & cookies page
   ===================================================================== */
.pv-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(20px, 3vw, 44px); }
.pv-hero .ap-h1 { margin-top: 18px; }
.pv-facts { display: grid; gap: 10px; }
.pv-facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px 22px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--green) 22%, var(--box-line));
  background: color-mix(in srgb, var(--green) 5%, var(--box)); }
.pv-n { font: 400 clamp(2.4rem, 1.8rem + 1.6vw, 3.2rem)/1 var(--serif); color: var(--green); font-variant-numeric: lining-nums; min-width: 1.1ch; text-align: center; }
.pv-k { font: 600 .98rem/1.3 var(--sans); color: var(--ink); }
.pv-list { display: grid; gap: 14px; margin-top: clamp(40px, 5vw, 72px); }
.pv-sec { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 14px clamp(24px, 3vw, 48px); padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--box-line); border-radius: 12px; background: var(--box); }
.pv h2 { font: 600 1.3rem/1.25 var(--serif); letter-spacing: -.01em; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pv-i { display: inline-flex; align-items: center; justify-content: center; height: 24px; min-width: 36px; padding: 0 9px; border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--green) 34%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent);
  font: 600 .7rem/1 var(--sans); letter-spacing: .1em; color: color-mix(in srgb, var(--green) 80%, #000); }
.pv-body > * + * { margin-top: 14px; }
.pv-body p { font-size: 1.03rem; line-height: 1.68; color: var(--ink-2); max-width: 44em; }
.pv-body a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--green) 60%, transparent); text-underline-offset: 3px; }
.pv-table { border: 1px solid var(--box-line); border-radius: 8px; overflow: hidden; background: #fff; }
.pv-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pv-table th { text-align: start; font: 600 .7rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 12px 16px; background: color-mix(in srgb, var(--paper) 70%, #fff); border-bottom: 1px solid var(--box-line); }
.pv-table td { padding: 14px 16px; vertical-align: top; line-height: 1.5; color: var(--ink-2); }
.pv-table td:nth-child(3) { width: 44%; } .pv-table td:nth-child(4) { width: 24%; }
.pv-table tr + tr td { border-top: 1px solid var(--box-line); }
.pv-table code { font: 500 .86rem/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); background: color-mix(in srgb, var(--green) 8%, transparent); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.pv-after { font-size: .95rem !important; color: var(--ink-3) !important; }
.pv-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pv-apps a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border: 1px solid var(--box-line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .25s, transform .3s var(--ease); }
.pv-apps a:hover { border-color: var(--ink); transform: translateY(-1px); }
.pv-apps img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); }
.pv-apps b { display: block; font: 600 .95rem/1.25 var(--serif); }
.pv-apps small { display: block; margin-top: 2px; font-size: .8rem; color: var(--ink-3); }
.pv-apps svg { color: var(--ink-3); }
[dir="rtl"] .pv-apps svg { transform: scaleX(-1); }
.pv-upd { margin-top: 22px; font-size: .9rem; color: var(--ink-3); }
.page--privacy .site-foot { margin-top: clamp(48px, 6vw, 88px); }
@media (max-width: 1023px) {
  .pv-hero { grid-template-columns: 1fr; }
  .pv-sec { grid-template-columns: 1fr; }
  .pv h2 { flex-direction: row; align-items: center; }
  .pv-apps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pv-table thead { display: none; }
  .pv-table table, .pv-table tbody, .pv-table tr, .pv-table td { display: block; }
  .pv-table tr { padding: 6px 0; }
  .pv-table td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 10px; padding: 8px 14px; border-top: 0 !important; }
  .pv-table tr + tr { border-top: 1px solid var(--box-line); }
  .pv-table td::before { content: attr(data-th); font: 600 .68rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  .ap-in, .hm-feats div { padding: 16px 18px; }
  .ap-art { padding: 22px; padding-inline-start: 26px; }
  .ap-split > div { padding: 22px; }
  .hm-ded { padding: 26px 22px; border-radius: 12px; }
  .p-facts { padding: 4px 16px; }
  .p-facts div { grid-template-columns: 1fr; gap: 4px; }
}

/* =====================================================================
   v5 · Hebrew and Arabic: system faces for the script, no tracking on Arabic
   ===================================================================== */
html:lang(he) { --serif: "Piazzolla", "Times New Roman", "Noto Serif Hebrew", "David", serif; --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif; }
html:lang(ar) { --serif: "Piazzolla", "Times New Roman", "Noto Naskh Arabic", "Geeza Pro", serif; --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif; }
html:lang(ar) body *, html:lang(ar) body *::before, html:lang(ar) body *::after { letter-spacing: 0 !important; }
html:lang(ar) .word, html:lang(he) .word, html:lang(ar) .ded-quote p, html:lang(he) .ded-quote p, html:lang(ar) .fact-date, html:lang(he) .fact-date, html:lang(ar) .signature, html:lang(he) .signature { font-style: normal; }
html:lang(ar) body { line-height: 1.75; }
/* no orphan card at the end of a grid */
@media (min-width: 1024px) {
  .ap-grid > .ap-in:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .ap-grid > .ap-in:last-child:nth-child(3n+2) { grid-column: span 2; }
  .ap-arts > .ap-art:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 1023px) {
  .ap-grid > .ap-in:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.ap-in dd { max-width: 46em; }
/* narrow screens: Varna's label sits under its dot so it never meets Veliko Tarnovo */
@media (max-width: 640px) {
  .hm-map .city-p.c-varna b { left: auto; right: -6px; top: 9px; }
  .hm-map .city-p.c-tarnovo b { left: 0; right: auto; top: -27px; transform: translateX(-50%); }
}
@media (max-width: 640px) { .pv-table td, .pv-table td:nth-child(3), .pv-table td:nth-child(4) { width: auto; } .pv-table td code { justify-self: start; } }
.page--author .ap-split { align-items: start; }
/* 404 */
.page--404 { min-height: 100svh; display: grid; place-items: center; padding: 40px 0; }
.nf { text-align: center; display: flex; flex-direction: column; align-items: center; }
.nf-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 500 1.3rem/1 var(--serif); }
.nf-brand img { border-radius: 14px; }
.nf-code { margin-top: clamp(28px, 5vh, 56px); font: 300 clamp(5rem, 3rem + 8vw, 9rem)/.9 var(--serif); letter-spacing: -.04em; color: var(--ink);
  background: linear-gradient(#1C1714 0 60%, #00966E 60% 80%, #D62612 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nf h1 { margin-top: 14px; font: 600 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.15 var(--serif); }
.nf-en { margin-top: 6px; color: var(--ink-3); font-size: .95rem; }
.nf-text { margin-top: 18px; max-width: 32em; color: var(--ink-2); line-height: 1.6; }
.nf-apps { margin-top: 26px; width: min(100%, 860px); text-align: start; }
.nf-apps a { background: var(--box); }
.nf-apps img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--rule); }
.nf-apps a { grid-template-columns: 44px minmax(0, 1fr) 18px; }
.nf .cta-row { margin-top: 26px; justify-content: center; }
/* language suggestion: docked low on phones, just above the browser bar */
@media (max-width: 640px) { .lang-offer { bottom: calc(8px + env(safe-area-inset-bottom)); left: 8px; right: 8px; padding: 8px 8px 8px 14px; border-radius: 10px; } }
.phone-screen { touch-action: pan-y; }

/* =====================================================================
   v6 · Phone polish
   ===================================================================== */
@media (max-width: 640px) {
  /* history facts: photo on top, text full width below */
  .facts-list, .hm-facts .facts-list { gap: 14px; }
  .fact { display: flex; flex-direction: column; padding: 10px 10px 20px; border-radius: 12px; }
  .fact-fig { order: -1; width: 100%; aspect-ratio: 16 / 10; grid-column: auto; grid-row: auto; margin: 0 0 16px; border-radius: 13px; }
  .fact-date, .fact-text { padding-inline: 8px; }
  .fact-date { font-size: 1.02rem; margin-bottom: 4px; }
  .fact h3 { font-size: 1.32rem; line-height: 1.2; }
  .fact div p { margin-top: 8px; font-size: .98rem; line-height: 1.6; }
}
@media (max-width: 640px) {
  /* swipeable card rows instead of long stacks: features of each app and the history facts */
  .hm-feats, .facts-list, .hm-facts .facts-list {
    display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
  }
  .hm-feats::-webkit-scrollbar, .facts-list::-webkit-scrollbar { display: none; }
  .hm-feats > div { flex: 0 0 76%; scroll-snap-align: start; display: flex; flex-direction: column; }
  .facts-list > .fact { flex: 0 0 84%; scroll-snap-align: start; }
  .hm-feats dd { flex: 1; }
  .hm-facts { gap: 18px; }
  .facts-head { position: static; }
}
@media (max-width: 1023px) {
  .hm-app, .hm-facts, .hm-author, .hm-hero, .ap-hero, .ap-split, .ap-arts, .hm-ded { grid-template-columns: minmax(0, 1fr); }
  .hm-copy, .hm-vis, .hm-facts > * { min-width: 0; }
}
@media (max-width: 640px) {
  .hm-author .portrait, .au-hero .portrait { width: min(62%, 250px); }
  .hm-author .portrait-mat, .au-hero .portrait-mat { padding: 10px; }
  .foot-priv { border-radius: 8px; }
}
.art-more { display: none; }
@media (max-width: 640px) {
  .page .crumbs { display: none; }
  .ap-hero { padding-top: 18px; }
  /* what's inside: the number sits beside the title */
  .ap-in { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 15px 16px 16px; }
  .ap-in::before { grid-row: 1 / span 2; margin: 0; align-self: start; }
  .ap-in dt, .ap-in dd { grid-column: 2; }
  .ap-grid { gap: 10px; }
  /* long reads fold to five lines */
  .ap-art:not(.is-open) p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .art-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 40px; padding: 0 16px; border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: transparent; color: var(--ink);
    font: 600 .88rem/1 var(--sans); cursor: pointer; }
  .art-more[hidden] { display: none; }
  .art-more::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); }
  .ap-arts { gap: 12px; }
}
@media (max-width: 640px) { .ap-visual .mini { display: none; } .ap-visual { padding-top: 18px; } }

/* =====================================================================
   v7 · Composition: author card on the home page, calmer rhythm
   ===================================================================== */
.hm-author { display: block; }
.au-card { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 3vw, 44px); border-radius: 14px; border: 1px solid var(--box-line); background: var(--box); position: relative; overflow: hidden; }
.au-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(#FFFFFF 0 33.4%, #00966E 33.4% 66.7%, #D62612 66.7%); }
.au-card .portrait { max-width: none; margin: 0; }
.au-card .portrait-mat { box-shadow: 0 30px 60px -40px rgba(28, 23, 20, .5); }
.au-card .author-text h2 { font-size: clamp(2.1rem, 1.5rem + 1.8vw, 3.1rem); margin: 10px 0 6px; }
.au-card .author-text > p:not(.kicker):not(.role):not(.signature) { margin-top: 14px; font-size: 1.04rem; line-height: 1.68; max-width: 40em; }
.au-card .au-heart { padding-inline-start: 16px; border-inline-start: 3px solid var(--red); color: var(--ink) !important; }
.au-card .signature { margin-top: 18px; font-size: clamp(1.4rem, 1.1rem + .8vw, 1.8rem); }
.au-card .cta-row { margin-top: 22px; }

/* calmer vertical rhythm: fewer empty gaps between sections */
.ap-sec, .hm-sec { margin-top: clamp(40px, 4.6vw, 68px); }
.hm-app, .hm-ded, .hm-night { margin-top: clamp(40px, 5vw, 76px); }
.hm-night { padding: clamp(36px, 4.6vw, 68px) 0; }
.hm-night .hm-app { margin-top: 0; }
.page .partners { margin-top: clamp(44px, 5vw, 76px); padding: clamp(48px, 6vw, 88px) 0; }
.site-foot { padding: 52px 0 64px; }
.hm-overview { margin-top: clamp(20px, 2.4vw, 32px); }
.hm-plaque { margin-top: clamp(20px, 2.4vw, 32px); }
.page--privacy .site-foot { margin-top: clamp(40px, 4.6vw, 68px); }

@media (max-width: 1023px) {
  .au-card { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .au-card { grid-template-columns: 1fr; gap: 20px; padding: 26px 18px 22px; border-radius: 12px; text-align: start; }
  .au-card .portrait { width: min(62%, 240px); margin-inline: auto; }
  .au-card .author-text h2 { font-size: 2.1rem; }
  .au-card .cta-row .btn { flex: 1 1 auto; }
}
@media (max-width: 640px) { .pager button { width: 34px; height: 34px; } }
/* alphabet: one compact card — title on the side, letters beside it */
.ap-abc .abc--big { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px clamp(24px, 3vw, 48px); align-items: center;
  padding: clamp(20px, 2.4vw, 32px); border-radius: 12px; border: 1px solid color-mix(in srgb, var(--red) 16%, var(--box-line)); background: color-mix(in srgb, var(--red) 4%, var(--box)); }
.ap-abc .abc--big .mini-cap { order: -1; margin: 0; }
.ap-abc .abc--big .mini-cap b { display: block; font: 500 clamp(1.5rem, 1.1rem + 1vw, 2.1rem)/1.15 var(--serif); color: var(--red); margin-bottom: 8px; }
.ap-abc .abc--big .abc-grid span { aspect-ratio: 1 / 1; background: #fff; }
/* FAQ beside the download card */
.ap-faq-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(24px, 3vw, 44px); align-items: start; }
.ap-faq-cta .ap-faq { max-width: none; }
.ap-faq-cta .ap-cta { position: sticky; top: 24px; grid-template-columns: 1fr; gap: 18px; margin-top: 56px; }
.ap-faq-cta .ap-cta-stores .stores { flex-wrap: wrap; }
.ap-faq-cta .ap-cta-docs { padding-top: 16px; border-top: 1px solid var(--box-line); }
@media (max-width: 1023px) {
  .ap-faq-cta { grid-template-columns: minmax(0, 1fr); }
  .ap-faq-cta .ap-cta { position: static; margin-top: 0; }
  .ap-abc .abc--big { grid-template-columns: minmax(0, 1fr); }
  .ap-abc .abc--big .mini-cap { order: 0; }
}
/* author page: the story of how the apps are made */
.au-story-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px clamp(24px, 4vw, 64px); align-items: end; }
.au-story-head .kicker { grid-column: 1 / -1; }
.au-story-head h2 { margin-top: 4px; }
.au-story-lead { font-size: 1.06rem; line-height: 1.65; color: var(--ink-2); max-width: 34em; }
.au-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(22px, 2.6vw, 34px); counter-reset: none; }
.au-step { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; border-radius: 12px; border: 1px solid var(--box-line); background: var(--box); overflow: hidden; }
.au-step::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.st-k { display: flex; align-items: center; gap: 10px; font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 80%, #000); }
.st-k span { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); font: italic 500 .9rem/1 var(--serif); letter-spacing: 0; text-transform: none; }
.au-step h3 { margin-top: 16px; font: 600 1.2rem/1.25 var(--serif); }
.st-p { margin-top: 10px; font-size: .97rem; line-height: 1.62; color: var(--ink-2); flex: 1; }
.st-n { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--box-line); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.st-n b { font: 400 2rem/1 var(--serif); color: color-mix(in srgb, var(--accent) 85%, #000); font-variant-numeric: lining-nums; }
.st-n span { font-size: .85rem; color: var(--ink-3); }
.page--author .au-hero .au-heart { padding-inline-start: 16px; border-inline-start: 3px solid var(--red); color: var(--ink) !important; }
@media (max-width: 1180px) { .au-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .au-story-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .au-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; } .au-step { padding: 20px 18px 18px; } }

/* =====================================================================
   v8 · Fixes: alphabet highlight, links into app pages, touch hover
   ===================================================================== */
/* the highlighted letter keeps its red tile (the white card tile must not win) */
.ap-abc .abc--big .abc-grid span.is-on, .abc-grid span.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.ap-abc .abc--big .abc-grid span.is-on i { color: rgba(255, 255, 255, .85); }

/* home showcases: app name, title and phone screen open the app's page */
.app-id-link { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; }
.app-id-t { display: flex; flex-direction: column; min-width: 0; }
.app-id-t .app-name, .app-id-t .app-plat { display: block; }
.app-id-link .app-name::after { content: " →"; color: var(--accent); opacity: 0; transition: opacity .25s; }
.h-link { color: inherit; text-decoration: none; }
.phone-link { display: block; color: inherit; }
@media (hover: hover) and (pointer: fine) {
  .app-id-link:hover .app-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .app-id-link:hover .app-name::after { opacity: 1; }
  .h-link:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
  .phone-link .phone-frame { transition: transform .4s var(--ease), box-shadow .4s; }
  .phone-link:hover .phone-frame { transform: translateY(-4px); }
}
@media (hover: none) { .app-id-link .app-name::after { opacity: .9; } }

/* touch screens: a tap must not leave cards lifted or photos zoomed */
@media (hover: none) {
  .rc:hover, .gal-item:hover, .ap-in:hover, .pv-apps a:hover { transform: none; box-shadow: none; }
  .rc:hover { box-shadow: 0 30px 50px -40px rgba(40, 25, 10, .5); }
  .fact:hover .fact-img, .mo:hover .mo-img { transform: none; }
}
/* one column (tablet & phone): chapter, app and title first, then the phone, then the text */
@media (max-width: 1023px) {
  .hm-app { display: flex; flex-direction: column; }
  .hm-copy { display: contents; }
  .hm-copy .ch-kicker { order: 1; margin-bottom: 12px; }
  .hm-copy .app-id { order: 2; }
  .hm-copy > h2 { order: 3; margin-top: 18px; }
  .hm-app > .hm-vis, .hm-app--flip > .hm-vis { order: 4; margin-top: 20px; }
  .hm-copy .ptags { order: 5; margin-top: 20px; }
  .hm-copy .ch-text { order: 6; }
  .hm-copy .status { order: 7; }
  .hm-copy .stats { order: 8; }
  .hm-copy .hm-feats { order: 9; }
  .hm-copy .hm-actions { order: 10; }
}
@media (max-width: 1023px) { .hm-app { align-items: stretch; } .hm-app > * { min-width: 0; max-width: 100%; } }

/* app pages: compact download bar while the store buttons are out of sight */
.dl-bar { position: fixed; z-index: 60; left: 50%; bottom: calc(10px + var(--offer-h, 0px) + env(safe-area-inset-bottom)); width: min(700px, calc(100% - 16px));
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; transition: transform .45s var(--ease), opacity .3s ease, bottom .35s var(--ease); }
.dl-bar.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.dl-in { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid var(--rule-2); box-shadow: 0 22px 46px -24px rgba(28, 23, 20, .55); }
.dl-ic { width: 40px; height: 40px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px var(--rule); }
.dl-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-t b { font: 600 .95rem/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-t span { font-size: .76rem; line-height: 1.2; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-stores { display: flex; align-items: center; gap: 6px; flex: none; }
.dl-stores .badge img { height: 36px; width: auto; }
.dl-stores .badge--ag { height: 36px; padding: 0 10px 0 8px; gap: 6px; }
.dl-stores .badge--ag svg { width: 22px; height: 22px; }
.dl-stores .badge--ag b { font-size: .92rem; }
.dl-stores .badge--ag small { font-size: .5rem; }
.dl-stores .btn { min-height: 40px; padding: 8px 16px; font-size: .86rem; }
/* only the store that fits this device; on computers all of them */
.dl-bar.os-ios .dl-stores [data-os]:not([data-os="ios"]),
.dl-bar.os-android .dl-stores [data-os]:not([data-os="android"]),
.dl-bar.os-huawei .dl-stores [data-os="ios"] { display: none; }
@media (max-width: 640px) {
  .dl-bar.os-other .dl-stores [data-os="huawei"] { display: none; }
  .dl-stores .badge img { height: 34px; }
  .dl-t span { display: none; }
  .dl-bar--soon .dl-t span { display: block; }
}
@media (max-width: 380px) { .dl-ic { display: none; } }
@media print { .dl-bar { display: none !important; } }
/* readable labels: partners kicker on the dark band, History copper on light cards */
.page .partners .kicker, .partners .kicker { color: #CFC5BB; }
.page .partners .kicker::before { background: #CFC5BB; }
.rc--history .rc-kicker, .rc--history .rc-more { color: var(--copper); }
@media (max-width: 640px) { .dl-stores .badge img { height: 36px; } }
@media (max-width: 640px) { .ded-more:not(.is-open) .ded-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } .hm-ded { --accent: var(--red); } }
.abc .mini-cap b { color: #B02622; }
.app-id-link .app-name::after { content: "\00a0→"; }
@media (max-width: 1023px) { .hm-copy .ch-kicker { margin-bottom: 4px; } .hm-copy .app-id { padding: 14px 0; } .hm-copy > h2 { margin-top: 16px; } }
@media (max-width: 640px) { .dl-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .9rem; line-height: 1.15; } }

/* =====================================================================
   v9 · Tight rhythm on narrow screens (no stacked gaps)
   ===================================================================== */
@media (max-width: 1023px) {
  .hm-app { gap: 0; row-gap: 0; }
  .hm-copy .ch-kicker { margin: 0 0 6px; }
  .hm-copy .app-id { padding: 12px 0; }
  .hm-copy > h2 { margin-top: 14px; }
  .hm-app > .hm-vis, .hm-app--flip > .hm-vis { margin-top: 16px; }
  .hm-copy .ptags { margin-top: 16px; }
  .hm-copy .ch-text { margin-top: 10px; }
  .hm-copy .status { margin-top: 12px; }
  .hm-copy .stats { margin-top: 16px; }
  .hm-copy .hm-feats { margin-top: 12px; }
  .hm-copy .hm-actions { margin-top: 16px; }
}
@media (max-width: 640px) {
  /* sections */
  .ap-sec, .hm-sec { margin-top: 32px; }
  .hm-app, .hm-ded { margin-top: 32px; }
  .hm-night { margin-top: 32px; padding: 28px 0; }
  .page .partners { margin-top: 32px; padding: 36px 0; }
  .hm-overview { margin-top: 16px; gap: 10px; }
  .hm-plaque { margin-top: 16px; }
  .site-foot { padding: 36px 0 44px; }
  .ap h2, .hm h2 { font-size: 1.62rem; line-height: 1.15; }
  .ap-split h2, .ap-faq h2, .ap-inside h2, .gal-h h2 { margin-bottom: 10px; }
  .ap-grid { margin-top: 12px; }

  /* numbers: one compact strip instead of four big tiles */
  .stats, .stats--row, .hm-copy .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--box-line); border-radius: 10px; background: var(--box); overflow: hidden; }
  .stats li, .stats li:last-child, .stats--row li { padding: 10px 6px 9px; border: 0; border-radius: 0; background: none; align-items: center; text-align: center; gap: 2px; }
  .stats li + li { border-inline-start: 1px solid var(--box-line); }
  .stat-n, .hm-copy .stat-n { font-size: 1.32rem; }
  .stat-l { font-size: .68rem; line-height: 1.2; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
  .hm-night .stats li { background: none; }

  /* feature cards */
  .hm-feats > div { flex-basis: 74%; padding: 13px 15px 14px; }
  .hm-feats dt { font-size: .98rem; }
  .hm-feats dd { font-size: .9rem; line-height: 1.5; }

  /* store buttons and the "all about the app" link */
  .hm-actions { gap: 10px; }
  .hm-actions .stores { gap: 8px; }
  .hm-actions .badge img { height: 40px; }
  .hm-actions .badge--ag { height: 40px; padding: 0 12px 0 10px; }
  .hm-actions .badge--ag svg { width: 24px; height: 24px; }
  .hm-actions .link-more { min-height: 44px; padding: 8px 18px; width: 100%; justify-content: center; }
  .ap-hero .stores { gap: 8px; }
  .ap-hero .badge img { height: 42px; }
  .ap-hero .badge--ag { height: 42px; }

  /* hero */
  .hm-hero .cta-row { margin-top: 18px; gap: 8px; }
  .hm-hero .cta-row .btn { min-height: 46px; }
  .hm-map { margin-top: 4px; }
  .ap-hero .ap-h1 { margin-top: 14px; }
  .ap-intro { margin-top: 12px; }
  .ap-hero .ptags { margin-top: 14px; }
  .ap-hero .stores, .ap-hero .cta-row { margin-top: 16px; }
  .ap-visual { padding-top: 12px; }

  /* cards inside sections */
  .ap-split > div { padding: 20px 18px; }
  .ap-split { gap: 10px; }
  .ap-faq-cta { gap: 16px; }
  .ap-cta { padding: 20px 18px; gap: 14px; }
  .au-card { padding: 22px 16px 20px; gap: 16px; }
  .hm-ded { padding: 22px 18px; }
  .hm-ded .ded-quote { margin-top: 12px; }
  .hm-ded .ded-quote p { font-size: 1.32rem; }
  .ded-more { margin-top: 4px; }
  .fact { padding: 8px 8px 16px; }
  .fact-fig { margin-bottom: 12px; }
  .au-story-head h2 { margin-top: 2px; }
  .au-steps { margin-top: 16px; }
  .pv-list { margin-top: 24px; gap: 10px; }
  .pv-sec { padding: 18px 16px; gap: 10px; }
}
/* tighter rhythm on tablets and computers too */
@media (min-width: 641px) {
  .ap-sec, .hm-sec { margin-top: clamp(32px, 3.2vw, 46px); }
  .hm-app, .hm-ded, .hm-night { margin-top: clamp(32px, 3.4vw, 50px); }
  .hm-night { padding: clamp(28px, 3.4vw, 50px) 0; }
  .hm-night .hm-app { margin-top: 0; }
  .page .partners { margin-top: clamp(36px, 3.6vw, 52px); padding: clamp(40px, 4.2vw, 64px) 0; }
  .site-foot { padding: 44px 0 52px; }
  .hm-ded { padding: clamp(24px, 2.6vw, 40px); }
  .hm-vis { padding: clamp(18px, 2.2vw, 30px); }
  .hm-copy h2 { margin-top: 16px; }
  .hm-copy .ptags { margin-top: 12px; }
  .hm-copy .ch-text { margin-top: 12px; }
  .hm-copy .stats { margin-top: 18px; }
  .hm-feats { margin-top: 14px; }
  .hm-actions { margin-top: 18px; }
  .ap-gal .gal-item img { width: clamp(140px, 12.5vw, 178px); }
  .ap-hero { padding-top: clamp(16px, 2vw, 28px); }
  .ap-h1 { margin-top: 18px; }
  .ap-split > div { padding: clamp(20px, 2.2vw, 30px); }
  .ap-grid { margin-top: 16px; }
  .au-hero { margin-top: clamp(16px, 2vw, 28px); }
  .au-card { padding: clamp(22px, 2.4vw, 36px); }
  .pv-list { margin-top: clamp(28px, 3vw, 44px); }
  .ap-faq-cta .ap-cta { margin-top: 48px; }
}
@media (max-width: 640px) {
  /* app pages: "what's inside" and the long reads become swipe rows, like on the home page */
  .ap-grid, .ap-arts {
    display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); align-items: stretch;
  }
  .ap-grid::-webkit-scrollbar, .ap-arts::-webkit-scrollbar { display: none; }
  .ap-grid > .ap-in { flex: 0 0 78%; scroll-snap-align: start; grid-column: auto !important; }
  .ap-arts > .ap-art { flex: 0 0 84%; scroll-snap-align: start; grid-column: auto !important; display: flex; flex-direction: column; }
  .ap-art p { flex: 0 0 auto; }
  .ap-inside, .ap-arts-wrap { min-width: 0; }
  .ap-strata { gap: 18px; }
  .au-card, .au-hero { row-gap: 18px; }
  .author-grid { gap: 18px; }
  .au-card .signature { margin-top: 12px; }
}
@media (max-width: 640px) {
  .ap-in { align-content: start; }
  .ap-arts { align-items: flex-start; }
  .ap-art .art-more { align-self: flex-start; }
}
/* store buttons in one row are exactly the same height */
@media (max-width: 640px) {
  .stores .badge:not(.badge--ag) { min-height: 0; padding: 0; height: auto; align-items: center; }
  .hm-actions .badge img, .hm-actions .badge--ag { height: 40px; }
  .ap-hero .badge img, .ap-hero .badge--ag, .ap-cta .badge img, .ap-cta .badge--ag { height: 42px; }
}

/* =====================================================================
   v10 · Living hero map — one map, three chapters:
   I Език (city names typed with stress) → II Земя (places + a road trip)
   → III Памет (the country becomes a dark vitrine, finds light up in gold).
   ===================================================================== */
.lv { position: relative; margin: 0; }
.lv .mini-map { position: relative; aspect-ratio: 1000 / 655; container-type: inline-size; opacity: 0; transition: opacity .9s ease; }
.lv.is-painted .mini-map { opacity: 1; }
.lv canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lv-base { opacity: 0; transition: opacity 1s ease; }
.lv-base.is-on { opacity: 1; }
.lv-base.is-sweep { animation: lv-sweep 1.8s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes lv-sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.lv .hm-outline path { stroke: var(--ink); opacity: .5; transition: stroke 1s ease, opacity 1s ease; }
.lv.is-in .hm-outline path { animation: lo-draw 2.2s cubic-bezier(.45, .1, .25, 1) forwards; }
html.is-loading .lv .hm-outline path { stroke-dashoffset: 0; animation: none; }
html.is-loading:not(.lo-near) .lv .mini-map { opacity: 0; }
.lv[data-ch="2"] .hm-outline path { stroke: #B8693E; opacity: .9; }

.lv-layer { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.lv[data-ch="0"] .lv-words, .lv[data-ch="1"] .lv-pins, .lv[data-ch="2"] .lv-sites { opacity: 1; transition-delay: .2s; }
.lv-word, .lv-pin, .lv-site { position: absolute; width: 0; height: 0; }
.lv-word > i, .lv-pin > i, .lv-site > i { position: absolute; border-radius: 50%; }
.lv-lab { position: absolute; display: flex; flex-direction: column; white-space: nowrap; }

/* I · words */
.lv-word .lv-lab { font-size: clamp(14px, 2.7cqw, 23px); }
.lv-word.p-r .lv-lab { left: 11px; top: 0; transform: translateY(-.62em); }
.lv-word.p-t .lv-lab { left: 0; bottom: 11px; transform: translateX(-50%); align-items: center; }
.lv-word.p-b .lv-lab { left: 0; top: 9px; transform: translateX(-50%); align-items: center; }
.lv-word > i { left: -3.5px; top: -3.5px; width: 7px; height: 7px; background: var(--ink); box-shadow: 0 0 0 2px #FCFBF8; opacity: 0; transform: scale(.3); transition: opacity .25s ease, transform .3s ease; }
.lv-word.is-on > i { opacity: 1; transform: none; }
.lv-word b { font: 500 1em/1.05 var(--serif); letter-spacing: -.005em; color: var(--ink); text-shadow: 0 0 10px #FCFBF8, 0 0 3px #FCFBF8, 0 0 1px #FCFBF8; }
.lv-word b > span { opacity: 0; transition: opacity .15s linear; }
.lv-word.is-on b > span { opacity: 1; transition-delay: calc(var(--i) * 64ms); }
.lv-word b > .st { color: var(--red); }
.lv-word small { margin-top: 4px; font: 600 clamp(9.5px, 1.3cqw, 11.5px)/1 var(--sans); letter-spacing: .05em; color: var(--ink-3); text-shadow: 0 0 6px #FCFBF8, 0 0 2px #FCFBF8;
  opacity: 0; transform: translateY(-3px); transition: opacity .3s ease, transform .3s ease; }
.lv-word.is-on small { opacity: 1; transform: none; transition-delay: calc(var(--n) * 64ms + 120ms); }

/* II · places and the road trip */
.lv-pin > i { left: -5px; top: -5px; width: 10px; height: 10px; background: var(--green); box-shadow: 0 0 0 2.5px #FCFBF8, 0 1px 5px rgba(28, 23, 20, .35); transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.lv-pin.is-on > i { transform: none; }
.lv-pin > b { position: absolute; padding: 4px 8px; border-radius: 5px; background: rgba(255, 255, 255, .96); box-shadow: 0 0 0 1px rgba(28, 23, 20, .12), 0 4px 12px -6px rgba(28, 23, 20, .45);
  font: 600 clamp(10.5px, 1.55cqw, 13px)/1.1 var(--sans); color: var(--ink); white-space: nowrap; opacity: 0; translate: 0 4px; transition: opacity .35s ease, translate .35s ease; }
.lv-pin.is-on > b { opacity: 1; translate: 0 0; }
.lv-pin.p-r > b { left: 11px; top: 0; transform: translateY(-50%); }
.lv-pin.p-t > b { left: 0; bottom: 11px; transform: translateX(-50%); }
.lv-pin.p-b > b { left: 0; top: 11px; transform: translateX(-50%); }
/* Rila hangs one row lower on a short leader, so it never meets Plovdiv's label */
.lv-pin.p-bb > b { left: 0; top: 34px; transform: translateX(-50%); }
.lv-pin.p-bb::after { content: ""; position: absolute; left: -.5px; top: 7px; width: 1px; height: 27px; background: rgba(28, 23, 20, .4); opacity: 0; transition: opacity .35s ease; }
.lv-pin.p-bb.is-on::after { opacity: 1; }

/* III · finds in the vitrine */
.lv-site > i { left: -5px; top: -5px; width: 10px; height: 10px; background: #FFE1AE; box-shadow: 0 0 0 2px rgba(23, 12, 13, .85), 0 0 18px 5px rgba(255, 196, 120, .5); opacity: 0; transition: opacity .4s ease; }
.lv-site > i::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid rgba(255, 214, 150, .75); animation: city-ring 2.8s cubic-bezier(.2, .6, .3, 1) infinite; }
.lv-site.is-on > i { opacity: 1; }
.lv-site .lv-lab { width: max-content; max-width: min(56cqw, 290px); white-space: normal; padding: 7px 11px 8px; border-radius: 4px;
  background: rgba(20, 11, 12, .92); border: 1px solid rgba(224, 149, 106, .5); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7);
  color: #F1ECE9; opacity: 0; translate: 0 5px; transition: opacity .45s ease, translate .45s ease; }
.lv-site.is-on .lv-lab { opacity: 1; translate: 0 0; }
.lv-site b { font: 600 clamp(12.5px, 1.95cqw, 15.5px)/1.2 var(--serif); }
.lv-site small { margin-top: 3px; font: 500 clamp(10px, 1.45cqw, 12px)/1.3 var(--sans); color: #E8A57C; }
.lv-site.p-rt .lv-lab { left: 16px; bottom: 8px; }
.lv-site.p-rb .lv-lab { left: 16px; top: 8px; }
.lv-site.p-lt .lv-lab { right: 16px; bottom: 8px; align-items: flex-end; text-align: right; }
.lv-site.p-lb .lv-lab { right: 16px; top: 8px; align-items: flex-end; text-align: right; }
.lv-site.p-ct .lv-lab { left: 0; bottom: 16px; transform: translateX(-50%); align-items: center; text-align: center; }
.lv-site.p-cb .lv-lab { left: 0; top: 16px; transform: translateX(-50%); align-items: center; text-align: center; }
[dir="rtl"] .lv-site .lv-lab { direction: rtl; }

/* chapter switcher + the app of the chapter */
.lv-hud { margin-top: 12px; }
.lv-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lv-tab { appearance: none; -webkit-appearance: none; border: 0; background: none; margin: 0; padding: 0 0 6px; min-height: 40px; cursor: pointer;
  display: flex; flex-direction: column; gap: 9px; text-align: start; font: 600 .8rem/1.2 var(--sans); color: var(--ink-3); transition: color .25s ease; }
.lv-bar { position: relative; display: block; height: 2px; border-radius: 2px; overflow: hidden; background: var(--rule-2); }
.lv-bar i { position: absolute; inset: 0; background: var(--c); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .lv-bar i { transform-origin: 100% 50%; }
.lv-n { font: 500 .95em/1 var(--serif); color: var(--c); margin-inline-end: 6px; }
.lv-tab[aria-pressed="true"], .lv-tab:hover { color: var(--ink); }
.lv-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.lv-panes { display: grid; margin-top: 2px; }
.lv-pane { grid-area: 1 / 1; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--rule); background: var(--card);
  color: var(--ink); text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s, border-color .2s ease; }
.lv-pane.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s, 0s; }
.lv-pane img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.lv-pt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lv-pt b { font: 600 .95rem/1.25 var(--sans); }
.lv-pt small { margin-top: 2px; font-size: .82rem; line-height: 1.3; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lv-go { flex: none; color: var(--ink-3); transition: transform .2s ease, color .2s ease; }
[dir="rtl"] .lv-go { transform: scaleX(-1); }
@media (hover: hover) {
  .lv-pane:hover { border-color: var(--rule-2); }
  .lv-pane:hover .lv-go { color: var(--ink); transform: translateX(3px); }
  [dir="rtl"] .lv-pane:hover .lv-go { transform: scaleX(-1) translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .lv-word b > span, .lv-word small, .lv-pin > b, .lv-pin > i, .lv-site .lv-lab { transition: none !important; }
  .lv-site > i::after { animation: none; }
}

/* Loader → hero: the flag-map flies onto the hero map and becomes it (JS adds .is-flying). */
.loader--outline .lo-in { animation: none; }
.loader--outline .lo-map { transition: transform .82s cubic-bezier(.65, 0, .2, 1), filter .4s ease; will-change: transform; }
.is-loading .loader--outline { animation: lo-vanish .45s ease 2.9s forwards; }
.is-loading .loader--outline.is-fading { animation: lo-gone .5s ease forwards; }
.is-loading .loader--outline.is-flying { animation: lo-bg .6s ease .12s forwards, lo-gone .25s ease .82s forwards; }
.loader--outline.is-flying::after { animation: lo-out .3s ease forwards; }
.loader--outline.is-flying .lo-map { filter: none; }
.loader--outline.is-flying .loader-title, .loader--outline.is-flying .lo-words, .loader--outline.is-flying .lo-rule { animation: lo-out .28s ease forwards; }
.loader--outline.is-flying .lo-s { animation: lo-s-out .5s ease .3s forwards; }
.loader--outline.is-flying .lo-line { animation: lo-line-out .45s ease .35s forwards; }
@keyframes lo-bg { from { background-color: var(--paper); } to { background-color: transparent; } }
@keyframes lo-vanish { to { opacity: 0; visibility: hidden; } }
/* a new name, so the flight's own timing starts from the moment it begins */
@keyframes lo-gone { to { opacity: 0; visibility: hidden; } }
@keyframes lo-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes lo-s-out { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(1); opacity: 0; } }
@keyframes lo-line-out { from { stroke-dashoffset: 0; opacity: 1; } to { stroke-dashoffset: 0; opacity: 0; } }

/* =====================================================================
   v10 · Store badges: one height for all three (official artwork is never
   stretched, so App Store is naturally the narrowest); AppGallery is drawn
   at Google Play's proportions. On phones the row never breaks.
   ===================================================================== */
html .stores { --bh: 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html .stores .badge, html .stores .badge img { height: var(--bh); width: auto; min-height: 0; }
html .stores .badge { flex: none; padding: 0; }
html .stores .badge--ag { width: calc(var(--bh) * 3.37); padding: 0 calc(var(--bh) * .2); gap: calc(var(--bh) * .17); justify-content: center; border-radius: calc(var(--bh) * .2); }
html .stores .badge--ag svg { width: calc(var(--bh) * .64); height: calc(var(--bh) * .64); }
html .stores .badge--ag small { font-size: calc(var(--bh) * .2); }
html .stores .badge--ag b { font-size: calc(var(--bh) * .37); margin-top: calc(var(--bh) * .03); }
@media (max-width: 640px) {
  html .stores { --bh: 40px; width: 100%; gap: 8px; }
  @supports (width: 1cqw) {
    html .stores { container-type: inline-size; flex-wrap: nowrap; gap: 6px; --bh: min(46px, calc((100cqw - var(--gaps, 12px)) / var(--sum, 10))); }
  }
}

/* App page: questions in two columns, the download block as one band below them */
@media (min-width: 1024px) {
  .ap-faq-cta { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ap-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; align-items: start; }
  .ap-qs .ap-q + .ap-q { margin-top: 0; }
  .ap-faq-cta .ap-cta { position: static; margin-top: 0; grid-template-columns: auto auto minmax(0, 1fr); gap: 16px 36px; padding: 22px 28px; }
  .ap-faq-cta .ap-cta-docs { justify-self: end; padding: 2px 0 2px 28px; border-top: 0; border-inline-start: 1px solid var(--box-line); }
  [dir="rtl"] .ap-faq-cta .ap-cta-docs { padding: 2px 28px 2px 0; }
}
@media (max-width: 640px) {
  .ap-cta { padding-inline: 14px; }
  .ap-cta-stores { margin-inline: -4px; }
}

/* =====================================================================
   v11 · Own voice. The site reads like a printed book about Bulgaria:
   limestone paper, black text, chapter rubrics in cinnabar small caps
   (as in old Bulgarian books) instead of UI "kickers"; quiet facts
   instead of chips; plain status words; firmer, smaller corners.
   ===================================================================== */
/* rubrics: serif small caps, no rule line, no letter-spaced uppercase */
.kicker, .hm .kicker, .ap .kicker, .hm h2.kicker, .eyebrow, .ap-kicker, .ac-kicker, .lo-words {
  font: 500 1.02rem/1.25 var(--serif); letter-spacing: .035em; text-transform: none; font-variant-caps: all-small-caps; color: var(--red); }
.kicker::before, .eyebrow::before { display: none; }
.hm-night .kicker, .partners .kicker, .ap-strata .kicker, .page .partners .kicker { color: var(--copper-l); }
.ch-kicker { font: 500 1.02rem/1.25 var(--serif); letter-spacing: .035em; text-transform: none; font-variant-caps: all-small-caps; color: var(--ink-3); gap: 4px 12px; }
.ch-kicker .ch-num { font-weight: 600; }
.rc-kicker { font: 500 1rem/1.2 var(--serif); font-style: normal; letter-spacing: .035em; font-variant-caps: all-small-caps; }
.lo-words { color: var(--ink-3); font-size: .98rem; }
/* functional labels: same small caps, in grey */
.foot-col h2, .lang-title, .counter-l, .st-k, .pv-table th, .pv-table td::before, .p-facts dt, .brand-sub {
  font-family: var(--serif); font-weight: 500; font-size: .98rem; letter-spacing: .035em; text-transform: none; font-variant-caps: all-small-caps; }
.ap-cta-docs .kicker { color: var(--ink-3); }
/* RTL scripts and Greek have no small caps: keep them plain */
:lang(he) :is(.kicker, .eyebrow, .ch-kicker, .rc-kicker, .ap-kicker, .foot-col h2, .lo-words),
:lang(ar) :is(.kicker, .eyebrow, .ch-kicker, .rc-kicker, .ap-kicker, .foot-col h2, .lo-words) { font-variant-caps: normal; letter-spacing: 0; font-size: .95rem; }

/* facts about an app: one quiet line, not a row of chips */
.ptags, .tags { gap: 2px 0; font: 500 .9rem/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.ptags li, .tags li { gap: 0; font: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.ptags li::before, .tags li::before { content: none; }
.ptags li, .tags li { white-space: nowrap; }
.ptags li:not(:last-child)::after, .tags li:not(:last-child)::after { content: "·"; margin: 0 .55em; color: var(--ink-3); }
.hm-night .ptags, .panel--night .ptags { color: #DCCDC5; }

/* status: a plain word, not a pill */
.rc-status, .rc-status.is-soon, .panel--night .rc-status.is-soon { height: auto; padding: 0; background: none; border-radius: 0;
  font: 600 .84rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: var(--green); }
.rc-status i { width: 6px; height: 6px; }
.rc-status.is-soon { color: var(--copper); }
.panel--night .rc-status.is-soon, .hm-night .rc-status.is-soon { color: var(--copper-l); }

/* numbers: one ruled strip instead of four boxes */
.stats, .stats--row, .hm-copy .stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; gap: 0;
  border: 1px solid var(--box-line); border-radius: 10px; background: var(--box); overflow: hidden; }
.stats li, .stats li:last-child { border: 0; border-radius: 0; background: none; }
@media (min-width: 641px) { .stats li, .stats li:last-child { padding: 12px 14px 11px; } }
.stats li + li { border-inline-start: 1px solid var(--box-line); }
@media (max-width: 640px) { .stat-l { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; } }

/* buttons: a firm rectangle */
.btn, .link-more, .art-more { border-radius: 6px; }
.btn { font-weight: 600; letter-spacing: 0; }

/* partners: labels in small caps need a wider column (they collided with the value) */
.p-facts div { grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr); }
.p-facts dt { overflow-wrap: anywhere; hyphens: auto; color: #C9BFB5; }
@media (max-width: 640px) { .p-facts div { grid-template-columns: minmax(0, 1fr); } }

/* chapter panels: white sheet with the chapter colour on top, not a pastel wash */
.hm-vis { background: var(--box); border: 1px solid var(--box-line); border-top: 3px solid var(--accent); }
.hm-night .hm-vis { background: rgba(255, 255, 255, .03); border-color: rgba(224, 149, 106, .2); border-top: 3px solid var(--copper-l); }
.hm-vis .gal { border-top-color: var(--box-line); }

/* timeline: one ruled list on wide screens instead of a stack of separate cards */
@media (min-width: 641px) {
  .facts-list, .hm-facts .facts-list { gap: 0; border: 1px solid var(--box-line); border-radius: 12px; background: var(--box); overflow: hidden; }
  .facts-list > .fact { border: 0; border-radius: 0; background: none; box-shadow: none; }
  .facts-list > .fact + .fact { border-top: 1px solid var(--box-line); }
}

/* lists: a short rule, as in printed text, instead of diamond bullets */
.ap-list li::before { width: 10px; height: 1.5px; top: calc(12px + .78em); left: 0; transform: none; background: var(--accent); }
[dir="rtl"] .ap-list li::before { left: auto; right: 0; }
/* the alphabet card: white sheet, red only in the letters */
.ap-abc .abc--big { background: var(--box); border-color: var(--box-line); border-top: 3px solid var(--red); }

/* "About the app" sits in the badge row on wide screens: same height */
@media (min-width: 641px) { html .hm-actions .link-more { height: 46px; } }

@media (max-width: 640px) {
  .lv-site .lv-lab { max-width: 48cqw; padding: 5px 8px 6px; }
  .lv-site b { font-size: 12.5px; }
  .lv-site small { font-size: 10.5px; }
}

/* =====================================================================
   v12 · White page. The cream-paper + serif look is what every generated
   "elegant" site uses; here the page is plain white, blocks are light grey
   sheets with a hairline, and colour comes only from the three chapters.
   ===================================================================== */
:root { --box: #F7F7F5; --box-line: rgba(20, 20, 18, .1); --rule: rgba(20, 20, 18, .11); --rule-2: rgba(20, 20, 18, .2); }
.hm-vis, .ap-abc .abc--big { background: #FFFFFF; }
.lv-pane { background: var(--box); }
.lo-rule { display: none !important; }
.loader--outline .lo-map { filter: none; }
.tabs-nav { background: rgba(255, 255, 255, .94); }

/* =====================================================================
   v12b · One style on every page (as on the home page): plain light-grey
   sheets with a hairline; colour only in small accents, never as a wash.
   ===================================================================== */
.ap-art, .ap-split > div, .ap-split > .ap-priv, .pv-facts li, .ap-status, .pv-sec, .au-step, .ap-in {
  background: var(--box); border-color: var(--box-line); }
.ap-status { color: var(--ink); border: 1px solid var(--box-line); border-inline-start: 3px solid var(--copper); }
/* numbers and section marks: a red serif figure, not a tinted chip */
.ap-in::before, .pv-i, .st-k span { height: auto; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none;
  font: 500 1.05rem/1 var(--serif); letter-spacing: .02em; font-variant-numeric: lining-nums tabular-nums; color: var(--accent, var(--red)); }
.pv-i { color: var(--red); }
.pv-n { color: var(--red); }
.ap-in:hover { border-color: var(--box-hover, rgba(20, 20, 18, .22)); }

/* =====================================================================
   v13 · Opening, one smooth sequence (JS: .is-flying → .lo-reveal → .lo-near)
   ===================================================================== */
.is-loading .loader--outline { animation: lo-vanish .45s ease 3.6s forwards; }
.loader--outline .lo-map { transition: transform 1.05s cubic-bezier(.55, 0, .15, 1); will-change: transform; }
.is-loading .loader--outline.is-flying { animation: lo-bg .85s cubic-bezier(.4, 0, .2, 1) .05s forwards, lo-gone .3s ease 1.1s forwards; }
.loader--outline.is-flying .loader-title, .loader--outline.is-flying .lo-words { animation: lo-out .3s ease forwards; }
.loader--outline.is-flying .lo-line { animation: lo-line-out .5s ease .45s both; }
.loader--outline.is-flying .lo-s { animation: lo-s-out .6s ease .55s both; }
.loader--outline.is-flying .loader-title, .loader--outline.is-flying .lo-words { animation: lo-out .3s ease both; }
/* the dot map fades in exactly while the flag dissolves */
html.is-loading .lv .mini-map { transition: opacity .7s ease; }
/* hero text waits for the flight (paused, not timed), then rises in its usual stagger */
html.is-loading .page--home, html.is-loading { --intro-delay: 60ms; }
html.is-loading:not(.lo-reveal) .page--home :is(.reveal, .hm-title span) { animation-play-state: paused; }
/* longer "coming soon to App Store and Google Play" lines may wrap instead of pushing the row */
.cta-row > .soon-store, .cta-row > .btn { max-width: 100%; white-space: normal; height: auto; text-align: center; }
.cta-row > .soon-store { padding-block: 6px; line-height: 1.3; }

/* =====================================================================
   v14 · Three chapter bands on the home page, each in its app's colours:
   I Език — warm paper with red; II Земя — pale sage with green;
   III Памет — the dark vitrine, where the screenshots now sit on a lighter
   oxblood sheet with a hairline, so dark screens no longer melt into it.
   ===================================================================== */
.hm-band { padding: clamp(40px, 5vw, 72px) 0; }
.hm-band .hm-app { margin-top: 0; }
.hm-band--learn { margin-top: clamp(40px, 5vw, 72px); background: #FAF1EE; --box: #FFFFFF; --box-line: rgba(150, 40, 28, .14); }
.hm-band--travel { background: #EDF4F0; --box: #FFFFFF; --box-line: rgba(14, 90, 64, .15); }
.hm-band + .hm-night { margin-top: 0; }
.hm-band .hm-vis { background: #FFFFFF; box-shadow: 0 24px 48px -36px rgba(20, 20, 18, .5); }
.hm-band--learn .hm-vis { border-color: rgba(150, 40, 28, .16); }
.hm-band--travel .hm-vis { border-color: rgba(14, 90, 64, .18); }
.hm-night .hm-vis { background: linear-gradient(180deg, #4A2528 0%, #3A1C1F 100%); border: 1px solid rgba(224, 149, 106, .38); border-top: 3px solid var(--copper-l);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9); }
.hm-night .gal-item img, .hm-night .phone-frame { box-shadow: 0 0 0 1px rgba(241, 236, 233, .22), 0 14px 28px -16px rgba(0, 0, 0, .85); }
.hm-night .gal { border-top-color: rgba(224, 149, 106, .25); }
@media (max-width: 640px) {
  .hm-band { padding: 32px 0; }
  .hm-band--learn { margin-top: 32px; }
}

/* round icon buttons: geometric icons, centred exactly (no text glyphs with font metrics) */
.lb-x, .lang-offer .x, .lb-btn, .gal-nav button { display: inline-grid; place-items: center; padding: 0; line-height: 0; font-size: 0; }
.lb-x { position: fixed; display: grid; }
.lb-x svg, .lang-offer .x svg, .lb-btn svg, .gal-nav button svg { display: block; flex: none; }
/* app pages: the phone always starts at the top of the hero, whatever the length of the text beside it */
@media (min-width: 1024px) { .ap-hero { align-items: start; } }

/* =====================================================================
   v15 · Language suggestion: a small card in the site's own voice.
   [RU]  Русский (rubric) / sentence        [Перейти →]   (×)
   ===================================================================== */
.lang-offer { right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); left: auto; max-width: min(470px, calc(100vw - 40px)); width: auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 14px 14px 14px;
  border-radius: 14px; border: 1px solid rgba(20, 20, 18, .1); background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 2px rgba(20, 20, 18, .06), 0 18px 44px -18px rgba(20, 20, 18, .38);
  opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .5s var(--ease), transform .6s cubic-bezier(.2, .9, .25, 1.05); }
.lang-offer.is-in { opacity: 1; transform: none; }
.lo-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--paper-2);
  font: 500 .95rem/1 var(--serif); letter-spacing: .04em; color: var(--ink); margin-inline-start: 4px; }
.lo-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lo-txt b { font: 500 .95rem/1.15 var(--serif); font-variant-caps: all-small-caps; letter-spacing: .04em; color: var(--red); }
.lang-offer .lo-txt p { margin: 0; font: 500 .95rem/1.3 var(--sans); color: var(--ink); }
.lo-go { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 18px; border-radius: 10px; background: var(--ink); color: #fff;
  font: 600 .9rem/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background .2s ease; }
.lo-go svg { transition: transform .25s var(--ease); }
.lo-go:hover { background: #000; }
.lo-go:hover svg { transform: translateX(3px); }
[dir="rtl"] .lo-go svg { transform: scaleX(-1); }
.lang-offer .x { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(20, 20, 18, .12);
  background: #fff; color: var(--ink-2); box-shadow: 0 4px 10px -4px rgba(20, 20, 18, .3); cursor: pointer; }
.lang-offer .x:hover { color: var(--ink); background: #fff; border-color: rgba(20, 20, 18, .25); }
[dir="rtl"] .lang-offer .x { right: auto; left: -10px; }
@media (max-width: 640px) {
  .lang-offer { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; gap: 12px; padding: 12px; border-radius: 14px; }
  .lo-mark { width: 40px; height: 40px; border-radius: 10px; font-size: .88rem; }
  .lo-txt b { font-size: .88rem; }
  .lang-offer .lo-txt p { font-size: .88rem; }
  .lo-go { height: 40px; padding: 0 12px 0 14px; font-size: .86rem; }
  .lang-offer .x { top: -9px; right: -6px; }
}
@media (prefers-reduced-motion: reduce) { .lang-offer { transition: opacity .2s linear; transform: none; } }

/* =====================================================================
   v16 · Bottom dock: the download bar and the language card are one family.
   Same width, height, padding, tile, button height, corners, border, shadow.
   The download bar sits at the bottom; the language card rests on top of it.
   ===================================================================== */
.dl-bar, .lang-offer { --dock-w: min(680px, calc(100% - 32px)); }
.dl-bar { width: var(--dock-w); bottom: calc(16px + env(safe-area-inset-bottom)); }
.lang-offer { left: 50%; right: auto; width: var(--dock-w); max-width: none;
  bottom: calc(16px + var(--dl-h, 0px) + env(safe-area-inset-bottom));
  transform: translate(-50%, 18px); transition: opacity .5s var(--ease), transform .6s cubic-bezier(.2, .9, .25, 1.05), bottom .4s var(--ease); }
.lang-offer.is-in { transform: translate(-50%, 0); }
.dl-in, .lang-offer { box-sizing: border-box; min-height: 64px; padding: 11px; border-radius: 14px; gap: 14px;
  border: 1px solid rgba(20, 20, 18, .1); background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 2px rgba(20, 20, 18, .06), 0 18px 44px -18px rgba(20, 20, 18, .38); }
.lang-offer { grid-template-columns: 40px minmax(0, 1fr) auto; }
/* tile */
.dl-ic, .lo-mark { width: 40px; height: 40px; border-radius: 10px; margin: 0; }
.lo-mark { font-size: .9rem; box-shadow: inset 0 0 0 1px rgba(20, 20, 18, .08); }
/* text: rubric in cinnabar small caps, then one line of ink */
.dl-t, .lo-txt { gap: 3px; justify-content: center; }
.dl-t .dl-k, .lang-offer .lo-txt b { display: block; font: 500 .9rem/1 var(--serif); font-variant-caps: all-small-caps; letter-spacing: .05em; color: var(--red);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-t b, .lang-offer .lo-txt p { font: 500 .98rem/1.2 var(--serif); color: var(--ink); }
.dl-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-t > span:not(.dl-k) { display: none; }
.dl-t .dl-k { display: block; }
/* buttons: one height, cut like the store badges */
.dl-stores { gap: 8px; }
.dl-stores .badge img { height: 40px; }
.dl-stores .badge--ag { height: 40px; border-radius: 7px; }
.dl-stores .btn, .lo-go { height: 40px; min-height: 40px; padding: 0 16px; border-radius: 7px; font: 600 .88rem/1 var(--sans); }
.lo-go { gap: 8px; padding: 0 14px 0 16px; background: #000; box-shadow: inset 0 0 0 1px #A6A6A6; }
.lo-go:hover { background: #1a1a1a; }
/* close: a small round chip on the card's corner, clear of the bar below */
.lang-offer .x { top: -10px; right: -10px; width: 26px; height: 26px; }
[dir="rtl"] .lang-offer .x { right: auto; left: -10px; }
@media (max-width: 640px) {
  .dl-bar, .lang-offer { --dock-w: calc(100% - 20px); }
  .dl-bar { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .lang-offer { left: 50%; right: auto; bottom: calc(10px + var(--dl-h, 0px) + env(safe-area-inset-bottom)); }
  .dl-in, .lang-offer { min-height: 62px; padding: 10px; gap: 12px; border-radius: 14px; }
  /* phones: tile, up to two lines of text, button. No rubric, so both cards stay 62px */
  .dl-bar .dl-t .dl-k, .lang-offer .lo-txt b { display: none; }
  .dl-t b, .lang-offer .lo-txt p { font-size: .93rem; line-height: 1.2; }
  .lo-go { min-width: var(--dl-btn-w, 0px); justify-content: center; }
  .lang-offer .lo-txt p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .dl-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .dl-stores .badge img { height: 40px; }
  .dl-stores .btn, .lo-go { padding: 0 13px; font-size: .86rem; }
  .lo-go { padding: 0 12px 0 14px; }
  .lang-offer .x { top: -9px; right: -6px; }
  [dir="rtl"] .lang-offer .x { left: -6px; }
}
.dl-short { display: none; }
@media (max-width: 640px) { .dl-long { display: none; } .dl-short { display: inline; } .dl-stores .btn { white-space: nowrap; } }
@media (max-width: 380px) { .dl-ic { display: none; } }
@media (prefers-reduced-motion: reduce) { .lang-offer, .lang-offer.is-in { transform: translate(-50%, 0); } }

/* =====================================================================
   v17 · "What's inside" on phones: one sheet, items in a numbered list.
   The swipe row stretched every card to the tallest one, so short items
   were two-thirds empty. Each item now takes only the room its text needs.
   ===================================================================== */
@media (max-width: 640px) {
  .ap-grid { display: block; overflow: visible; margin: 14px 0 0; padding: 0; scroll-snap-type: none;
    background: var(--box); border: 1px solid var(--box-line); border-radius: 12px; }
  .ap-grid > .ap-in { border: 0; border-radius: 0; background: none; box-shadow: none; transform: none;
    padding: 15px 16px 16px; }
  .ap-grid > .ap-in + .ap-in { border-top: 1px solid var(--box-line); }
  .ap-in dt { font-size: 1.04rem; }
  .ap-in dd { margin-top: 4px; font-size: .95rem; line-height: 1.5; }
}

/* =====================================================================
   v18 · An app on one store only: the other stores are a quiet line of
   text beside the badge, not a button-like box.
   ===================================================================== */
.stores .soon-store { display: block; flex: 1 1 12em; align-self: center; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
  color: var(--ink-3); font: 500 .9rem/1.4 var(--sans); white-space: normal; }
/* stores the app is not in yet: the real badge, greyed out, with a small "soon" tag on its corner */
.soon-wrap { position: relative; display: inline-flex; flex: none; cursor: default; }
.soon-wrap > .badge { filter: grayscale(1); opacity: .32; pointer-events: none; box-shadow: none; }
.soon-wrap > .badge--ag { box-shadow: inset 0 0 0 1px #A6A6A6; }
.soon-tag { position: absolute; top: -8px; inset-inline-end: -6px; padding: 4px 7px 3px; border-radius: 5px;
  background: var(--accent, var(--copper)); color: #fff; font: 600 .66rem/1 var(--sans); font-style: normal; letter-spacing: .02em;
  white-space: nowrap; box-shadow: 0 0 0 2px var(--soon-ring, #fff); }
.hm-app .soon-tag { --soon-ring: transparent; }
.dl-stores .soon-tag { top: -6px; inset-inline-end: -4px; font-size: .6rem; padding: 3px 6px 2px; }
.soon-wrap > .badge { opacity: .38; }
.soon-tag { top: -10px; inset-inline-end: -8px; padding: 3px 6px; border-radius: 4px; font-size: 10px; letter-spacing: .03em; }
.dl-stores .soon-tag { top: -9px; inset-inline-end: -6px; font-size: 9px; padding: 3px 5px; }
.stores:has(.soon-wrap) { row-gap: 18px; }

/* v19 — app cards: each card is tinted with its own app colour so the row stands off the white page */
.rc {
  --tint: color-mix(in srgb, var(--accent) 7%, #fff);
  background: linear-gradient(180deg, var(--tint), color-mix(in srgb, var(--accent) 2.5%, #fff) 70%);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: 0 1px 2px rgba(28, 23, 20, .04), 0 26px 44px -32px color-mix(in srgb, var(--accent) 42%, transparent);
}
.rc:hover { border-color: color-mix(in srgb, var(--accent) 36%, transparent); box-shadow: 0 1px 2px rgba(28, 23, 20, .04), 0 40px 60px -36px color-mix(in srgb, var(--accent) 60%, transparent); }
.rc::before { left: 0; right: 0; top: -1px; height: 4px; border-radius: 12px 12px 0 0; transform: none; }
.rc-top .app-icon { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent), 0 10px 20px -12px color-mix(in srgb, var(--accent) 70%, #000); }
.rc-foot { border-top-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.rc-stores a { text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); }
@media (hover: none) { .rc:hover { box-shadow: 0 1px 2px rgba(28, 23, 20, .04), 0 26px 44px -32px color-mix(in srgb, var(--accent) 42%, transparent); } }

/* v20 — real store badges inside the app cards */
.rc-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin-top: 14px; font: inherit; }
.rc-badges .badge, .rc-badges .badge img { height: 36px; width: auto; }
.rc-badges .badge { border-radius: 7px; }
.rc-badges .badge--ag { height: 36px; padding: 0 10px 0 7px; gap: 6px; border-radius: 7px; }
.rc-badges .badge--ag svg { width: 23px; height: 23px; }
.rc-badges .badge--ag small { font-size: .5rem; }
.rc-badges .badge--ag b { font-size: .9rem; margin-top: 1px; }
.rc-badges:has(.soon-wrap) { row-gap: 14px; }
.rc-badges .soon-tag { top: -8px; inset-inline-end: -5px; font-size: 9px; padding: 3px 5px; --soon-ring: var(--tint, #fff); }
.rc-badges .soon-wrap > .badge { opacity: .34; }
.rc-stores.rc-badges a { min-height: 0; text-decoration: none; color: #fff; }

/* v21 — "Web version" button (outlined, browser-window mark) and "soon" tags lifted off the badge text */
.badge--web { align-items: center; gap: 9px; height: 50px; padding: 0 16px 0 12px; border-radius: 9px; background: var(--card, #fff); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1.5px currentColor; white-space: nowrap; }
.badge--web svg { flex: none; display: block; }
.badge--web span { display: flex; flex-direction: column; line-height: 1; }
.badge--web small { font: 500 .64rem/1 var(--sans); letter-spacing: .01em; color: var(--ink-2); }
.badge--web b { font: 600 1.12rem/1.05 var(--sans); letter-spacing: -.01em; margin-top: 2px; }
a.badge--web:hover { background: var(--paper-2); }
@media (max-width: 640px) { .badge--web { height: 46px; } }
.soon-wrap > .badge--web { opacity: .5; }
.rc-badges .badge--web { height: 36px; padding: 0 11px 0 8px; gap: 6px; border-radius: 7px; background: #fff; }
.rc-badges .badge--web svg { width: 21px; height: 21px; }
.rc-badges .badge--web small { font-size: .5rem; }
.rc-badges .badge--web b { font-size: .9rem; margin-top: 1px; }
.rc-stores.rc-badges a.badge--web { color: var(--ink); }
.rc-badges, .rc-badges:has(.soon-wrap) { row-gap: 18px; }
.rc-badges .soon-tag { top: -12px; }
.stores .soon-tag { top: -13px; }
.stores:has(.soon-wrap) { row-gap: 22px; }

/* v22 — one store block everywhere: the three store buttons in one row, scaled together to fit the box
   (--r = row width / button height, --n = buttons), and the web version as one wide button under them */
html body .sset { --gap: 8px; --hmax: 50px; container-type: inline-size; display: flex; flex-direction: column; gap: 12px;
  width: min(100%, calc(var(--r) * var(--hmax) + (var(--n) - 1) * var(--gap))); flex-wrap: nowrap; }
html body .sset-row { --h: min(var(--hmax), calc((100cqi - (var(--n) - 1) * var(--gap)) / var(--r))); display: flex; align-items: center; gap: var(--gap); }
html body .sset .sset-row .badge, html body .sset .sset-row .badge img { height: var(--h); width: auto; max-width: none; }
html body .sset .sset-row .badge { border-radius: calc(var(--h) * .19); }
html body .sset .sset-row .badge--ag { width: calc(var(--h) * 3.4); padding: 0; justify-content: center; gap: calc(var(--h) * .17); color: #fff; }
html body .sset .sset-row .badge--ag svg { width: calc(var(--h) * .6); height: calc(var(--h) * .6); }
html body .sset .sset-row .badge--ag small { font-size: calc(var(--h) * .2); color: #fff; opacity: 1; }
html body .sset .sset-row .badge--ag b { font-size: calc(var(--h) * .37); color: #fff; margin-top: calc(var(--h) * .03); }
html body .sset .soon-wrap { display: inline-flex; }
html body .sset > .soon-wrap, html body .sset > .badge--web { width: 100%; }
html body .sset .badge--web { width: 100%; height: 50px; justify-content: center; gap: 10px; padding: 0 16px; border-radius: 9px; }
html body .sset .badge--web svg { width: 26px; height: 26px; }
html body .sset .badge--web small { font-size: .66rem; }
html body .sset .badge--web b { font-size: 1.1rem; }
html body .sset .soon-tag { top: -9px; inset-inline-end: -6px; font-size: 10px; padding: 3px 6px; }
html body .sset .sset-row .soon-tag { top: -11px; inset-inline-end: -5px; font-size: 9px; padding: 3px 5px; }
html body .sset:has(.sset-row .soon-wrap) { gap: 14px; }
html body .sset-row:has(.soon-wrap) { margin-top: 8px; }

/* in the app cards */
html body .sset--card { --hmax: 42px; width: 100%; margin-top: 16px; gap: 10px; }
html body .sset--card .sset-row { justify-content: center; }
html body .sset--card .badge--web { height: 42px; border-radius: 8px; background: #fff; }
html body .sset--card .badge--web svg { width: 22px; height: 22px; }
html body .sset--card .badge--web small { font-size: .58rem; }
html body .sset--card .badge--web b { font-size: .98rem; }
html body .sset--card .soon-tag { --soon-ring: var(--tint, #fff); }
html body .sset--card a.badge--web { color: var(--ink); }
@media (max-width: 640px) {
  html body .rc .sset--card { grid-column: 1 / -1; margin-top: 12px; }
  html body .sset { --hmax: 46px; }
  html body .sset .badge--web { height: 46px; }
  html body .sset--card .badge--web { height: 42px; }
  html body .hm-actions .sset, html body .ap-cta-stores .sset { width: 100%; }
}
html body .sset .soon-wrap > .badge--web { box-shadow: inset 0 0 0 1.5px currentColor; opacity: .45; }
html body .sset { flex-wrap: nowrap; }
/* v23 — web button: always a clear dark outline (also while "soon"), only the label is muted; same height as the store row */
html body .sset .badge--web, html body .sset .soon-wrap > .badge--web { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); background: #fff; filter: none; opacity: 1; }
html body .sset .soon-wrap > .badge--web { color: var(--ink-2); }
html body .sset .soon-wrap > .badge--web svg, html body .sset .soon-wrap > .badge--web span { opacity: .7; }
html body .sset a.badge--web:hover { background: var(--paper-2); }
html body .sset .badge--web { height: 46px; }
html body .sset--card .badge--web { height: 38px; gap: 8px; }
html body .sset--card .badge--web svg { width: 20px; height: 20px; }
html body .sset--card .badge--web small { font-size: .55rem; }
html body .sset--card .badge--web b { font-size: .92rem; }
html body .sset--card .sset-row { margin-top: 8px; }
@media (max-width: 640px) { html body .sset .badge--web { height: 42px; } html body .sset--card .badge--web { height: 38px; } }
html body .sset .badge--web, html body .sset .soon-wrap > .badge--web { background: transparent; }
html body .sset--card .badge--web, html body .sset--card .soon-wrap > .badge--web { background: #fff; }
html body .sset--card, html body .sset--card:has(.sset-row .soon-wrap) { gap: 14px; }
html body .sset, html body .sset:has(.soon-wrap) { row-gap: 14px; }
/* web button heights must beat ".stores .badge:not(.badge--ag) { height: auto }" on phones */
html body .sset .badge.badge--web { height: 46px; }
html body .sset--card .badge.badge--web { height: 38px; }
@media (max-width: 640px) { html body .sset .badge.badge--web { height: 42px; } html body .sset--card .badge.badge--web { height: 38px; } }
/* web button sits closer to the store row */
html body .sset, html body .sset:has(.soon-wrap) { row-gap: 12px; }
html body .sset--card, html body .sset--card:has(.soon-wrap) { row-gap: 10px; }
html body .sset.sset--card:has(.sset-row .soon-wrap) { row-gap: 10px; }
/* v24 — the web button is exactly as wide as the store row above it (cards with two stores get a narrower one, centred) */
html body .sset { --h: min(var(--hmax), calc((100cqi - (var(--n) - 1) * var(--gap)) / var(--r))); }
html body .sset > .badge--web, html body .sset > .soon-wrap { width: calc(var(--ro, var(--r)) * var(--h) + (var(--no, var(--n)) - 1) * var(--gap)); max-width: 100%; }
html body .sset--card > .badge--web, html body .sset--card > .soon-wrap { align-self: center; }
/* bottom download band: the stores sit in an auto-width column, so the block needs its own width */
@media (min-width: 641px) {
  html body .ap-cta-stores .sset { --hmax: 44px; width: calc(var(--r) * var(--hmax) + (var(--n) - 1) * var(--gap)); max-width: 100%; }
  html body .ap-cta-stores .sset .badge.badge--web { height: 42px; }
}

/* v25 — taps: store buttons in a card sit above the card's own link; touch screens get no hover state at all on cards
   (iOS turns the first tap into a hover when a hover style changes something), and no double-tap-zoom wait on links */
html body .sset--card { position: relative; z-index: 2; }
a, button, .rc, .badge { touch-action: manipulation; }
@media (hover: none) {
  .rc, .rc:hover { transform: none; transition: none; border-color: color-mix(in srgb, var(--accent) 20%, transparent);
    box-shadow: 0 1px 2px rgba(28, 23, 20, .04), 0 26px 44px -32px color-mix(in srgb, var(--accent) 42%, transparent); }
  .rc:hover .rc-more svg { transform: none; }
  [dir="rtl"] .rc:hover .rc-more svg { transform: scaleX(-1); }
}
/* store block centred under the text once the hero is a single column (tablets and phones) */
@media (max-width: 1023px) {
  html body .sset--hero { margin-inline: auto; }
  html body .sset--hero .sset-row { justify-content: center; }
}
/* in a card only real store links take the tap; "soon" buttons and the gaps pass it to the card (opens the app page) */
html body .sset--card { pointer-events: none; }
html body .sset--card a { pointer-events: auto; }

/* v26 — web button hover: a soft tint of its own colour instead of a fixed light fill
   (on the dark History panel the light label vanished on a light hover background) */
html body .sset a.badge--web { transition: background-color .18s ease, box-shadow .18s ease; }
html body .sset a.badge--web:hover, html body .sset a.badge--web:focus-visible {
  background: color-mix(in srgb, currentColor 9%, transparent); box-shadow: inset 0 0 0 2px currentColor; }
html body .sset--card a.badge--web:hover, html body .sset--card a.badge--web:focus-visible {
  background: color-mix(in srgb, var(--ink) 6%, #fff); }

/* =====================================================================
   Who it helps (2026-11-13): problems an app solves, what you learn,
   use by organizations (app pages) and the audience table (home)
   ===================================================================== */
.ap-why h2 { margin-bottom: 22px; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.why { display: flex; flex-direction: column; padding: clamp(20px, 2vw, 26px); border: 1px solid var(--box-line); border-radius: 12px; background: var(--box);
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s; }
.why:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); box-shadow: 0 16px 32px -24px rgba(28, 23, 20, .45); }
.why-k { display: block; margin-bottom: 8px; font: 600 .68rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.why-p { font: 600 1.14rem/1.32 var(--serif); color: var(--ink); text-wrap: balance; }
.why-s { margin-top: auto; padding-top: 16px; font-size: .97rem; line-height: 1.58; color: var(--ink-2); }
.why-p + .why-s { margin-top: 16px; border-top: 1px dashed color-mix(in srgb, var(--accent) 30%, var(--box-line)); }
.why-s .why-k { color: color-mix(in srgb, var(--accent) 82%, #000); }
.ap-gains > .ap-gain { background: color-mix(in srgb, var(--accent) 4%, var(--box)); border-color: color-mix(in srgb, var(--accent) 16%, var(--box-line)); }
.ap-gains .ap-list li:first-child { border-top: 0; padding-top: 4px; }
.org-list > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.org-list > div:first-child { border-top: 0; padding-top: 4px; }
.org-list > div:last-child { padding-bottom: 0; }
.org-list dt { font: 600 1.08rem/1.3 var(--serif); }
.org-list dd { margin-top: 5px; font-size: .97rem; line-height: 1.58; color: var(--ink-2); }

.hm-uses { padding-top: clamp(8px, 2vw, 24px); }
.uses-head h2 { margin-top: 20px; font: 400 clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem)/1.06 var(--serif); letter-spacing: -.02em; text-wrap: balance; max-width: 18em; }
.uses-lead { margin-top: 18px; font-size: clamp(1.02rem, .95rem + .25vw, 1.15rem); line-height: 1.6; color: var(--ink-2); max-width: 44em; }
.uses-t { margin-top: clamp(26px, 3vw, 40px); border-top: 1px solid var(--rule-2); }
.ur { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1.12fr)); gap: 0 clamp(16px, 2.2vw, 32px); padding: 22px 0; border-bottom: 1px solid var(--rule); }
.ur--head { padding: 16px 0; border-bottom-color: var(--rule-2); align-items: center; }
.uh-app { display: flex; align-items: center; gap: 12px; font: 600 .98rem/1.25 var(--sans); }
.uh-app img { flex: none; border-radius: 9px; box-shadow: 0 0 0 1px var(--rule), 0 6px 14px -8px rgba(0, 0, 0, .35); }
.uw { font: 600 1.14rem/1.3 var(--serif); color: var(--ink); text-wrap: balance; }
.uc p { font-size: .96rem; line-height: 1.55; color: var(--ink-2); }
.uc--none p { color: var(--ink-3); }
.uc-app { display: none; }
.uses-note { margin-top: 18px; font-size: .92rem; color: var(--ink-3); }
@media (max-width: 1023px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .ur--head { display: none; }
  .ur { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .uw { font-size: 1.22rem; }
  .uc-app { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font: 600 .8rem/1.2 var(--sans); letter-spacing: .02em; color: var(--ink); }
  .uc-app img { flex: none; border-radius: 6px; box-shadow: 0 0 0 1px var(--rule); }
  .uc--none { display: none; }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; gap: 10px; }
  .why-p { font-size: 1.08rem; }
}

/* v30 · Store badges v2 (2026-11-15, owner: "the Huawei button looks off"; same spec as History of Bulgaria).
   AppGallery is drawn to App Store metrics at 40px and scaled with one variable per context (--agh = badge height):
   black lozenge, one 1px #A6A6A6 frame, white monochrome 22px mark, caption 500 9.5px, title 500 17px, system font. */
html body .badge.badge--ag { --agh: 50px; font-size: calc(var(--agh) / 40); height: 40em; min-height: 0; width: auto; padding: 0 12em 0 9em; gap: 7em;
  justify-content: flex-start; border-radius: 6em; background: #000; color: #fff; box-shadow: inset 0 0 0 1px #A6A6A6; }
html body .badge.badge--ag > svg { flex: none; display: block; width: 22em; height: 22em; }
html body .badge.badge--ag > span { display: flex; flex-direction: column; justify-content: center; gap: 1em; line-height: 1; white-space: nowrap; }
html body .badge.badge--ag small { font: 500 9.5em/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .01em; text-transform: none; opacity: 1; margin: 0; color: #fff; }
html body .badge.badge--ag b { font: 500 17em/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.02em; margin: 0; color: #fff; }
@media (hover: hover) { html body a.badge.badge--ag:hover { background: #161616; } }
@media (max-width: 640px) { html body .badge.badge--ag { --agh: 46px; } }
html body .stores .badge.badge--ag { --agh: var(--bh); }
html body .dl-stores .badge.badge--ag { --agh: 40px; }
html body .rc-badges .badge.badge--ag { --agh: 36px; }
html body .ap-hero .badge.badge--ag, html body .ap-cta .badge.badge--ag { --agh: 42px; }
@media (max-width: 640px) { html body .hm-actions .badge.badge--ag { --agh: 40px; } }
