                                                :root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --panel: #15151c;
  --panel-hover: #1c1c25;
  --text: #f5f5f7;
  --muted: #a0a0ad;
  --accent: #baff39;
  --border: #292933;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.header {
  min-height: 76px;
  padding: 18px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.logo {
  direction: ltr;
  text-decoration: none;
  color: var(--accent);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.7px;
  white-space: nowrap;
}

.logo span {
  color: var(--text);
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  text-align: center;
  padding: 100px 20px 85px;
}

.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.12;
  letter-spacing: -2px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 590px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.9;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 13px 22px;
  border-radius: 9px;
  background: var(--accent);
  color: #101010;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: #ceff79;
}

.section {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto 90px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 25px;
}

.section-heading h2,
.about h2 {
  margin: 8px 0 0;
  font-size: 28px;
}

.count {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.country-card {
  position: relative;
  min-height: 160px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.country-card:hover {
  background: var(--panel-hover);
  transform: translateY(-3px);
}

.country-card.active {
  border-color: var(--accent);
  background: #1b2113;
}

.country-symbol {
  margin-bottom: 8px;
  font-size: 25px;
}

.country-name {
  font-size: 15px;
  font-weight: 800;
}

.country-description {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.country-arrow {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--accent);
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.search-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 13px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

.search-box:focus-within {
  border-color: var(--accent);
}

.filter-wrap select {
  height: 100%;
  min-height: 48px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  outline: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .2s;
}

.gallery-item:hover {
  border-color: #626276;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #202028;
}

.item-content {
  padding: 20px;
}

.item-country {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.item-content h3 {
  margin: 10px 0 7px;
  font-size: 20px;
}

.item-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.empty-state {
  padding: 35px 10px;
  text-align: center;
  color: var(--muted);
}

.about {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto 80px;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
}

.about p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.9;
}

footer {
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--muted);
  font-size: 12px;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .country-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .header {
    padding: 18px 5%;
  }

  .logo {
    font-size: 17px;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 12px;
  }

  .hero {
    padding: 70px 20px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .section {
    width: 90%;
    margin-bottom: 65px;
  }

  .section-heading h2,
  .about h2 {
    font-size: 23px;
  }

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

  .country-card {
    min-height: 150px;
    padding: 16px 12px;
  }

  .country-name {
    font-size: 14px;
  }

  .country-description {
    font-size: 10px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 220px;
  }

  .toolbar {
    flex-direction: column;
  }

  .filter-wrap select {
    width: 100%;
    min-height: 45px;
  }

  .about {
    width: 90%;
    padding: 24px;
    margin-bottom: 55px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}