:root {
  --bg: #07111F;
  --bg-2: #0C1A30;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --ink: #F4F7FB;
  --muted: #9AA9BF;
  --blue: #1475E1;
  --blue-2: #3C9BFF;
  --gold: #F5C451;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -80px, rgba(20, 117, 225, 0.28), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2 { line-height: 1.15; margin: 0 0 .6rem; }
p { margin: 0 0 .85rem; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 31, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .01em;
}
.brand img {
  width: 92px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px 6px;
}
.brand span { color: var(--blue-2); font-size: .92rem; }
.top-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .9rem;
  color: var(--muted);
  font-size: .9rem;
}

.hero { padding: 48px 0 18px; text-align: center; }
.eyebrow {
  display: inline-block;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: .8rem;
}
.hero h1 { font-size: clamp(2.1rem, 6vw, 4.1rem); letter-spacing: -.04em; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.hero .lead { margin-inline: auto; }

.finder {
  display: block;
  width: min(420px, 100%);
  margin: 22px auto 0;
}
.finder input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  border-radius: 999px;
  padding: .9rem 1.1rem;
  font: inherit;
  outline: none;
}
.finder input:focus { border-color: var(--blue-2); }

.promo-wrap { padding: 4px 0 18px; }
.promo {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  border: 1px solid var(--line);
}
.promo img,
.promo amp-img {
  width: 100%;
  height: auto;
  display: block;
}

.flags-wrap { padding: 12px 0 28px; }
.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);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.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-card span { color: var(--muted); font-size: .8rem; }
.flag-card:hover,
.flag-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(60, 155, 255, .5);
  background: rgba(20, 117, 225, .16);
}
.flag-card.is-hidden { display: none; }
.empty-flags { text-align: center; color: var(--muted); padding: 28px 0; }

.country-page { padding-bottom: 64px; }
.country-hero { padding-top: 28px; }
.back { color: var(--blue-2); font-size: .92rem; }
.country-card {
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(20,117,225,.16), 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.8rem, 4vw, 2.8rem); }
.country-card .lead { margin-inline: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3C9BFF, var(--blue));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(20, 117, 225, .35);
}
.btn.muted { opacity: .5; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.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;
}
details { border-top: 1px solid var(--line); padding: 10px 0; }
details:first-of-type { border-top: 0; }
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[href]:hover img { opacity: 1; outline: 2px solid var(--blue-2); }

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: .92rem;
}
.empty-page { text-align: center; padding: 72px 0; }
.empty-page .btn { margin-top: 8px; }
.seo-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  list-style-type: none;
  margin: 18px 0 0;
  padding: 0;
}
.seo-tags li {
  list-style: none;
  list-style-type: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: .78rem;
  color: var(--muted);
}
.seo-tags li::marker { content: none; }
.seo-tags a { color: inherit; }
.seo-wrap { padding: 8px 0 72px; }
.seo-article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px 20px;
}
.seo-article-head { margin-bottom: 16px; }
.seo-article h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.seo-article h3 { font-size: 1.12rem; margin: 22px 0 8px; }
.seo-article p, .seo-article li { color: var(--muted); }
.seo-article a { color: var(--blue-2); font-weight: 700; }
.seo-article ol { padding-left: 20px; }
.seo-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.seo-toc a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .28rem .75rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
}
.seo-dir {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
  margin: 12px 0 8px;
}
.seo-dir li { list-style: none; }
.seo-dir a {
  display: inline-block;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
}
.seo-dir span { color: var(--muted); font-weight: 500; }
.seo-langs { margin-top: 28px; }
.seo-langs > .lead { max-width: none; }
.seo-lang {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px 16px;
  margin-top: 12px;
}
.seo-lang-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 800;
}
.seo-lang-head img,
.seo-lang-head amp-img {
  width: 28px;
  height: 19px;
  object-fit: cover;
  border-radius: 3px;
  flex: 0 0 auto;
}
.seo-lang-head span { color: var(--muted); font-weight: 500; font-size: .9rem; }
.seo-lang .seo-tags {
  justify-content: flex-start;
  margin-top: 0;
}
.seo-lang .seo-tags a {
  color: var(--muted);
  font-weight: 600;
}
html[dir="rtl"] .steps li { flex-direction: row-reverse; }
html[dir="rtl"] .split, html[dir="rtl"] .country-card { text-align: right; }
html[dir="rtl"] .seo-tags, html[dir="rtl"] .country-card { text-align: center; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .hero { padding-top: 28px; }
}
