/* ISORA v5 — тёмный глянец в стиле аватарки.
   Michroma (латиница-витрина) + Unbounded (русские заголовки) + системный текст. */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-display: 'Michroma', system-ui, sans-serif;
  --font-head: 'Unbounded', system-ui, sans-serif;
  --bg: #000;
  --card: rgba(22, 24, 33, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --text: #fff;
  --hint: #98989f;
  --accent: #0a84ff;
  --accent2: #00c6ff;
  --green: #30d158;
  --violet: #7c6cf5;
  --grad: linear-gradient(135deg, #0a84ff 0%, #00c6ff 100%);
  --glow: 0 8px 32px rgba(10, 132, 255, 0.4);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans); background: var(--bg); color: var(--text);
  font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(800px 480px at 8% -4%, rgba(10, 132, 255, 0.16), transparent 60%),
    radial-gradient(700px 460px at 95% 6%, rgba(124, 108, 245, 0.14), transparent 60%),
    radial-gradient(1000px 700px at 50% 115%, rgba(10, 132, 255, 0.08), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: var(--accent); }
.hidden { display: none !important; }
.wordmark { font-family: var(--font-display); letter-spacing: 0.32em; text-indent: 0.32em; }
.wordmark.small { font-size: 15px; }

/* Навигация */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; padding: 12px 20px;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; }
.brand .wordmark { font-size: 14px; }
.nav .links { display: flex; gap: 16px; margin-left: auto; }
.nav .links a { color: var(--hint); text-decoration: none; font-size: 15px; }
.nav .links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav .links { display: none; } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; min-height: 48px; border-radius: 14px;
  font-size: 17px; font-weight: 600; font-family: var(--font-sans);
  text-decoration: none; cursor: pointer; border: 1px solid var(--line);
  background: var(--card); color: var(--accent);
  transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); opacity: 0.85; }
.btn.primary { background: var(--grad); border: none; color: #fff; box-shadow: var(--glow); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.btn.ghost { background: var(--card); }
.btn.big { font-size: 18px; padding: 14px 28px; }
.btn.small { min-height: 36px; padding: 7px 14px; font-size: 14px; border-radius: 11px; }

/* Hero */
.hero { position: relative; text-align: center; padding: 64px 20px 40px; max-width: 860px; margin: 0 auto; }
.hero-glow {
  position: absolute; inset: -40px 0 0; pointer-events: none;
  background: radial-gradient(520px 340px at 50% 30%, rgba(10, 132, 255, 0.22), transparent 70%);
}
.hero-emblem {
  width: min(200px, 52vw); border-radius: 26%;
  filter: drop-shadow(0 16px 50px rgba(10, 132, 255, 0.35));
  position: relative;
}
.hero-word { font-size: clamp(28px, 6vw, 44px); margin-top: 14px; }
.hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(26px, 5vw, 46px); line-height: 1.18; margin: 14px 0 10px;
  background: linear-gradient(180deg, #fff 40%, #9ecbff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .sub { color: var(--hint); font-size: 16px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.stats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 20px; min-width: 110px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.stat b { display: block; font-size: 24px; font-family: var(--font-display); }
.stat span { color: var(--hint); font-size: 13px; }
.duck-spot { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.duck-spot.left { align-items: flex-start; max-width: 860px; margin-left: auto; margin-right: auto; padding: 0 20px; }
.duck { width: 120px; height: 120px; }
.duck.small { width: 84px; height: 84px; }
.duck svg { width: 100%; height: 100%; }
.speech {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px;
  padding: 8px 14px; font-size: 15px; color: var(--text);
}

/* Секции */
.section { max-width: 860px; margin: 0 auto; padding: 36px 20px 8px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--hint); }
.section h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, 4vw, 32px); margin: 6px 0 8px; }
.hint { color: var(--hint); font-size: 15px; }
.hint #you-city { color: var(--text); }

/* Глобус */
#globe-wrap {
  position: relative; margin-top: 14px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(600px 380px at 50% 40%, rgba(10, 40, 90, 0.5), #020306 75%);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}
/* Карта Европы из мини-апа */
.eu-photo { display: block; width: 100%; height: auto; aspect-ratio: 640/384; object-fit: cover; }
.eu-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 90% 85% at 50% 45%, transparent 55%, rgba(0,0,0,0.5) 100%); }
.eu-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,0.45), transparent); }
.eu-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.eu-you { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%,-50%); background: #0a84ff; box-shadow: 0 0 10px 3px rgba(10,132,255,0.7); }
.eu-youlabel { position: absolute; transform: translate(10px,-18px); font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.85); }
.eu-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%,-50%); }
.eu-pill {
  position: absolute; transform: translate(-50%,-50%);
  display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px;
  background: rgba(18,20,28,0.62); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.16); color: #fff; font-family: var(--font-sans);
  font-size: 12.5px; cursor: pointer; white-space: nowrap; transition: transform 0.12s ease;
}
.eu-pill:active { transform: translate(-50%,-50%) scale(0.94); }
.eu-pill.sel { border-color: rgba(255,255,255,0.55); }
.eu-pill .eu-flag { font-size: 14px; line-height: 1; }
.eu-pill .eu-city { font-weight: 700; }
.eu-pill .eu-ping { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: #9fd4ff; }
.eu-pill .eu-ping small { font-size: 10px; color: rgba(255,255,255,0.55); font-family: var(--font-sans); }
.eu-pill .eu-pulse { width: 6px; height: 6px; border-radius: 50%; }
.glass-card .time { display: block; font-size: 12px; color: rgba(235,235,245,0.45); }
#globe-canvas { display: block; width: 100%; height: min(66vw, 480px); touch-action: none; cursor: default; }
/* Подписи стран прямо на глобусе */
.glabel {
  position: absolute; display: flex; align-items: center; gap: 7px;
  transform: translate(-50%, -130%);
  background: rgba(14, 18, 28, 0.68); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  padding: 5px 12px 5px 8px; color: #fff; font-family: var(--font-sans);
  font-size: 14px; cursor: pointer; white-space: nowrap; z-index: 3;
  transition: transform 0.12s ease;
}
.glabel:active { transform: translate(-50%, -130%) scale(0.94); }
.glabel .gmeta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.glabel .gmeta b { font-size: 13px; }
.glabel .gmeta small { font-size: 11px; color: var(--hint); font-family: var(--font-display); }
.glabel.off { opacity: 0.55; }
.glass-card {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: rgba(20, 24, 34, 0.72); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 12px 14px;
  display: flex; gap: 12px; align-items: center;
  animation: pop 0.25s ease;
}
@keyframes pop { from { transform: translateY(8px) scale(0.98); opacity: 0; } }
.glass-card .flag { font-size: 34px; }
.glass-card .meta { flex: 1; min-width: 0; }
.glass-card .meta b { font-size: 17px; }
.glass-card .meta small { display: block; color: var(--hint); font-size: 13px; }
.glass-card .ping { font-family: var(--font-display); font-size: 20px; }
.glass-card .x { background: rgba(118,118,128,.25); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; cursor: pointer; flex-shrink: 0; }
#globe-fallback { position: absolute; inset: auto 12px 12px; text-align: center; color: var(--hint); font-size: 14px; }
#globe-loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--hint); font-size: 15px; pointer-events: none; }
.verdict { margin-top: 12px; color: var(--hint); font-size: 15px; min-height: 22px; }

/* Карточки стран и тарифов */
.cards { display: grid; gap: 10px; margin-top: 14px; }
.cards.tariffs { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.srow, .tcard {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; color: var(--text); font-family: var(--font-sans); font-size: 15px;
  cursor: pointer; width: 100%; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform 0.12s ease, border-color 0.2s ease;
  position: relative; text-decoration: none;
}
.srow:active, .tcard:active { transform: scale(0.98); }
.srow.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--glow); }
.srow .flag { font-size: 28px; }
.srow .meta { flex: 1; min-width: 0; }
.srow .meta b { display: block; font-size: 16px; }
.srow .meta small { color: var(--hint); font-size: 13px; }
.srow .ping { font-family: var(--font-display); font-size: 16px; white-space: nowrap; }
.srow .ping small { font-size: 11px; color: var(--hint); font-family: var(--font-sans); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.bars i { display: block; width: 3px; border-radius: 1px; }
.tcard { flex-direction: column; align-items: stretch; gap: 6px; cursor: default; }
.tcard h3 { font-size: 16px; font-weight: 600; }
.tcard .price { font-family: var(--font-display); font-size: 22px; margin: 2px 0 8px; }
.tcard .price small { font-size: 12px; color: var(--hint); font-family: var(--font-sans); }
.tcard.hit { border-color: var(--green); }
.tcard .badge {
  position: absolute; top: -9px; right: 12px; background: var(--green); color: #052b16;
  font-size: 12px; font-weight: 800; border-radius: 8px; padding: 2px 10px;
}
.tcard .ios-btn {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  background: var(--grad); color: #fff; font-weight: 700; border-radius: 12px; text-decoration: none;
}

/* Подвал */
footer { max-width: 860px; margin: 30px auto 0; padding: 20px; border-top: 1px solid var(--line); }
.foot-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.foot-links a { color: var(--hint); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.tiny { color: var(--hint); font-size: 12px; margin-top: 10px; }
#app { max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }
#app .cta-row { justify-content: flex-start; }
