:root {
  --bg: #07111f;
  --bg2: #0b1b2f;
  --card: rgba(255,255,255,0.075);
  --card2: rgba(255,255,255,0.105);
  --text: #eef6ff;
  --muted: #a8b7c7;
  --line: rgba(255,255,255,0.14);
  --accent: #41d1ff;
  --accent2: #7cffc4;
  --warning: #ffd166;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(65,209,255,0.18), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(124,255,196,0.12), transparent 24%),
    linear-gradient(135deg, var(--bg), var(--bg2));
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px;
}

.header {
  border-bottom: 1px solid var(--line);
  background: rgba(7,17,31,0.72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.logo strong {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.logo span {
  color: var(--muted);
  font-size: 0.85rem;
}

.menu {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.menu a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 999px;
}

.menu a:hover,
.menu a.active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.lang {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}

.lang a {
  font-size: 0.8rem;
  padding: 6px 8px;
  border: 1px solid var(--line);
}

.hero {
  padding: 76px 0 42px;
}

.hero-card {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.105), rgba(255,255,255,0.045));
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.kicker {
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  font-size: 1.15rem;
  max-width: 820px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-block;
  text-decoration: none;
  padding: 12px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-weight: 650;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #06111e;
  border: 0;
}

.section {
  padding: 26px 0;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--card);
}

.card.highlight {
  background: var(--card2);
}

.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--accent2);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.freq {
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 800;
  margin: 8px 0;
}

.meta {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.meta li {
  color: var(--muted);
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

code {
  color: var(--accent2);
  background: rgba(0,0,0,0.22);
  padding: 2px 6px;
  border-radius: 6px;
}

.notice {
  border-left: 4px solid var(--warning);
}

.footer {
  margin-top: 44px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .menu {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-card {
    padding: 28px;
  }

  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }
}

/* Balanced header with two side logos */
.nav-balanced {
  display: grid;
  grid-template-columns: 74px 1fr 74px;
  align-items: center;
  gap: 18px;
}

.nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.text-logo {
  align-items: center;
  text-align: center;
}

.side-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  overflow: hidden;
}

.side-logo img {
  display: block;
  max-width: 48px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-with-images,
.logo-images,
.logo-text {
  all: unset;
}

@media (max-width: 820px) {
  .nav-balanced {
    grid-template-columns: 52px 1fr 52px;
    gap: 10px;
    align-items: start;
  }

  .side-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .side-logo img {
    max-width: 38px;
    max-height: 38px;
  }

  .nav-center {
    align-items: center;
  }

  .menu {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .nav-balanced {
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
  }

  .side-logo {
    width: 42px;
    height: 42px;
  }

  .side-logo img {
    max-width: 32px;
    max-height: 32px;
  }

  .logo strong {
    font-size: 1rem;
  }

  .logo span {
    font-size: 0.75rem;
  }
}


/* Force compact header logos */
.nav-balanced {
  grid-template-columns: 44px 1fr 44px !important;
  gap: 14px !important;
}

.side-logo {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

.side-logo img,
.header .side-logo img,
.nav-balanced .side-logo img {
  width: auto !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: contain !important;
}

@media (max-width: 820px) {
  .nav-balanced {
    grid-template-columns: 36px 1fr 36px !important;
  }

  .side-logo {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
  }

  .side-logo img,
  .header .side-logo img,
  .nav-balanced .side-logo img {
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
  }
}


/* FINAL OVERRIDE: header logo size */
.header img,
.header .side-logo img,
.header .left-logo img,
.header .right-logo img {
  width: 120px !important;
  height: 120px !important;
  min-width: 120px !important;
  min-height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  object-fit: contain !important;
}

.header .side-logo,
.header .left-logo,
.header .right-logo {
  width: 120px !important;
  height: 120px !important;
  min-width: 120px !important;
  min-height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
}

.header .nav-balanced {
  grid-template-columns: 130px 1fr 130px !important;
}

@media (max-width: 820px) {
  .header img,
  .header .side-logo img,
  .header .left-logo img,
  .header .right-logo img {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    max-width: 76px !important;
    max-height: 76px !important;
  }

  .header .side-logo,
  .header .left-logo,
  .header .right-logo {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    max-width: 76px !important;
    max-height: 76px !important;
  }

  .header .nav-balanced {
    grid-template-columns: 82px 1fr 82px !important;
  }
}


.social-links {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-left: 12px;
  vertical-align: middle;
}

.social-links a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: inherit;
  font-weight: 700;
  font-family: Arial, sans-serif;
  transition: transform 0.15s ease, background 0.15s ease;
}

.social-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.social-icon {
  font-size: 17px;
  line-height: 1;
}

.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;
}

.social-links svg.social-icon {
  display: block;
  width: 17px;
  height: 17px;
}
