:root {
  --bg: #eaf4ff;
  --card: #ffffff;
  --line: rgba(29, 111, 235, 0.16);
  --ink: #0c2340;
  --muted: #5b7394;
  --cyan: #1d6feb;
  --blue: #1d6feb;
  --blue-2: #1554c9;
  --navy: #0b1f3a;
  --go: #16c75a;
  --go-2: #15803d;
  --accent: #1d6feb;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body.app {
  position: relative;
  font-family: "Segoe UI", system-ui, sans-serif;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 84px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2 { line-height: 1.15; margin: 0 0 .55rem; }
p { margin: 0 0 .8rem; }

.wrap { width: min(1120px, calc(100% - 24px)); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 64px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; justify-content: center; min-width: 0; }
.brand-copy { display: grid; gap: 1px; justify-items: center; }
.wordmark {
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  width: auto;
  height: auto;
  font: 900 clamp(1.35rem, 5.2vw, 1.7rem)/1 "Arial Black", "Segoe UI", sans-serif;
  letter-spacing: -0.06em;
  color: #0c2340;
}
.wordmark span { color: #1d6feb; }
.brand-copy small {
  color: var(--cyan);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: lowercase;
  font-weight: 700;
}
.desk-nav { display: none; }
.nav-safe { display: none; }
.top-spacer { display: block; width: 42px; height: 42px; }
.menu-btn {
  width: 42px; height: 42px; border: 0; border-radius: 12px;
  background: #e7f1ff; display: grid; gap: 5px; place-content: center; cursor: pointer;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: #0c2340; }
.drawer {
  position: fixed; inset: 64px 12px auto; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 10px; display: grid; gap: 4px;
  box-shadow: 0 18px 40px rgba(12, 35, 64, .12);
}
.drawer[hidden] { display: none !important; }
.drawer a { padding: 10px 12px; border-radius: 10px; font-weight: 700; }
.drawer a:hover { background: #eef6ff; }

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: calc(100svh - 64px - 84px);
  min-height: 460px;
  max-height: 640px;
  background: #cfe8ff;
}
.hero-bg--pc { display: none; }
.hero-bg--mob {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  max-width: none;
  object-fit: cover; object-position: center 18%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 38%, rgba(234,244,255,.28) 68%, rgba(234,244,255,.88) 100%);
  pointer-events: none; z-index: 1;
}
.hero-stage {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
}
.hero-kicker {
  color: var(--cyan); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 800; margin: 0 0 8px;
}
.hero-line {
  font-size: clamp(1.45rem, 6vw, 2.4rem);
  font-weight: 900; letter-spacing: -.03em; margin: 0 0 8px;
  text-transform: uppercase;
}
.hero-sub { color: #d5e6f7; font-size: .92rem; max-width: 36rem; }
.hero-hits { position: relative; z-index: 2; }

.cta-pair { display: grid; gap: 10px; }
.cta-home { max-width: 100%; }
.hit {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 14px; border-radius: 18px; font-weight: 800;
  box-shadow: 0 12px 28px rgba(21, 84, 201, .22);
}
.hit-ico { flex: none; display: grid; place-items: center; }
.hit-txt { display: grid; gap: 2px; min-width: 0; flex: 1; line-height: 1.15; }
.hit-txt b { font-size: 1.02rem; }
.hit-txt small { font-size: .72rem; font-weight: 650; opacity: .9; }
.hit-arr { margin-left: auto; font-size: 1.35rem; opacity: .85; }
.hit-go { background: linear-gradient(180deg, #3b9bff, #1d6feb); color: #fff; }
.hit-tg { background: linear-gradient(180deg, #163056, #0b1f3a); color: #fff; }
.hit.muted { opacity: .55; }

.feats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 0;
}
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px;
}
.feat small { display: block; color: var(--muted); font-size: .72rem; }
.cats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 8px 0 18px;
}
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  min-height: 96px; padding: 14px 12px; font-weight: 800;
}
.cat small { display: block; color: var(--muted); font-weight: 600; margin-top: 4px; }
.app-band {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; margin-bottom: 22px; display: grid; gap: 12px;
  box-shadow: 0 10px 28px rgba(12, 35, 64, .06);
}
.app-mark { font-size: 1.7rem; }

.doors, .home-hub { padding: 4px 0 22px; }
.doors h2, .home-hub h2 { font-size: 1.2rem; margin: 4px 0 8px; }
.doors-lead { color: var(--muted); margin: 0 0 12px; }
.door-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.door {
  display: grid; gap: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px 14px; min-height: 92px;
}
.door b { font-size: 1.02rem; }
.door small { color: var(--muted); font-weight: 600; }
.door-tw { border-color: rgba(34, 197, 94, .45); }
.door-go { border-color: rgba(59, 130, 246, .45); }
.hub-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.hub {
  display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 12px; min-height: 88px; font-weight: 800;
}
.hub small { color: var(--muted); font-weight: 600; }
.store {
  display: block; text-align: center; min-height: 44px; line-height: 44px;
  border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; font-size: .78rem;
}

.prod-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.prod-list.compact { gap: 8px; }
.prod {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 12px;
  box-shadow: 0 8px 22px rgba(12, 35, 64, .06);
}
.prod.is-self { border-color: var(--cyan); }
.prod-logo {
  width: 72px; height: 72px; border-radius: 18px; background: #fff;
  display: grid; place-items: center; overflow: hidden;
}
.prod-logo img { width: 64px; height: 40px; object-fit: contain; }
.prod-letter { font-weight: 900; color: #041018; font-size: 1.4rem; }
.prod-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.prod-name { font-weight: 800; font-size: 1rem; display: block; }
.prod-host { color: var(--muted); font-size: .75rem; margin: 2px 0 0; }
.prod-on { color: #22c55e; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.prod-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.act {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: .72rem; font-weight: 800;
}
.act-go { background: #2563eb; color: #fff; }
.act-tw { background: var(--navy); color: #fff; border: 1px solid transparent; }
.prod-wrap { padding: 8px 0 18px; }

.sites-band { padding: 8px 0 28px; }
.sites-head h2 { font-size: 1.2rem; }
.sites-head p { color: var(--muted); }
.more-sites { color: var(--cyan); font-weight: 800; }
.sites-grid {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.site-card {
  display: grid; gap: 6px; justify-items: center; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 8px; min-height: 92px;
}
.site-card img { height: 28px; width: auto; max-width: 100%; object-fit: contain; }
.site-card b { font-size: .78rem; }
.site-card small { color: var(--muted); font-size: .68rem; }
.site-card.is-here { border-color: var(--cyan); }

.page-head { padding: 18px 0 8px; }
.lead { color: var(--muted); }
.eyebrow { color: var(--cyan); letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; font-weight: 800; }
.hits-wrap { padding: 8px 0 18px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--cyan); font-weight: 700; }

.seo-wrap { padding: 4px 0 28px; }
.seo-article { background: var(--card); border-radius: 20px; padding: 18px 16px; }
.feat, .cat, .door, .hub, .flag-card, .site-card, .seo-article, .split article, .split aside, .country-card {
  box-shadow: 0 8px 22px rgba(12, 35, 64, .06);
}
.seo-article h2 { font-size: 1.05rem; color: var(--cyan); }
.seo-article p, .seo-article li { color: var(--muted); }
.seo-article a { color: var(--cyan); font-weight: 700; }
.seo-toc, .seo-dir { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.seo-toc a, .seo-dir a, .seo-dir span {
  border: 1px solid var(--line); border-radius: 999px; padding: .22rem .7rem; font-size: .78rem;
}
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 10px; margin-bottom: 10px; color: var(--muted); }
.steps span {
  width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800; flex: none;
}
details { border-top: 1px solid var(--line); padding: 10px 0; }
details summary { cursor: pointer; font-weight: 700; }

.foot {
  text-align: center; padding: 18px 0 24px; color: var(--muted); font-size: .82rem;
  border-top: 1px solid var(--line);
}
.foot-mark { font-size: 1.8rem; margin: 0 auto 8px; }
.foot-dir { justify-content: center; margin: 12px 0; }
.foot-stats {
  list-style: none; padding: 0; margin: 16px 0 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.foot-stats li {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px;
}
.foot-stats b { display: block; color: var(--ink); font-size: .82rem; }
.foot-stats span { color: var(--muted); font-size: .68rem; }
.muted { color: var(--muted); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; width: 100%;
  z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a, .tabbar .tab-menu {
  display: grid; justify-items: center; gap: 3px; color: #6b829e;
  font-size: .62rem; font-weight: 700; padding: 6px 2px;
  background: transparent; border: 0; font-family: inherit; cursor: pointer;
}
.tabbar a.is-on { color: var(--cyan); }

.empty-page { text-align: center; padding: 48px 0; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.flags-wrap { padding: 18px 0 28px; }
.finder {
  display: block;
  margin: 0 0 16px;
}
.finder input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}
.finder input:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.flags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}
.flag-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.flag-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.flag-card img {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.flag-card strong, .flag-card span {
  text-align: center;
  max-width: 100%;
  line-height: 1.25;
}
.flag-card strong { font-size: .95rem; }
.flag-face span { color: var(--muted); font-size: .8rem; }
.flag-card:hover .flag-face strong { color: var(--cyan); }
.flag-links {
  display: flex;
  gap: 6px;
  width: 100%;
}
.flag-links a {
  flex: 1;
  text-align: center;
  font-size: .72rem;
  font-weight: 800;
  padding: 7px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #eef6ff;
}
.flag-links a:first-child {
  background: linear-gradient(180deg, #3b9bff, #1d6feb);
  color: #fff;
  border-color: transparent;
}
.flag-links a:last-child {
  background: linear-gradient(180deg, #163056, #0b1f3a);
  color: #fff;
  border-color: transparent;
}
.flag-card.is-hidden { display: none; }
.empty-flags { text-align: center; color: var(--muted); padding: 28px 0; }

.country-page { padding-bottom: 28px; }
.country-hero { padding-top: 22px; }
.back { color: var(--cyan); font-size: .92rem; font-weight: 700; }
.country-card {
  margin-top: 16px;
  background: linear-gradient(180deg, #f4f9ff, var(--card));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px 32px;
  text-align: center;
}
.country-flag {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.country-card h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.country-card .lead { margin-inline: auto; color: var(--muted); }
.country-card .cta-pair { margin: 18px auto 10px; max-width: 420px; }
.hub-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px auto 4px;
  max-width: 420px;
}
.hub-door {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
}
.hub-door b { font-size: .98rem; }
.hub-door small { color: rgba(255,255,255,.84); font-size: .72rem; line-height: 1.3; }
.hub-door-login { background: linear-gradient(180deg, #3b9bff, #1d6feb); }
.hub-door-twitter { background: linear-gradient(180deg, #163056, #0b1f3a); }
.country-body { color: var(--muted); margin: 0 0 14px; }
.sibling { margin: 8px 0 0; }
.sibling a { color: var(--cyan); font-weight: 700; }
.seo-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.seo-tags li {
  border: 1px solid var(--line);
  background: rgba(29, 111, 235, .08);
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: .78rem;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}
.split article, .split aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.steps span {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 800;
}
.country-page details { border-top: 1px solid var(--line); padding: 10px 0; }
.country-page details:first-of-type { border-top: 0; }
.country-page summary { cursor: pointer; font-weight: 700; }
.more { margin-top: 28px; }
.mini-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-flags img {
  width: 36px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  opacity: .85;
}
.mini-flags a:hover img { opacity: 1; outline: 2px solid var(--cyan); }
html[dir="rtl"] .steps li { flex-direction: row-reverse; }
html[dir="rtl"] .country-card { text-align: right; }
html[dir="rtl"] .seo-tags, html[dir="rtl"] .country-card { text-align: center; }

@media (min-width: 900px) {
  body.app { padding-bottom: 0; }
  .wrap { width: min(1180px, calc(100% - 48px)); }
  .tabbar { display: none; }
  .menu-btn, .top-spacer { display: none; }
  .drawer { display: none !important; }
  .top {
    display: flex; grid-template-columns: none;
    padding: 10px 28px; min-height: 72px; background: #fff;
  }
  .brand { justify-content: flex-start; }
  .brand-copy { justify-items: start; }
  .desk-nav {
    display: flex; align-items: center; gap: 18px; margin-left: auto;
    font-size: .88rem; font-weight: 700;
  }
  .desk-nav a { color: #0c2340; opacity: .9; }
  .desk-nav a:hover { color: var(--cyan); }
  .nav-go {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    color: #fff !important; border-radius: 999px; padding: 8px 16px;
    font-weight: 800; opacity: 1 !important;
  }
  .nav-safe {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--muted); font-size: .72rem; font-weight: 700; margin-right: 8px;
  }
  .wordmark { font-size: 1.85rem; }
  .hero {
    aspect-ratio: auto;
    min-height: 640px;
    max-height: none;
    height: min(82vh, 780px);
  }
  .hero-bg--mob { display: none; }
  .hero-bg--pc {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center center;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,0) 48%, rgba(234,244,255,.22) 78%, rgba(234,244,255,.72) 100%);
  }
  .hero-stage {
    left: max(28px, calc((100% - 1180px) / 2));
    right: auto; bottom: 40px; width: min(640px, 58vw);
  }
  .hero-line { font-size: 2.6rem; }
  .cta-home { max-width: 640px; grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: repeat(4, 1fr); padding: 28px 0; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .door-grid { grid-template-columns: 1fr 1fr; }
  .hub-list { grid-template-columns: repeat(4, 1fr); }
  .app-band { grid-template-columns: 1fr auto; align-items: center; padding: 22px 28px; }
  .sites-grid.ours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sites-grid.dir { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .prod-list { grid-template-columns: 1fr; }
  .prod { grid-template-columns: 88px 1fr; padding: 16px; }
  .hit { min-height: 70px; border-radius: 18px; }
  .foot-stats { grid-template-columns: repeat(4, 1fr); }
  .nav-safe { display: inline-flex; }
  .split { grid-template-columns: 1fr 1fr; }
  .flags { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
}
