:root{
  --bg: #f4f7fb;
  --surface: rgba(255,255,255,.82);
  --surface-strong: #ffffff;
  --surface-border: rgba(15,23,42,.08);
  --text: #14213d;
  --text-muted: #5f6f89;
  --brand: #0a5bd7;
  --brand-2: #123b87;
  --accent: #0ea5e9;
  --shadow-lg: 0 24px 64px rgba(16, 38, 75, .14);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, .08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --container: min(1220px, calc(100% - 40px));
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(10,91,215,.09), transparent 32%),
    radial-gradient(circle at top right, rgba(14,165,233,.08), transparent 26%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
  min-height:100vh;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button{font:inherit}

.container{width:var(--container); margin-inline:auto}
.shell{padding:20px 0 56px}

.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(18px);
  background:rgba(247,249,252,.75);
  border-bottom:1px solid rgba(15,23,42,.05);
}
.topbar__inner{
  width:var(--container);
  margin-inline:auto;
  display:flex; align-items:center; justify-content:space-between;
  gap:18px; min-height:84px;
}
.brand{
  display:flex; align-items:center; gap:16px;
}
.brand__logo{
  width:auto; height:34px;
}
.brand__badge{
  font-size:.85rem; color:var(--text-muted);
  padding:8px 12px; border-radius:999px; background:rgba(10,91,215,.08);
}
.market-actions{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end;
}
.select, .ghost-btn{
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.78);
  color:var(--text);
  border-radius:14px;
  padding:12px 14px;
  min-height:46px;
}
.select{min-width:210px}
.ghost-btn{cursor:pointer}
.locale-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 14px; border-radius:14px;
  background:#0f172a; color:white; font-size:.9rem; font-weight:700;
}

.hero{
  position:relative; overflow:hidden;
  background:linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.86));
  border:1px solid rgba(255,255,255,.65);
  box-shadow:var(--shadow-lg);
  border-radius:32px;
  padding:42px;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:32px;
  align-items:center;
}
.hero::before{
  content:"";
  position:absolute; inset:auto -10% -25% auto;
  width:380px; height:380px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(10,91,215,.16), transparent 62%);
  filter:blur(4px);
}
.hero__eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(10,91,215,.08);
  color:var(--brand);
  font-weight:700;
  margin-bottom:14px;
}
.hero h1{
  margin:0 0 12px;
  font-size:clamp(2rem, 5vw, 4rem);
  line-height:1.05;
  letter-spacing:-.04em;
}
.hero p{
  margin:0;
  max-width:64ch;
  color:var(--text-muted);
  font-size:1.04rem;
  line-height:1.7;
}
.hero__actions{
  display:flex; flex-wrap:wrap; gap:12px;
  margin-top:24px;
}
.primary-btn, .secondary-btn, .chip-btn{
  appearance:none;
  border:none;
  cursor:pointer;
  border-radius:16px;
  padding:14px 18px;
  font-weight:700;
  transition:.2s ease;
}
.primary-btn{background:linear-gradient(135deg, var(--brand), #195ad9); color:#fff; box-shadow:0 12px 24px rgba(10,91,215,.22)}
.primary-btn:hover{transform:translateY(-1px); box-shadow:0 16px 28px rgba(10,91,215,.26)}
.secondary-btn{background:white; color:var(--text); border:1px solid rgba(15,23,42,.10)}
.secondary-btn:hover,.chip-btn:hover,.ghost-btn:hover,.select:hover{transform:translateY(-1px); box-shadow:var(--shadow-md)}
.chip-btn{
  background:rgba(255,255,255,.78);
  border:1px solid rgba(15,23,42,.08);
  color:var(--text-muted);
}
.chip-btn.is-active{
  color:#fff;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
}
.hero__media{
  position:relative;
  min-height:420px;
}
.hero__media-card{
  position:relative;
  min-height:420px;
  border-radius:28px;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  border:1px solid rgba(255,255,255,.7);
  background:
    linear-gradient(180deg, rgba(10, 24, 54, .02), rgba(10, 24, 54, .38)),
    var(--hero-image) center/cover no-repeat;
}
.hero__media-card::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(17,24,39,.08), rgba(17,24,39,.42));
}
.hero__media-overlay{
  position:absolute; inset:auto 22px 22px 22px; z-index:2;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  border-radius:22px;
  backdrop-filter:blur(8px);
  padding:18px 20px;
  color:white;
}
.hero__media-overlay strong{display:block; font-size:1rem; margin-bottom:8px}
.hero__media-overlay span{display:block; font-size:.94rem; line-height:1.5; opacity:.88}

.section-block{margin-top:34px}
.section-head{
  display:flex; justify-content:space-between; align-items:end; gap:18px; margin-bottom:18px;
}
.section-head h2{
  margin:0;
  font-size:clamp(1.55rem, 2vw, 2.2rem);
  letter-spacing:-.03em;
}
.section-head p{
  margin:6px 0 0; color:var(--text-muted); max-width:72ch; line-height:1.6;
}
.grid{
  display:grid;
  gap:18px;
}
.grid--countries{
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:20px;
}
.grid--routes{grid-template-columns:repeat(3, minmax(0,1fr))}
.grid--categories{grid-template-columns:repeat(3, minmax(0,1fr))}
.grid--cards{grid-template-columns:repeat(3, minmax(0,1fr))}
.grid--featured{grid-template-columns:repeat(3, minmax(0,1fr))}

.panel{
  background:var(--surface);
  border:1px solid rgba(255,255,255,.70);
  box-shadow:var(--shadow-md);
  border-radius:26px;
  padding:28px;
  backdrop-filter: blur(18px);
}

.country-card, .feature-card, .content-card, .section-card, .route-card{
  position:relative; overflow:hidden;
  border-radius:24px;
  border:1px solid var(--surface-border);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  box-shadow:var(--shadow-md);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.country-card:hover, .feature-card:hover, .content-card:hover, .section-card:hover, .route-card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 48px rgba(15,23,42,.12);
  border-color:rgba(10,91,215,.18);
}
.country-card{
  position:relative;
  padding:22px;
  min-height:190px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:18px;
  cursor:pointer;
  overflow:hidden;
  border-radius:26px;
  background:
    radial-gradient(circle at top right, rgba(10,91,215,.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.90));
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 12px 30px rgba(15,23,42,.08);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.country-card::before{
  content:"";
  position:absolute;
  inset:auto -30px -30px auto;
  width:120px;
  height:120px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(10,91,215,.10), transparent 70%);
  pointer-events:none;
}

.country-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 46px rgba(15,23,42,.14);
  border-color:rgba(10,91,215,.18);
}

.country-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.country-card__flag-wrap{
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg, rgba(10,91,215,.10), rgba(10,91,215,.04));
  border:1px solid rgba(10,91,215,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}

.country-card__flag{
  width:32px;
  height:32px;
  object-fit:cover;
  display:block;
  border-radius:50%;
  box-shadow:0 4px 10px rgba(15,23,42,.08);
}

.country-card__code{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:32px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(15,23,42,.05);
  color:var(--text);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.country-card__body{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.country-card__name{
  margin:0;
  font-size:1.28rem;
  line-height:1.2;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--text);
}

.country-card__meta{
  color:var(--text-muted);
  font-size:.96rem;
  line-height:1.45;
}

.country-card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:auto;
}

.country-card__cta{
  font-size:.92rem;
  font-weight:700;
  color:var(--brand);
}

.country-card__arrow{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff;
  font-size:1rem;
  font-weight:800;
  box-shadow:0 10px 20px rgba(10,91,215,.20);
  transition:transform .2s ease;
}

.country-card:hover .country-card__arrow{
  transform:translateX(2px);
}
.route-card, .section-card{
  padding:24px;
  min-height:240px;
}
.route-card__icon, .section-card__icon{
  width:52px; height:52px; border-radius:16px;
  background:var(--accent-gradient);
  color:white;
  display:grid; place-items:center;
  font-weight:800;
  box-shadow:0 14px 28px rgba(10,91,215,.18);
  margin-bottom:18px;
}
.route-card h3, .section-card h3{margin:0 0 10px; font-size:1.22rem}
.route-card p, .section-card p{
  margin:0 0 18px;
  color:var(--text-muted); line-height:1.6;
}
.route-card__footer, .section-card__footer{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  margin-top:auto;
}
.count-badge{
  padding:8px 12px; border-radius:999px;
  background:rgba(15,23,42,.06); color:var(--text-muted);
  font-size:.88rem; font-weight:700;
}

.content-card__media{
  aspect-ratio: 16/10;
  background:
    linear-gradient(135deg, rgba(10,91,215,.16), rgba(14,165,233,.08)),
    var(--item-image) center/cover no-repeat;
}
.content-card__body{
  padding:20px 20px 18px;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px;
  border-radius:999px;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
  background:rgba(10,91,215,.08);
  color:var(--brand);
  margin-bottom:12px;
}
.content-card h3{
  margin:0 0 10px;
  font-size:1.08rem;
  line-height:1.35;
}
.content-card p{
  margin:0 0 16px;
  color:var(--text-muted);
  line-height:1.65;
  min-height:84px;
}
.card-actions{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.link-btn{
  border:none; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:0 16px;
  border-radius:14px;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff; font-weight:700;
}
.text-link{
  border:none; background:none; padding:0;
  color:var(--brand); font-weight:700; cursor:pointer;
}

.kpi-row{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}
.kpi{
  padding:22px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.82));
  border:1px solid rgba(15,23,42,.08);
  box-shadow:var(--shadow-md);
}
.kpi strong{
  display:block; font-size:2rem; letter-spacing:-.04em;
}
.kpi span{
  display:block; margin-top:6px; color:var(--text-muted);
}

.breadcrumbs{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin-bottom:16px; color:var(--text-muted); font-size:.95rem;
}
.breadcrumbs button{
  background:none; border:none; padding:0; color:var(--brand); font:inherit; font-weight:700; cursor:pointer;
}

.filters{
  display:flex; gap:10px; flex-wrap:wrap; margin:20px 0 24px;
}

.footer-note{
  margin-top:34px;
  padding:20px 24px;
  border-radius:24px;
  background:linear-gradient(135deg, rgba(10,91,215,.06), rgba(14,165,233,.07));
  border:1px solid rgba(10,91,215,.10);
  color:var(--text-muted);
  line-height:1.6;
}

.empty-state{
  padding:32px;
  border-radius:22px;
  border:1px dashed rgba(15,23,42,.16);
  background:rgba(255,255,255,.56);
  color:var(--text-muted);
  text-align:center;
}

.modal{
  position:fixed; inset:0; z-index:50;
  display:none;
}
.modal.is-open{display:block}
.modal__backdrop{
  position:absolute; inset:0; background:rgba(15,23,42,.42); backdrop-filter:blur(6px);
}
.modal__panel{
  position:relative;
  width:min(880px, calc(100% - 28px));
  max-height:min(88vh, 900px);
  overflow:auto;
  margin:5vh auto;
  border-radius:30px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  box-shadow:0 36px 80px rgba(15,23,42,.32);
  border:1px solid rgba(255,255,255,.62);
}
.modal__close{
  position:absolute; top:18px; right:18px;
  width:44px; height:44px;
  border:none; border-radius:50%; cursor:pointer;
  background:#0f172a; color:#fff; font-size:1.5rem; line-height:1;
}
.modal__hero{
  min-height:320px;
  background:
    linear-gradient(180deg, rgba(15,23,42,.12), rgba(15,23,42,.48)),
    var(--item-image) center/cover no-repeat;
}
.modal__body{
  padding:26px 28px 30px;
}
.modal__body h3{
  margin:0 0 12px;
  font-size:2rem; line-height:1.15; letter-spacing:-.04em;
}
.modal__body p{
  margin:0 0 18px;
  color:var(--text-muted); line-height:1.75;
}
.modal__meta{
  display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px;
}
.meta-pill{
  padding:9px 12px; border-radius:999px;
  background:rgba(15,23,42,.06); color:var(--text-muted); font-size:.88rem; font-weight:700;
}

@media (max-width: 1100px){
  .grid--countries{grid-template-columns:repeat(2, minmax(0,1fr))}
  .grid--routes,.grid--categories,.grid--cards,.grid--featured{grid-template-columns:repeat(2, minmax(0,1fr))}
  .hero{grid-template-columns:1fr; padding:28px}
  .hero__media{min-height:320px}
  .hero__media-card{min-height:320px}
  .kpi-row{grid-template-columns:repeat(2, minmax(0,1fr))}
}
@media (max-width: 760px){
  :root{--container:min(100% - 24px, 100%)}
  .topbar__inner{padding:12px 0; min-height:auto; align-items:flex-start; flex-direction:column}
  .market-actions{width:100%; justify-content:stretch}
  .market-actions > *{flex:1 1 100%}
  .grid--countries,.grid--routes,.grid--categories,.grid--cards,.grid--featured{grid-template-columns:1fr}
  .hero h1{font-size:2.2rem}
  .panel,.route-card,.section-card{padding:22px}
  .kpi-row{grid-template-columns:1fr}
  .modal__panel{margin:2vh auto}
}