/* ==========================================================================
   IPTV Nordic — Global Stylesheet
   Brand: white · #004B87 (Nordic Blue) · #FFCD00 (Nordic Gold)
   Markets: Sweden · Norway · Denmark
   ========================================================================== */

/* ---------- CSS Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px; /* offset sticky navbar for anchor jumps */
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

a, button { -webkit-tap-highlight-color: transparent; }

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Brand Variables ---------- */
:root {
  /* Colors */
  --blue: #004B87;          /* Nordic Blue — navbar, footer, dark sections */
  --blue-dark: #003561;     /* Deep blue — gradients, hovers */
  --blue-mid: #0A5FA5;      /* Mid blue — sub-sections, ticker */
  --gold: #FFCD00;          /* Nordic Gold — CTAs, badges, highlights */
  --gold-hover: #E6B800;    /* Gold hover state */
  --gold-text: #003561;     /* Dark text on gold buttons */
  --bg: #F4F8FC;            /* Light page background */
  --bg-alt: #EAF2FA;        /* Alt light section */
  --text: #0D1B2A;          /* Near-black body text */
  --text-muted: #5A6B7B;    /* Muted secondary text */
  --white: #FFFFFF;
  --card: #FFFFFF;
  --border: #D6E2F0;
  --accent: #FFCD00;        /* Card top accent */
  --shadow-sm: 0 2px 8px rgba(0, 75, 135, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 75, 135, 0.12);
  --shadow-lg: 0 18px 48px rgba(0, 75, 135, 0.18);

  /* Fonts */
  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --max: 1200px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { color: var(--text-muted); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 72px 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--bg-alt);
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 16px;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-head p {
  font-size: 1.05rem;
  margin-top: 12px;
}

.ilink { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; transition: color .2s ease; }
.ilink:hover { color: var(--gold-hover); }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.bg-blue { background: var(--blue); }
.bg-light { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 50px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--gold-text);
  box-shadow: 0 8px 20px rgba(255, 205, 0, 0.35);
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 205, 0, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  transform: translateY(-3px);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-lg { padding: 17px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo .logo-iptv { color: var(--blue); }
.logo .logo-nordic {
  color: var(--gold-text);
  background: var(--gold);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn { padding: 11px 26px; font-size: 0.9rem; }

/* ---------- Language Switcher ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 3px;
}

.lang-switch a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  padding: 5px 9px;
  border-radius: 40px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background .2s ease, color .2s ease;
}

.lang-switch a:hover { color: var(--blue); }

.lang-switch a.active {
  background: var(--blue);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
  transition: transform .3s ease, opacity .3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 205, 0, 0.12), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(10, 95, 165, 0.5), transparent 45%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero h1 { color: var(--white); }
.hero h1 .hl { color: var(--gold); }

.hero .sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin: 22px auto 34px;
  max-width: 640px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-badges {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }

.flag-row {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 1.5rem;
}

/* ---------- Category Cards (dark panel) ---------- */
.cat-section {
  background: var(--white);
  color: var(--text);
}

.cat-section .section-head h2 { color: var(--text); }
.cat-section .section-head p { color: var(--text-muted); }

.cat-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 40px;
  margin-bottom: 18px;
}

/* Fallback (no JS): a centered wrapping row */
.cat-grid {
  display: flex;
  flex-wrap: wrap;
  row-gap: 16px;
  justify-content: center;
}

/* Marquee (JS-enhanced): single looping line, full viewport width */
.cat-grid.is-marquee {
  flex-wrap: nowrap;
  overflow: hidden;
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
}

.cat-track {
  display: flex;
  width: max-content;
  animation: cat-scroll 36s linear infinite;
}

.cat-grid.is-marquee:hover .cat-track { animation-play-state: paused; }

@keyframes cat-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.cat-card {
  flex: 0 0 auto;
  width: 180px;
  margin-right: 16px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 30px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .cat-track { animation: none; }
  .cat-grid.is-marquee { overflow-x: auto; }
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.cat-card .cat-ic { color: var(--gold); margin-bottom: 14px; display: flex; justify-content: center; }
.cat-card .cat-ic svg { width: 34px; height: 34px; }
.cat-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 7px; }
.cat-card p { color: rgba(255, 255, 255, 0.6); font-size: 0.84rem; margin: 0; line-height: 1.5; }

/* ---------- SEO Guide (premium long-form) ---------- */
.guide { counter-reset: guide; }
.guide .container { max-width: 920px; }

.guide-title {
  display: table;
  margin: 0 auto 40px;
  background: linear-gradient(135deg, #FFDE5C 0%, var(--gold) 55%, var(--gold-hover) 100%);
  color: var(--gold-text);
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.3;
  padding: 13px 26px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(255, 205, 0, 0.32);
}

.guide-intro {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.guide-intro p { color: var(--text); line-height: 1.9; margin: 0; font-size: 1.06rem; }
.guide-intro p::first-letter {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  float: left;
  line-height: 0.9;
  padding: 4px 12px 0 0;
  color: var(--blue);
}

.guide-block {
  counter-increment: guide;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.guide-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }

.guide-block h3 {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 14px;
  line-height: 1.3;
}
.guide-block h3::before {
  content: counter(guide);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #FFDE5C, var(--gold) 60%, var(--gold-hover));
  color: var(--gold-text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(255, 205, 0, 0.35);
}

.guide-block p { color: var(--text-muted); line-height: 1.85; margin: 0; }
.guide-intro a, .guide-block a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.guide-intro a:hover, .guide-block a:hover { color: var(--gold-hover); }
.guide strong { color: var(--text); font-weight: 700; }

.guide-cta {
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 205, 0, 0.18), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(10, 95, 165, 0.5), transparent 45%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 34px;
  text-align: center;
  color: #fff;
  margin-top: 32px;
  box-shadow: var(--shadow-lg);
}
.guide-cta h3 { color: #fff; font-size: clamp(1.35rem, 3vw, 1.8rem); margin-bottom: 12px; }
.guide-cta p { color: rgba(255, 255, 255, 0.9); margin-bottom: 26px; font-size: 1.05rem; }
.guide-cta .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 600px) {
  .guide-intro, .guide-block { padding: 24px 22px; }
  .guide-block h3 { font-size: 1.1rem; gap: 12px; }
  .guide-block h3::before { width: 34px; height: 34px; font-size: 1rem; }
}

/* ---------- Showcase scrollers (films / sport) ---------- */
.sx-section {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 205, 0, 0.08), transparent 45%),
    linear-gradient(180deg, #063363 0%, #04213f 55%, #021528 100%);
  color: #fff;
  padding: 64px 0;
  overflow: hidden;
}
.sx-section.sx-alt { background: var(--white); color: var(--text); }
.sx-section.sx-alt .sx-h2 { color: var(--text); }
.sx-section.sx-alt .sx-h2 span { color: var(--blue); }
.sx-section.sx-alt .sx-sub { color: var(--text-muted); }
.sx-section.sx-alt .sx-eyebrow { color: var(--blue); background: var(--bg-alt); border-color: var(--border); }
.sx-section.sx-alt .sx-note { color: var(--text-muted); }
.sx-section.sx-alt .sx-note strong { color: var(--blue); }
.sx-section.sx-alt .sx-note a { color: var(--blue); }
.sx-section.sx-alt .sx-wrap::before { background: linear-gradient(to right, var(--white), transparent); }
.sx-section.sx-alt .sx-wrap::after  { background: linear-gradient(to left,  var(--white), transparent); }

.sx-head { text-align: center; margin-bottom: 34px; padding: 0 16px; }
.sx-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); background: rgba(255, 205, 0, 0.12);
  border: 1px solid rgba(255, 205, 0, 0.28);
  border-radius: 40px; padding: 6px 16px; margin-bottom: 14px;
}
.sx-h2 { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 10px; }
.sx-h2 span { color: var(--gold); }
.sx-sub { color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; max-width: 720px; margin: 0 auto; }

.sx-wrap { position: relative; }
.sx-wrap::before, .sx-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.sx-wrap::before { left: 0;  background: linear-gradient(to right, #04213f, transparent); }
.sx-wrap::after  { right: 0; background: linear-gradient(to left,  #04213f, transparent); }

.sx-track { display: flex; gap: 14px; width: max-content; margin-bottom: 14px; }
.sx-row1 { animation: sx-goLeft 55s linear infinite; }
.sx-row2 { animation: sx-goRight 65s linear infinite; }
@keyframes sx-goLeft  { from { transform: translateX(0); }      to { transform: translateX(-50%); } }
@keyframes sx-goRight { from { transform: translateX(-50%); }   to { transform: translateX(0); } }
.sx-track:hover { animation-play-state: paused; }

.sx-card {
  width: 168px; height: 248px; border-radius: 14px; flex-shrink: 0;
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sx-card:hover { transform: scale(1.06); box-shadow: 0 10px 34px rgba(255, 205, 0, 0.30); border-color: var(--gold); }
.sx-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.sx-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,10,25,0.05) 0%, rgba(0,10,25,0) 45%, rgba(0,10,25,0.45) 85%, rgba(0,10,25,0.7) 100%); }
.sx-bottom { position: absolute; bottom: 0; left: 0; right: 0; padding: 11px; }
.sx-league { font-family: var(--font-head); font-size: 0.58rem; font-weight: 600; color: var(--gold); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 4px; }
.sx-title { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 4px; }
.sx-meta { font-size: 0.58rem; color: rgba(255, 255, 255, 0.6); }

.sx-live { position: absolute; top: 10px; left: 10px; background: #DD0000; color: #fff; font-family: var(--font-head); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.5px; padding: 3px 7px; border-radius: 5px; display: flex; align-items: center; gap: 4px; }
.sx-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: sx-blink 1s infinite; }
@keyframes sx-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }
.sx-qual { position: absolute; top: 10px; right: 10px; background: var(--gold); color: var(--gold-text); font-family: var(--font-head); font-size: 0.5rem; font-weight: 800; padding: 3px 7px; border-radius: 5px; }
.sx-soon { position: absolute; top: 10px; right: 10px; background: rgba(0,10,25,0.7); color: var(--gold); border: 1px solid var(--gold); font-family: var(--font-head); font-size: 0.5rem; font-weight: 700; padding: 3px 7px; border-radius: 5px; }
.sx-rating { position: absolute; top: 10px; left: 10px; background: rgba(0,10,25,0.7); color: var(--gold); font-family: var(--font-head); font-size: 0.56rem; font-weight: 700; padding: 3px 7px; border-radius: 5px; }

.sx-score { position: absolute; bottom: 12px; left: 10px; right: 10px; background: rgba(0,10,25,0.82); border: 1px solid rgba(255,255,255,0.12); border-radius: 7px; padding: 5px 9px; display: flex; align-items: center; justify-content: space-between; }
.sx-team { font-family: var(--font-head); font-size: 0.58rem; font-weight: 700; color: #fff; }
.sx-num { font-family: var(--font-head); font-size: 0.8rem; font-weight: 800; color: var(--gold); }
.sx-sep { font-size: 0.6rem; color: rgba(255,255,255,0.4); }

.sx-note { text-align: center; margin-top: 22px; font-size: 0.88rem; color: rgba(255,255,255,0.65); padding: 0 16px; }
.sx-note strong { color: var(--gold); font-weight: 700; }
.sx-note a { color: var(--gold); font-weight: 700; text-decoration: underline; }

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--blue-mid);
  color: var(--white);
  padding: 18px 0;
}

.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 14px 40px;
  flex-wrap: wrap;
  text-align: center;
}

.trust-bar span {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Trust bar — looping pill marquee */
.trust-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.trust-track {
  display: flex;
  width: max-content;
  animation: trust-scroll 40s linear infinite;
}

.trust-marquee:hover .trust-track { animation-play-state: paused; }

@keyframes trust-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.trust-marquee .trust-pill {
  flex: 0 0 auto;
  margin-right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 40px;
  padding: 9px 20px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.trust-marquee .trust-pill b { color: var(--gold); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
  .trust-marquee { overflow-x: auto; }
}

/* ---------- Channel Badge Grid ---------- */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.chan-badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 14px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
}

.chan-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.chan-badge .ic {
  font-size: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--bg-alt);
  border-radius: 14px;
  transition: background .2s ease;
}
.chan-badge:hover .ic { background: rgba(255, 205, 0, 0.20); }

/* ---------- Feature Cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 5px;
  background: var(--gold);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card .ic {
  font-size: 1.9rem;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--bg-alt);
  transition: background .2s ease;
}
.feature-card:hover .ic { background: rgba(255, 205, 0, 0.20); }

.feature-card h3 { margin-bottom: 10px; color: var(--blue); }

/* Why section — centered cards with gradient icon tiles */
.why-nordic .feature-card { text-align: center; }

.feat-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #FFDE5C 0%, var(--gold) 55%, var(--gold-hover) 100%);
  box-shadow: 0 8px 18px rgba(255, 205, 0, 0.35);
  color: var(--blue-dark);
}

.feat-icon svg { width: 28px; height: 28px; }

.why-steps {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue);
  margin: 12px 0;
}

.why-closing {
  text-align: center;
  max-width: 840px;
  margin: 44px auto 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* ---------- Pricing Cards ---------- */
.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.pricing-toggle button {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 50px;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all .2s ease;
}

.pricing-toggle button.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.pricing-toggle .save-hint {
  font-size: 0.8rem;
  color: var(--blue);
  background: var(--gold);
  padding: 4px 12px;
  border-radius: 40px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.price-card.featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }

.best-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--gold-text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 40px;
  white-space: nowrap;
}

.price-card h3 { color: var(--blue); margin-bottom: 6px; }
.price-card .plan-desc { font-size: 0.9rem; margin-bottom: 20px; }

.price-tag {
  font-family: var(--font-head);
  margin-bottom: 6px;
}

.price-tag .amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
}

.price-tag .per { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.price-alt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.price-features {
  margin-bottom: 26px;
  flex-grow: 1;
}

.price-features li {
  padding: 9px 0;
  font-size: 0.94rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--bg-alt);
}

.price-features li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Duration Pricing (callout + countdown + 4 plan cards) ---------- */
.price-callout {
  max-width: 780px;
  margin: 0 auto 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 26px;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
}

.price-callout strong { color: var(--blue); }
.price-callout .hot {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 2px 12px;
  border-radius: 40px;
  font-weight: 700;
  white-space: nowrap;
}

.price-note {
  max-width: 780px;
  margin: 0 auto 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 24px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.price-note strong { color: var(--text); }

.countdown-wrap { text-align: center; margin: 0 auto 40px; }
.countdown-label { font-family: var(--font-head); font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.countdown { display: inline-flex; gap: 12px; justify-content: center; }
.countdown .unit {
  background: var(--blue);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 66px;
  text-align: center;
}
.countdown .unit .num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.countdown .unit .lbl { font-size: 0.6rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 5px; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card.featured { border: 2px solid var(--gold); box-shadow: var(--shadow-md); }

/* Highlight the yearly plan when a CTA links straight to it (#annual) */
#annual { scroll-margin-top: 96px; }
.plan-card#annual:target { animation: annualPulse 1.8s ease 2; }
@keyframes annualPulse {
  0%, 100% { box-shadow: var(--shadow-md); }
  35% { box-shadow: 0 0 0 4px var(--gold), var(--shadow-lg); }
}

.plan-badge {
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--gold-text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px;
}
.plan-badge.empty { background: var(--bg-alt); color: transparent; }

.plan-body { padding: 24px 22px 26px; }
.plan-body h3 { color: var(--text); font-size: 1.4rem; margin-bottom: 2px; }
.plan-access { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 16px; }

.plan-price { display: flex; align-items: flex-start; gap: 3px; margin-bottom: 14px; font-family: var(--font-head); color: var(--blue); }
.plan-price .cur { font-size: 1.2rem; font-weight: 700; margin-top: 9px; }
.plan-price .amt { font-size: 3.1rem; font-weight: 800; line-height: 1; }

.plan-permo {
  background: rgba(255, 205, 0, 0.20);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 40px;
  padding: 9px 14px;
  text-align: center;
  margin-bottom: 10px;
}
.plan-save { font-size: 0.85rem; color: var(--text-muted); border-bottom: 1px solid var(--bg-alt); padding-bottom: 18px; margin-bottom: 18px; }
.plan-cta { margin-bottom: 20px; }
.plan-feats-title { text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.5px; color: var(--blue); margin-bottom: 12px; }
.plan-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.9rem; color: var(--text); padding: 6px 0; }
.plan-feats li::before { content: '✓'; color: #1a9e4b; font-weight: 800; flex-shrink: 0; }

@media (max-width: 1000px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  border: 3px solid var(--gold);
}

.step-card h3 { color: var(--blue); margin-bottom: 8px; }

/* Premium "3 steps" flow */
.steps-premium .steps-grid { position: relative; }
.steps-premium .steps-grid::before {
  content: '';
  position: absolute;
  top: 61px;
  left: 17%;
  right: 17%;
  height: 3px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.steps-premium .step-card { position: relative; z-index: 1; padding-bottom: 30px; }
.steps-premium .step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); transition: transform .25s ease, box-shadow .25s ease; }
.step-ic { font-size: 1.6rem; display: block; margin: 2px 0 8px; }

@media (max-width: 900px) {
  .steps-premium .steps-grid::before { display: none; }
}

/* ---------- Device Grid ---------- */
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.device-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.device-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.device-item .dev-ic { color: var(--blue); margin-bottom: 11px; display: flex; justify-content: center; }
.device-item .dev-ic svg { width: 30px; height: 30px; }
.device-item:hover .dev-ic { color: var(--gold-hover); }
.device-item h4 { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; color: var(--text); margin-bottom: 3px; }
.device-item p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* legacy emoji icon (other pages) */
.device-item .ic {
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  background: var(--bg-alt);
  border-radius: 14px;
}

@media (max-width: 900px) { .device-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .device-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}

.review-card .stars { color: var(--gold); font-size: 1.05rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-card .quote { color: var(--text); font-style: italic; margin-bottom: 16px; }
.review-card .reviewer { font-family: var(--font-head); font-weight: 600; color: var(--blue); font-size: 0.95rem; }
.review-card .loc { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Comparison Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 15px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

.compare-table thead th {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
}

.compare-table thead th.highlight { background: var(--gold); color: var(--gold-text); }

.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.compare-table tbody tr:nth-child(even) { background: var(--bg); }
.compare-table td.col-us { background: rgba(255, 205, 0, 0.10); font-weight: 600; }
.compare-table .yes { color: #1a9e4b; font-weight: 700; }
.compare-table .no { color: #d63030; font-weight: 700; }
.compare-table .maybe { color: #d9930a; font-weight: 700; }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q .plus {
  font-size: 1.5rem;
  color: var(--blue);
  transition: transform .3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q .plus { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-a p { padding: 0 24px 22px; }

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.blog-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }

.blog-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 40px;
  margin-bottom: 12px;
}

.blog-body h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--text); }
.blog-body p { font-size: 0.92rem; margin-bottom: 16px; flex-grow: 1; }

.blog-more {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue);
  font-size: 0.9rem;
}

.blog-more:hover { color: var(--gold-hover); }

/* ---------- Article ---------- */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px var(--gutter);
}

.article .meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 26px; }
.article h2 { margin: 38px 0 14px; color: var(--blue); }
.article h3 { margin: 26px 0 10px; }
.article p { margin-bottom: 16px; color: var(--text); }
.article ul.bullets { margin: 0 0 18px 20px; }
.article ul.bullets li { list-style: disc; margin-bottom: 8px; color: var(--text); }
.article .callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.12);
}

.form-group textarea { resize: vertical; min-height: 130px; }
.form-error { color: #d63030; font-size: 0.82rem; margin-top: 5px; display: none; }
.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-color: #d63030; }
.form-group.error .form-error { display: block; }

.form-success {
  display: none;
  background: rgba(26, 158, 75, 0.12);
  border: 1px solid #1a9e4b;
  color: #147a3a;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-weight: 500;
}

.contact-info .info-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.contact-info .info-block h3 { color: var(--blue); margin-bottom: 8px; font-size: 1.1rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 205, 0, 0.15), transparent 45%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 56px 32px;
}

.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); margin-bottom: 26px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.82);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer .logo { margin-bottom: 16px; }
.footer .logo .logo-iptv { color: var(--white); }

.footer p { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; margin-bottom: 18px; }

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
  font-family: var(--font-head);
}

.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  transition: color .2s ease;
}

.footer ul li a:hover { color: var(--gold); }

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background .2s ease, transform .2s ease;
}

.social-row a:hover { background: var(--gold); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 0;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  z-index: 2000;
  display: none;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 0.88rem; margin: 0; flex: 1 1 260px; }
.cookie-banner .cookie-btns { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 10px 22px; font-size: 0.88rem; }

/* ---------- Stat Row ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--gold);
}

.hero .stat-item .num { color: var(--gold); }
.stat-item .label { font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.stat-item.dark .num { color: var(--blue); }
.stat-item.dark .label { color: var(--text-muted); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cards-3, .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 54px 0; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .35s ease;
    height: calc(100vh - 74px);
    overflow-y: auto;
  }

  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--bg-alt); }
  .nav-links a.active::after { display: none; }

  .nav-cta .btn { display: none; }
  .nav-cta .hamburger { display: flex; }

  .hero { padding: 60px 0 54px; }
  .hero .sub { font-size: 1.05rem; }
  .btn { width: 100%; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
  .price-tag .amount { font-size: 2.2rem; }
  .trust-bar .container { gap: 10px 22px; }
  .trust-bar span { font-size: 0.85rem; }
}

/* ========== Mobile-first polish (≤640px) ========== */
@media (max-width: 640px) {
  section { padding: 44px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head p { font-size: 0.98rem; }
  h2 { font-size: 1.55rem; }

  /* Hero */
  .hero { padding: 52px 0 46px; }
  .hero .sub { font-size: 1rem; margin: 18px auto 26px; }
  .hero .section-tag, .hero .cat-eyebrow { font-size: 0.68rem; }
  .flag-row { font-size: 1.3rem; margin-bottom: 16px; }
  .btn-lg { padding: 15px 30px; font-size: 1rem; }

  /* Category slider — smaller cards, show more */
  .cat-card { width: 150px; padding: 24px 12px; }
  .cat-card h3 { font-size: 0.95rem; }
  .cat-card p { font-size: 0.78rem; }

  /* Showcase scrollers */
  .sx-section { padding: 48px 0; }
  .sx-card { width: 138px; height: 205px; }
  .sx-wrap::before, .sx-wrap::after { width: 48px; }
  .sx-sub { font-size: 0.9rem; }

  /* Why cards */
  .why-nordic .feature-card { padding: 28px 22px; }
  .feat-icon { width: 54px; height: 54px; }

  /* Pricing */
  .price-callout, .price-note { padding: 18px 20px; font-size: 0.95rem; }
  .countdown { gap: 8px; }
  .countdown .unit { min-width: 56px; padding: 10px 10px; }
  .countdown .unit .num { font-size: 1.35rem; }
  .plan-body { padding: 22px 20px; }
  .plan-price .amt { font-size: 2.7rem; }

  /* Steps */
  .step-card { padding: 28px 22px; }

  /* Reviews */
  .review-card { padding: 24px 22px; }

  /* Guide */
  .guide-title { font-size: 1.05rem; padding: 11px 18px; }
  .guide-intro { padding: 24px 22px; }
  .guide-intro p { font-size: 1rem; }
  .guide-intro p::first-letter { font-size: 2.1rem; }
  .guide-cta { padding: 36px 24px; }
  .guide-cta .btns { flex-direction: column; }
  .guide-cta .btns .btn { width: 100%; }

  /* CTA banners */
  .cta-banner { padding: 40px 22px; }
  .cta-banner p { font-size: 1rem; }

  /* Comparison table readability */
  .compare-table th, .compare-table td { padding: 12px 12px; font-size: 0.86rem; }
}

/* ========== Small phones (≤380px) ========== */
@media (max-width: 380px) {
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.4rem; }
  .cat-card { width: 140px; }
  .sx-card { width: 128px; height: 190px; }
  .plan-price .amt { font-size: 2.4rem; }
  .logo { font-size: 1.32rem; }
  .lang-switch a { padding: 5px 7px; font-size: 0.7rem; }
}

/* ========== Premium interactions ========== */
:focus-visible { outline: 3px solid rgba(255, 205, 0, 0.65); outline-offset: 2px; border-radius: 6px; }
.btn { -webkit-user-select: none; user-select: none; }
.btn:active { transform: translateY(0) scale(0.97); }

/* Frosted navbar once scrolled */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-md);
}

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* Sticky mobile buy-bar */
.mcta { display: none; }
@media (max-width: 768px) {
  .mcta {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 26px rgba(0, 75, 135, 0.14);
    animation: mctaUp .4s cubic-bezier(.16,1,.3,1);
  }
  .mcta .btn { flex: 1; width: auto; margin: 0; padding: 15px; font-size: 1rem; box-shadow: 0 8px 20px rgba(255,205,0,0.4); }
  body { padding-bottom: 74px; }
  @keyframes mctaUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
