/* Hexforo landing — tmavý cyberpunk-lite design systém */

:root {
  --bg-page: #0a0a0a;
  --bg-page-alt: #0f0f0f;
  --bg-card: #141414;
  --bg-card-elevated: #181818;
  --bg-card-active: #1c1c1c;
  --border: #2a2a2a;
  --text-primary: #ececec;
  --text-secondary: #8a8a8a;
  --text-muted: #656565;
  --btn-graphite: #1e1e1e;
  --accent-cyan: #38bdf8;
  --accent-cyan-dim: rgba(56, 189, 248, 0.35);
  /* Gradient vlny — vzorkováno z dodaného referenčního pásu (námořní modrá → fialová → magenta → měď → olivová/zlato) */
  --wave-1: #152b42;
  --wave-2: #1c2743;
  --wave-3: #3e1e50;
  --wave-4: #5d1561;
  --wave-5: #674543;
  --wave-6: #6e6e2e;
  --wave-7: #6f7827;
  /* Tmavý fialový nádech vpravo na pozadí (radial gradient na body) */
  --accent-violet-dim: rgba(32, 29, 44, 0.38);
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 0 12px rgba(255, 255, 255, 0.03);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Rajdhani", "Inter", system-ui, sans-serif;
}

body[data-theme="light"] {
  --bg-page: #f3f4f6;
  --bg-page-alt: #e5e7eb;
  --bg-card: #ffffff;
  --bg-card-elevated: #f8fafc;
  --bg-card-active: #eef2ff;
  --border: #d1d5db;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --btn-graphite: #e2e8f0;
  --accent-cyan-dim: rgba(30, 64, 175, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -15%, rgba(30, 58, 90, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, var(--accent-violet-dim), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    56px 56px,
    56px 56px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.22;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.045) 2px,
    rgba(0, 0, 0, 0.045) 3px
  );
  mix-blend-mode: multiply;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(0, 191, 255, 0.45);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1002;
  background: rgba(15, 15, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 42, 42, 0.85);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #1a1a1a, #121212);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand-icon--cloud {
  color: var(--accent-cyan);
}

.nav-links--desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-links--desktop a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links--desktop a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.nav-actions--desktop {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--btn-graphite);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-burger:hover {
  border-color: #444;
  background: #242424;
}

.nav-burger-icon {
  width: 22px;
  height: 22px;
}

.nav-mobile {
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
}

.nav-mobile-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-inner a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-mobile-inner a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.link-ghost {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.link-ghost:hover {
  color: #fff;
}

a.btn {
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--btn-graphite);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  border-color: #4a4a4a;
  background: #242424;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 24px rgba(56, 189, 248, 0.06);
}

.btn--hero {
  min-width: 160px;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: #4a4a4a;
}

.btn--block {
  width: 100%;
}

@media (max-width: 900px) {
  .nav-links--desktop,
  .nav-actions--desktop {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Bez horizontálního paddingu — vlnovka musí jít edge-to-edge přes viewport */
  padding: 56px 0 0;
  text-align: center;
  overflow-x: clip;
  overflow-y: visible;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(720px, 90%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* Hlavní nadpis — statický gradient (bez animace) */
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6.5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0 0 32px;
  background: linear-gradient(180deg, #f4f4f4 0%, #c6c6c6 48%, #9a9a9a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(255, 255, 255, 0.06);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-sub {
  margin: 0 auto 24px;
  max-width: 760px;
  color: var(--text-secondary);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
}

.hero-sub--wide {
  max-width: 860px;
}

.wave-divider {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  color: var(--bg-card);
  flex-shrink: 0;
  pointer-events: none;
  overflow: visible;
  /* Výška vlny škáluje s šířkou viewportu; min/max drží čitelný tvar na mobilu i ultrawide */
  height: clamp(2.75rem, 9vw, 7.75rem);
}

.wave-divider .wave-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  vertical-align: top;
  shape-rendering: geometricPrecision;
}

/* Nižší vlna v nízkém landscape (mobil), ať nebere zbytečně výšku */
@media (max-height: 32rem) and (orientation: landscape) {
  .wave-divider {
    height: clamp(2rem, 6vw, 4.5rem);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 24px;
}

.section--charcoal {
  position: relative;
  background: var(--bg-card);
  border-top: 1px solid rgba(42, 42, 42, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

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

.section-head h2 {
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Roadmap ---------- */
.section--roadmap {
  padding-bottom: 96px;
}

.roadmap-rows {
  max-width: 896px;
  margin: 0 auto;
}

.roadmap-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .roadmap-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 40px;
  }
}

.roadmap-row--last {
  margin-bottom: 0;
}

.roadmap-quarter {
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 640px) {
  .roadmap-quarter {
    width: 8rem;
    text-align: right;
    padding-right: 2rem;
  }
}

.roadmap-quarter span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.roadmap-row--active .roadmap-quarter span {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.roadmap-body {
  flex: 1;
  min-width: 0;
  padding-bottom: 8px;
  border-left: 3px solid var(--border);
  padding-left: 1.5rem;
}

@media (max-width: 639px) {
  .roadmap-body {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
}

.roadmap-row--active .roadmap-body {
  border-left-color: rgba(56, 189, 248, 0.55);
  box-shadow: -3px 0 14px rgba(56, 189, 248, 0.06);
}

@media (max-width: 639px) {
  .roadmap-row--active .roadmap-body {
    border-top-color: rgba(56, 189, 248, 0.35);
  }
}

.roadmap-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px 24px;
  background: var(--bg-card-elevated);
  box-shadow: var(--shadow-card);
}

.roadmap-row--active .roadmap-panel {
  background: var(--bg-card-active);
  border-color: #3a3a3a;
}

.roadmap-panel-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.roadmap-panel p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Logged forum home ---------- */
.forum-home-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.forum-home-topbar {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: linear-gradient(180deg, #1b1b1b, #141414);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.forum-home-topbar h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.forum-home-toplinks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
}

.forum-home-toplinks span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.02);
}

.forum-home-alerts {
  display: grid;
  gap: 8px;
}

.forum-home-alert {
  border: 1px solid rgba(91, 60, 139, 0.75);
  background: linear-gradient(90deg, rgba(63, 28, 95, 0.82), rgba(74, 34, 112, 0.65));
  color: #ded2ff;
  border-radius: 2px;
  padding: 6px 10px;
  font-size: 12px;
  text-align: center;
}

.forum-home-alert--live {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.forum-home-alert-content {
  overflow-wrap: anywhere;
  text-align: center;
  width: 100%;
}

.forum-home-alert-close {
  border: 0;
  background: transparent;
  color: #ded2ff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.9;
  padding: 0 2px;
}

.forum-home-alert-close:hover {
  opacity: 1;
}

.forum-home-grid {
  display: block;
}

.forum-home-main {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 250px;
}

.forum-home-categories {
  display: grid;
  gap: 12px;
}

.forum-home-category {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card-elevated);
  box-shadow: var(--shadow-card);
}

.forum-home-category > header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.forum-home-category > header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.forum-home-category > header p {
  margin: 4px 0 0;
  font-size: 12px;
}

.forum-home-sublist {
  display: grid;
}

.forum-home-subitem {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.forum-home-subitem:last-child {
  border-bottom: none;
}

.forum-home-subitem:hover {
  background: rgba(255, 255, 255, 0.03);
}

.forum-home-submeta {
  min-width: 0;
}

.forum-home-subitem strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
}

.forum-home-subitem small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.forum-home-subitem em {
  display: block;
  margin-top: 5px;
  color: #909090;
  font-style: normal;
  font-size: 11px;
  line-height: 1.3;
}

.forum-home-substats {
  display: grid;
  justify-items: end;
  color: var(--text-muted);
  font-size: 11px;
}

.forum-home-empty {
  margin: 0;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.forum-home-sidepanel {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card-elevated);
  padding: 10px 12px;
  height: fit-content;
}

.forum-home-sidepanel h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.forum-home-sidepanel ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 7px;
}

.forum-home-sidepanel li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.forum-home-sidepanel strong {
  color: var(--text-primary);
  font-weight: 600;
}

.forum-home-sidehint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--bg-card);
}

.member-row:hover {
  border-color: #3a3a3a;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.role-tag--admin {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fda4af;
}

.role-tag--moderator {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93c5fd;
}

.post-vote-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  display: grid;
  justify-items: center;
  gap: 6px;
  background: #101010;
}

.post-vote-btn {
  width: 34px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: #151515;
  color: #a3a3a3;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.post-vote-btn--up.is-active {
  color: #ff5d20;
  border-color: rgba(255, 93, 32, 0.5);
}

.post-vote-btn--down.is-active {
  color: #78a3ff;
  border-color: rgba(120, 163, 255, 0.5);
}

.post-vote-score {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
}

.cp-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cp-tab {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}

a.cp-tab {
  text-decoration: none;
  display: inline-block;
}

.cp-tab.is-active {
  color: var(--text-primary);
  border-color: #4a4a4a;
}

.cp-section {
  padding-top: 40px;
}

.cp-shell {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

.cp-shell--narrow {
  max-width: 1080px;
}

.cp-sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 12px;
  height: fit-content;
  position: sticky;
  top: 84px;
}

.cp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.cp-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--bg-card-elevated), var(--bg-card-active));
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-display);
}

.cp-brand-name {
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.2;
}

.cp-brand-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.cp-nav {
  display: grid;
  gap: 6px;
}

.cp-nav button,
.cp-nav a {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  display: block;
  box-sizing: border-box;
}

.cp-nav button:hover,
.cp-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.cp-nav button.is-active,
.cp-nav a.is-active {
  border-color: rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-primary);
}

.cp-main {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card-elevated);
  overflow: hidden;
}

.cp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.cp-topbar h2 {
  margin: 0;
  font-size: 1.08rem;
}

.cp-topbar span {
  color: var(--text-muted);
  font-size: 13px;
}

.cp-content {
  padding: 16px;
}

.cp-form-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.cp-form-card label {
  display: grid;
  gap: 6px;
  color: var(--text-primary);
  font-size: 13px;
}

.cp-form-card input,
.cp-form-card select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
}

.cp-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cp-stat {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--bg-card);
}

.cp-stat-label {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.cp-stat-value {
  color: var(--text-primary);
  font-size: 24px;
  font-family: var(--font-display);
  font-weight: 700;
}

@media (max-width: 980px) {
  .cp-shell,
  .cp-shell--narrow {
    grid-template-columns: 1fr;
  }

  .cp-sidebar {
    position: static;
  }

  .cp-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .forum-home-main {
    grid-template-columns: 1fr;
  }

  .forum-home-alert--live {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .forum-home-alert-close {
    margin-top: -2px;
  }
}

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--bg-page);
  padding: 56px 24px 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid--simple {
  max-width: 1152px;
  grid-template-columns: 1.4fr 1fr 1fr;
}

@media (max-width: 768px) {
  .footer-grid,
  .footer-grid--simple {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col--wide h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1152px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.footer-bottom small {
  font-size: 13px;
  color: var(--text-muted);
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease;
}

.lang-btn:hover:not(:disabled) {
  color: #fff;
  border-color: #3a3a3a;
}

.lang-btn--active {
  background: var(--btn-graphite);
  color: #fff;
  border-color: var(--border);
}

.lang-btn--active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    var(--accent-cyan-dim),
    transparent
  );
}

.lang-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.lang-btn:disabled:hover {
  color: var(--text-secondary);
  border-color: var(--border);
}

.footer-secure {
  max-width: 1152px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-secure-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
