/* =========================================================================
   BudaTEL - Core Stylesheet
   Modern European telecom design system
   Palette: dark blue / white / light gray + cyan / electric blue accents
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --brand-navy: #0a1f44;
  --brand-navy-2: #0d2b5e;
  --brand-blue: #1b5fe0;      /* electric blue */
  --brand-cyan: #16c8e6;      /* cyan accent */
  --brand-cyan-soft: #7fe3f0;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f6f8fc;
  --gray-100: #eef2f8;
  --gray-200: #dde5f0;
  --gray-300: #c3cede;
  --gray-500: #6b7a90;
  --gray-700: #38445a;
  --gray-900: #101828;

  /* Semantic (light theme defaults) */
  --bg: var(--gray-50);
  --bg-elevated: var(--white);
  --bg-inset: var(--gray-100);
  --surface-glass: rgba(255, 255, 255, 0.65);
  --surface-glass-border: rgba(255, 255, 255, 0.6);
  --text: var(--gray-900);
  --text-muted: var(--gray-500);
  --text-invert: var(--white);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --primary: var(--brand-blue);
  --primary-ink: #ffffff;
  --primary-foreground: #ffffff;
  --accent: var(--brand-cyan);
  --ring: rgba(27, 95, 224, 0.45);
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #d92d20;

  --hero-grad: radial-gradient(1200px 600px at 80% -10%, rgba(22,200,230,0.20), transparent 60%),
               radial-gradient(900px 500px at 10% 10%, rgba(27,95,224,0.18), transparent 55%),
               linear-gradient(180deg, #071634 0%, #0a1f44 55%, #0c264f 100%);

  /* Typography */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 31, 68, 0.16);
  --shadow-glow: 0 0 0 1px rgba(22, 200, 230, 0.25), 0 12px 40px rgba(22, 200, 230, 0.18);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;
}

[data-theme="dark"] {
  --bg: #0a1226;
  --bg-elevated: #101c38;
  --bg-inset: #0d1730;
  --surface-glass: rgba(16, 28, 56, 0.6);
  --surface-glass-border: rgba(127, 227, 240, 0.14);
  --text: #eaf1ff;
  --text-muted: #93a4c4;
  --text-invert: #eaf1ff;
  --border: #1d2c50;
  --border-strong: #274070;
  --primary: #3b82f6;
  --accent: #22d3ee;
  --ring: rgba(59, 130, 246, 0.5);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --gray-50: #0a1226;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; color: var(--text); text-wrap: balance; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.center { text-align: center; }
.muted { color: var(--text-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); margin-block: .6rem .5rem; }
.section-lead { color: var(--text-muted); max-width: 62ch; font-size: 1.05rem; }
.center .section-lead { margin-inline: auto; }

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 1000;
  background: var(--primary); color: var(--primary-ink);
  padding: .6rem 1rem; border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; background: var(--bg-btn); color: var(--primary-ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn--primary, .btn-primary { background: linear-gradient(135deg, var(--brand-blue), #2a74ff); color: #fff; }
.btn--primary:hover, .btn-primary:hover { box-shadow: 0 12px 30px rgba(27, 95, 224, 0.35); }
.btn--ghost, .btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); box-shadow: none; }
.btn--ghost:hover, .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--light, .btn-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); backdrop-filter: blur(6px); }
.btn--light:hover, .btn-light:hover { background: rgba(255,255,255,0.2); }
.btn--sm, .btn-sm { padding: .55rem 1rem; font-size: .85rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary); margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .97rem; }
.card-body { display: block; }
/* News cards use full-bleed media: cancel the card's own padding above the media */
.news-card { padding: 0; overflow: hidden; }
.news-card .card-media { margin: 0; border-radius: 0; aspect-ratio: 16/10; }
.news-card .card-body { padding: clamp(1.1rem, 3vw, 1.6rem); }

/* Vertical stack utility */
.stack { display: grid; gap: 1rem; }

/* Office hours badge */
.office-badge { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .9rem; font-weight: 600; }
.office-hint { color: var(--text-muted); font-weight: 400; }

/* Form status message + loading button */
.form-status { min-height: 1.2em; font-size: .92rem; margin-top: .3rem; }
.form-status.is-error { color: #d92d20; }
.form-status.is-success { color: var(--success); }
.btn.is-loading { opacity: .7; pointer-events: none; position: relative; }
.btn.is-loading::after { content: ""; width: 15px; height: 15px; margin-left: .55rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--surface-glass-border);
}

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: color-mix(in srgb, var(--accent) 75%, var(--text));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; }
.brand span b { color: var(--primary); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  padding: .55rem .8rem; border-radius: var(--radius-pill);
  font-size: .93rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: var(--bg-inset); }
.nav a.is-active { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

/* language + theme controls */
.lang-switch { display: inline-flex; background: var(--bg-inset); border-radius: var(--radius-pill); padding: 3px; border: 1px solid var(--border); }
.lang-switch button {
  border: 0; background: transparent; color: var(--text-muted);
  font-size: .8rem; font-weight: 700; padding: .3rem .6rem; border-radius: var(--radius-pill);
  transition: background-color .2s, color .2s;
}
.lang-switch button.is-active { background: var(--bg-elevated); color: var(--text); box-shadow: var(--shadow-sm); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-inset); border: 1px solid var(--border); color: var(--text);
  transition: background-color .2s, transform .2s, color .2s;
}
.icon-btn:hover { transform: translateY(-1px); color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.menu-toggle { display: none; }

/* Mobile nav */
@media (max-width: 1024px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--bg-elevated); border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter) 1.5rem; box-shadow: var(--shadow-lg);
    transform: translateY(-140%); transition: transform .4s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .8rem 1rem; font-size: 1rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-navy); color: #cdd8ee; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
[data-theme="dark"] .site-footer { background: #060d1f; }
.site-footer a { color: #cdd8ee; transition: color .2s; }
.site-footer a:hover { color: var(--brand-cyan-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem 1.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand svg { width: 40px; height: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; letter-spacing: .02em; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { font-size: .92rem; }
.footer-contact { display: grid; gap: .5rem; font-size: .92rem; margin-top: 1rem; }
.footer-contact div { display: flex; gap: .55rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: .2rem; color: var(--brand-cyan); flex: none; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.08); transition: background-color .2s, transform .2s; }
.footer-social a:hover { background: var(--brand-blue); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .85rem; color: #9fb0d0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--hero-grad);
  padding-block: clamp(4rem, 10vw, 8rem) clamp(4rem, 9vw, 7rem);
}
.hero * { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); letter-spacing: -.02em; }
.hero .lead { color: #c7d5f2; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 56ch; margin-top: 1.1rem; }
.hero .eyebrow { color: var(--brand-cyan-soft); }
.hero .eyebrow::before { background: var(--brand-cyan); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-visual { position: relative; z-index: 2; }

/* animated background canvas layer */
.bg-anim { position: absolute; inset: 0; z-index: 1; opacity: .9; }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat { }
.stat b { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); display: block; color: #fff; letter-spacing: -.02em; }
.stat span { color: #9fb6df; font-size: .88rem; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* ---------- Scroll progress + back to top ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 600; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); transition: width .1s linear; }
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(.9); transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Loading screen ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--brand-navy); transition: opacity .6s var(--ease), visibility .6s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader__logo { display: grid; place-items: center; gap: 1rem; }
.loader__logo svg { width: 64px; height: 64px; }
.loader__bar { width: 160px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.15); overflow: hidden; }
.loader__bar::after { content: ""; display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); border-radius: 4px; animation: loaderSlide 1s var(--ease) infinite; }
@keyframes loaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---------- Signal / tower animations ---------- */
.signal-wave { transform-origin: center; animation: pulseRing 3s ease-out infinite; }
.signal-wave.d2 { animation-delay: 1s; }
.signal-wave.d3 { animation-delay: 2s; }
@keyframes pulseRing { 0% { opacity: .8; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }
.float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.dash-flow { stroke-dasharray: 6 8; animation: dashMove 1.4s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -28px; } }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: grid; gap: .75rem; }
.acc-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); overflow: hidden; }
.acc-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; background: transparent; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.acc-trigger .chev { transition: transform .3s var(--ease); flex: none; color: var(--primary); }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc-panel .acc-inner { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 1.5rem; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand-blue), var(--brand-cyan)); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -1.7rem; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--primary); }
.tl-item time { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: .9rem; }
.tl-item h4 { margin: .2rem 0 .3rem; }
.tl-item p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Cookie banner + modal ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 800;
  max-width: 560px; margin-inline: auto;
  padding: 1.3rem; border-radius: var(--radius-lg);
  background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .5s var(--ease); opacity: 0;
}
.cookie-banner.show { transform: none; opacity: 1; }
.cookie-banner h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .9rem; color: var(--text-muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.cookie-prefs { display: none; margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.cookie-banner.prefs-open .cookie-prefs { display: block; }
.pref-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; }
.pref-row small { color: var(--text-muted); display: block; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 1rem;
  background: rgba(6, 13, 31, 0.55); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-elevated); border-radius: var(--radius-lg); padding: 2.2rem;
  max-width: 460px; width: 100%; text-align: center; box-shadow: var(--shadow-lg);
  transform: scale(.9) translateY(10px); transition: transform .4s var(--ease);
}
.modal-overlay.show .modal { transform: none; }
.modal__check { width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--primary); }
.modal__check svg { width: 34px; height: 34px; }
.modal h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.modal p { color: var(--text-muted); }
.modal .btn { margin-top: 1.5rem; }
.modal { position: relative; }
.modal-x { position: absolute; top: .8rem; right: 1rem; width: 36px; height: 36px; border: 0; background: transparent; color: var(--text-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 8px; }
.modal-x:hover { background: var(--bg-inset); color: var(--text); }
.modal--form { text-align: left; max-width: 500px; }
.modal--form .form-grid .btn { margin-top: .4rem; }

/* Toggle switch */
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: background-color .25s; }
.switch .track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .25s; box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::before { transform: translateX(20px); }
.switch input:disabled + .track { opacity: .5; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.field textarea { min-height: 140px; resize: vertical; }
.check-row { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--text-muted); }
.check-row input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.field-error { color: #d92d20; font-size: .82rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #d92d20; }
.field.invalid .field-error { display: block; }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

/* ---------- Feature list ---------- */
.feature-list { display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--primary); margin-top: .1rem; }
.feature-list .tick svg { width: 16px; height: 16px; }
.feature-list strong { display: block; }
.feature-list p { color: var(--text-muted); font-size: .94rem; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--bg-inset); }
.media-frame img { width: 100%; }

/* Page header (interior pages) */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--hero-grad); padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
.page-hero * { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); }
.page-hero p { color: #c7d5f2; max-width: 60ch; margin-top: .8rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; color: #9fb6df; margin-bottom: 1rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }

/* prose */
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; margin-bottom: .7rem; }
.prose h3 { font-size: 1.18rem; margin-top: 1.6rem; margin-bottom: .5rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose p { margin-bottom: 1rem; }
.prose ul { display: grid; gap: .5rem; margin-bottom: 1rem; padding-left: 1.2rem; list-style: disc; }
.prose ul li::marker { color: var(--primary); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.toc { position: sticky; top: calc(var(--header-h) + 1rem); }
.toc ul { display: grid; gap: .4rem; }
.toc a { font-size: .9rem; color: var(--text-muted); padding: .3rem .6rem; border-radius: var(--radius-sm); display: block; }
.toc a:hover { background: var(--bg-inset); color: var(--text); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* Network status widget */
.status-widget { display: grid; gap: .8rem; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem; border-radius: var(--radius); background: var(--bg-inset); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: statusPulse 2.4s infinite; }
.status-dot.warn { background: #f59e0b; box-shadow: 0 0 0 0 rgba(245,158,11,.5); }
@keyframes statusPulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.status-meta { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }

/* Coverage / map */
.map-wrap { position: relative; }
.district { fill: color-mix(in srgb, var(--primary) 16%, var(--bg-inset)); stroke: var(--bg); stroke-width: 1.5; transition: fill .25s, transform .25s; cursor: pointer; transform-origin: center; }
.district:hover, .district:focus { fill: var(--brand-cyan); outline: none; }
.district.core { fill: color-mix(in srgb, var(--brand-blue) 55%, transparent); }
.district.core:hover { fill: var(--brand-blue); }
.district.is-selected { fill: var(--brand-blue); stroke: var(--brand-cyan); stroke-width: 3; }
.map-wrap g[data-index] { color: var(--text); }
.map-wrap g[data-index]:hover .district, .map-wrap g[data-index]:focus .district { fill: var(--brand-cyan); }
.map-wrap svg { width: 100%; height: auto; }
.map-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .88rem; color: var(--text-muted); }
.map-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.map-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.map-tooltip { position: absolute; pointer-events: none; background: var(--brand-navy); color: #fff; padding: .4rem .7rem; border-radius: 8px; font-size: .82rem; opacity: 0; transform: translate(-50%, -120%); transition: opacity .15s; white-space: nowrap; z-index: 5; }
.map-tooltip.show { opacity: 1; }

/* News / cards grid meta */
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); padding: .25rem .6rem; border-radius: 999px; background: var(--bg-inset); margin-bottom: .6rem; }
.tag-blue { color: var(--brand-blue); background: color-mix(in srgb, var(--brand-blue) 12%, transparent); }
.tag-cyan { color: var(--brand-cyan-ink, var(--primary)); background: color-mix(in srgb, var(--brand-cyan) 16%, transparent); }
.card time, .news-date { display: block; font-size: .82rem; color: var(--text-muted); margin-bottom: .35rem; }
.news-card { transition: transform .3s var(--ease), border-color .3s; }
.news-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.news-card:hover .card-media img { transform: scale(1.05); }

/* Chips / filters */
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-muted); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--primary); color: var(--text); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground, #fff); }
.card-media { border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; aspect-ratio: 16/10; background: var(--bg-inset); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card--hover:hover .card-media img { transform: scale(1.05); }

/* Logos row */
.logo-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; align-items: center; }
@media (max-width: 760px) { .logo-row { grid-template-columns: repeat(2, 1fr); } }
.logo-chip { display: grid; place-items: center; padding: 1.3rem; border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted); font-family: var(--font-display); font-weight: 700; }

/* Team cards */
.team-card { text-align: center; }
.avatar { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); letter-spacing: .02em; }
.team-card h3 { font-size: 1.05rem; }

/* Metric tiles */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 860px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
.metric { padding: 1.4rem; border-radius: var(--radius-lg); background: var(--bg-elevated); border: 1px solid var(--border); text-align: center; }
.metric b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--primary); }
.metric span { color: var(--text-muted); font-size: .9rem; }

/* Diagram frame */
.diagram { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elevated); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { margin-top: .9rem; font-size: .88rem; color: var(--text-muted); text-align: center; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 520px; }
table.cmp th, table.cmp td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .95rem; }
table.cmp thead th { background: var(--bg-inset); font-family: var(--font-display); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { font-weight: 600; }

/* Steps */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.step .num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-family: var(--font-display); font-weight: 700; flex: none; }
.step h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.step p { color: var(--text-muted); font-size: .95rem; }

/* Job list */
.job { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); transition: border-color .25s, transform .25s; }
.job:hover { border-color: var(--primary); transform: translateX(4px); }
.job h3 { font-size: 1.08rem; }
.job .job-meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .84rem; color: var(--text-muted); }

/* Search */
.search-box { display: flex; gap: .6rem; max-width: 620px; }
.search-box input { flex: 1; }
.search-result { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.search-result a { font-family: var(--font-display); font-weight: 600; color: var(--primary); font-size: 1.1rem; }
.search-result p { color: var(--text-muted); font-size: .93rem; margin-top: .2rem; }
.search-result .crumb { font-size: .78rem; color: var(--text-muted); }
mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; padding: 0 .15em; border-radius: 3px; }

/* Star rating */
.rating { display: flex; gap: .3rem; }
.rating button { border: 0; background: transparent; cursor: pointer; padding: .1rem; line-height: 0; color: var(--border-strong); transition: color .15s, transform .15s; }
.rating button svg { width: 34px; height: 34px; fill: currentColor; }
.rating button:hover { transform: scale(1.12); }
.rating button.is-on { color: var(--accent); }
.rating-label { font-weight: 600; color: var(--text-muted); min-height: 1.2em; }

/* 404 */
.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.err-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 12vw, 8rem); line-height: 1; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Legal / long-form prose */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-toc { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; background: var(--bg-elevated); }
@media (max-width: 900px) { .legal-toc { position: static; } }
.legal-toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .8rem; }
.legal-toc ul { display: grid; gap: .5rem; }
.legal-toc a { font-size: .9rem; color: var(--text-muted); transition: color .2s; }
.legal-toc a:hover { color: var(--primary); }
.legal-prose { max-width: 72ch; }
.legal-prose h2 { font-size: 1.4rem; margin: 2.2rem 0 .8rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.legal-prose p, .legal-prose li { color: var(--text-muted); margin-bottom: .8rem; }
.legal-prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-prose ul li { margin-bottom: .4rem; }
.legal-prose a { color: var(--primary); text-decoration: underline; }
.legal-updated { font-size: .85rem; color: var(--text-muted); padding: .6rem 1rem; border-left: 3px solid var(--accent); background: var(--bg-inset); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 2rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2)); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d5f2; max-width: 52ch; }

/* utility */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.hide { display: none !important; }
.lang-hu [data-en], .lang-en [data-hu] { display: none; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .to-top, .scroll-progress, .bg-anim, .loader, .hero-visual { display: none !important; }
  body { color: #000; background: #fff; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .hero, .page-hero { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .hero .lead, .page-hero p { color: #000 !important; }
  .card, .section { box-shadow: none !important; page-break-inside: avoid; }
}
