:root {
  --accent: #2c5aa0;
  --accent-soft: #3d6db5;
  --accent-light: #e8f0fa;
  --red: #b84a4a;
  --red-lt: #c96a6a;
  --red-soft: #c96a6a;
  --blue: #2c5aa0;
  --blue-dark: #1e4578;
  --sky-deep: #1e3558;
  --navy: #121e2c;
  --cream: #e8eef5;
  --off-white: #f7f9fc;
  --text: #1a1f2e;
  --text-dark: #1a1f2e;
  --text-mid: #3a4558;
  --text-light: #5a6578;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-soft: #eef2f7;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --white: #ffffff;
  --discord: #5865F2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* OFFICIAL TOP BAR */
.top-stripe {
  background: var(--bg-soft);
  padding: 7px 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  font-family: Inter, sans-serif;
}
.top-stripe strong {
  color: var(--accent);
  font-weight: 600;
}

/* LANGUAGE BAR */
.lang-bar {
  background: var(--bg);
  padding: 6px 40px;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.lang-btn {
  color: var(--text-mid);
  font-size: 12px;
  letter-spacing: 0.8px;
  cursor: pointer;
  font-family: Inter, sans-serif;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  transition: all .18s;
}
.lang-btn:hover, .lang-btn.active {
  border-color: var(--border-strong);
  color: var(--accent);
  background: var(--accent-light);
}

/* HEADER */
header {
  background: var(--bg);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-arms {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text {
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1.25;
}
.brand-text small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
}
.hashtag-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  font-family: Inter, sans-serif;
  margin-left: auto;
  border-radius: 4px;
  border: none;
  box-shadow: none;
  white-space: nowrap;
}

/* NAV */
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 20px;
}
nav::-webkit-scrollbar { display: none; }
nav a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.2px;
  font-family: Inter, sans-serif;
  font-weight: 500;
  padding: 13px 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .18s, border-color .18s, background .18s;
  display: flex;
  align-items: center;
  gap: 6px;
}
nav a:hover, nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}
nav a svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  opacity: 0.7;
}

/* HERO WITH PHOTO */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 30, 55, 0.55) 0%,
    rgba(15, 30, 55, 0.68) 50%,
    rgba(15, 30, 55, 0.82) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 32px;
  max-width: 820px;
}
.hero-eyebrow {
  font-family: Inter, sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
  display: block;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-title {
  font-family: Inter, sans-serif;
  font-size: clamp(28px, 5vw, 46px);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
  line-height: 1.2;
  letter-spacing: -0.3px;
  min-height: 1.3em; /* prevent layout jump while typing */
}
.hero-title .accent { color: #a8c4e8; }
.hero-title-anim {
  display: inline;
}
.hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
  font-weight: 400;
}
.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  padding: 11px 24px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  transition: background .18s, border-color .18s, opacity .18s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-red {
  background: var(--accent);
  color: #fff;
}
.btn-red:hover {
  background: var(--accent-soft);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* RIBBON */
.ribbon {
  background: var(--bg-soft);
  color: var(--text-mid);
  font-size: 12px;
  letter-spacing: 0.5px;
  font-family: Inter, sans-serif;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.ribbon-inner {
  display: inline-block;
  animation: none;
}
.ribbon-inner span {
  margin-right: 40px;
  opacity: 0.85;
}

/* MAIN LAYOUT */
.main-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* WHAT IS SERDOVIA */
.what-is {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.what-is-text h2 {
  font-family: Inter, sans-serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.what-is-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 12px;
}
.what-is-text ul {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
}
.what-is-text li {
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}
.what-is-text li strong {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 14.5px;
}
.what-is-media {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(18, 30, 44, 0.14);
  background: var(--sky-deep);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}
.what-is-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.btn-dark {
  background: var(--navy);
  color: #fff;
  padding: 11px 22px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background .18s, opacity .18s;
}
.btn-dark:hover {
  background: var(--sky-deep);
}
@media (max-width: 800px) {
  .what-is {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .what-is-media {
    max-width: 100%;
    aspect-ratio: 1 / 1;
    order: -1;
  }
}

.section-label {
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.section-label::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* INFO TABLE */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 40px;
  border-radius: 6px;
  overflow: hidden;
}
.info-table th,
.info-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.info-table th {
  background: var(--bg-alt);
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 13px;
  letter-spacing: 0.3px;
  width: 34%;
  font-weight: 600;
}
.info-table td {
  color: var(--text-mid);
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }
.info-table .indent {
  padding-left: 28px;
  color: var(--text-mid);
  font-weight: 500;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  border-top: 3px solid var(--accent);
  padding: 22px 20px;
  transition: border-color .18s, box-shadow .18s;
}
.card:hover {
  border-top-color: var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.card-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--accent);
}
.card-icon svg { width: 100%; height: 100%; fill: currentColor; }
.card h3 {
  font-family: Inter, sans-serif;
  font-size: 13px;
  letter-spacing: 0.6px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
}
.card p {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* PAGE HERO (inner pages) */
.page-hero {
  background: var(--bg-alt);
  padding: 40px 40px 36px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.page-eyebrow {
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
}
.page-hero h1 {
  font-family: Inter, sans-serif;
  font-size: clamp(24px, 3.6vw, 34px);
  color: var(--text);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.page-hero p {
  color: var(--text-mid);
  font-size: 15px;
  max-width: 600px;
  line-height: 1.7;
}
.page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* FLAG DISPLAY */
.flag-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.flag-large {
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border-radius: 6px;
  overflow: hidden;
}
.flag-large img { width: 100%; }
.color-swatches {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.swatch {
  display: flex;
  align-items: center;
  gap: 10px;
}
.swatch-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
}
.swatch span {
  font-size: 13px;
  color: var(--text-mid);
  font-family: Inter, sans-serif;
  letter-spacing: 0.3px;
}

/* FOOTER */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 40px 20px;
  color: var(--text-mid);
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.footer-col h4 {
  font-family: Inter, sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-mid);
  opacity: 0.9;
  margin-bottom: 7px;
  transition: color .18s;
}
.footer-col a:hover {
  color: var(--accent);
  opacity: 1;
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-light);
}

/* RESPONSIVE — tablet */
@media (max-width: 900px) {
  .lang-bar, header { padding-left: 16px; padding-right: 16px; }
  .page-hero { padding: 32px 20px 28px; }
  .page-body { padding: 32px 16px; }
  footer { padding: 32px 20px 18px; }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
}

/* RESPONSIVE — mobile */
@media (max-width: 800px) {
  .lang-bar {
    padding: 6px 12px;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
  }
  .lang-btn {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 36px;
  }
  header {
    padding: 12px 14px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand-arms { width: 36px; height: 36px; }
  .brand-text { font-size: 16px; }
  .brand-text small { font-size: 10px; }
  .hashtag-badge { display: none; }

  nav {
    justify-content: flex-start;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
  }
  nav a {
    padding: 12px 14px;
    font-size: 13px;
    min-height: 44px;
  }
  nav a svg { width: 14px; height: 14px; }

  .hero { min-height: 65vh; }
  .flag-display { grid-template-columns: 1fr; gap: 24px; }

  .page-hero { padding: 28px 16px 24px; }
  .page-hero h1 { font-size: clamp(22px, 6vw, 30px); }
  .page-hero p { font-size: 14px; }
  .page-body { padding: 24px 14px; }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  .card { padding: 18px 16px; }
  .card h3 { font-size: 12px; }
  .card p { font-size: 14px; }

  .section-label {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .info-table th,
  .info-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  .info-table th { width: 40%; }
  .info-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  footer { padding: 28px 16px 16px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
    margin-bottom: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
  }
}

/* RESPONSIVE — small phones */
@media (max-width: 480px) {
  .top-stripe {
    font-size: 11px;
    padding: 6px 8px;
  }
  .lang-bar { padding: 5px 8px; }
  .lang-btn { padding: 5px 10px; font-size: 11px; }

  header { padding: 10px 12px; }
  .brand-text { font-size: 15px; }

  nav a {
    padding: 11px 12px;
    font-size: 12.5px;
    gap: 4px;
  }

  .page-hero { padding: 24px 12px 20px; }
  .page-body { padding: 20px 12px; }

  .card { padding: 16px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }

  .info-table th,
  .info-table td {
    padding: 9px 10px;
    font-size: 12.5px;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
