:root {
  --bg-1: #f4eee7;
  --bg-2: #e4d5c4;
  --panel: rgba(255, 255, 255, 0.9);
  --text: #21364a;
  --text-soft: #4d6070;
  --brand: #1a8a7d;
  --brand-dark: #166b62;
  --line: #dacfc1;
  --shadow: 0 24px 48px rgba(26, 38, 55, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.75), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.35), transparent 46%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  display: grid;
  place-items: center;
  padding: 26px;
}

.lang-page {
  width: min(980px, 100%);
}

.container {
  width: min(980px, 100%);
  margin: 0 auto;
}

.selector-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--panel);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.selector-shell::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(26, 138, 125, 0.25), transparent 70%);
  pointer-events: none;
}

.selector-content {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 44px);
}

.brand {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #1f3041;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.12rem);
  max-width: 700px;
  line-height: 1.6;
}

.market-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.market-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.market-card:hover,
.market-card:focus-visible {
  transform: translateY(-2px);
  border-color: #c3b39f;
  box-shadow: 0 14px 26px rgba(36, 50, 66, 0.12);
}

.market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flag {
  font-size: 1.35rem;
  line-height: 1;
}

.market-name {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: #263748;
}

.market-locale {
  margin: 0;
  color: #5e6f7f;
  font-size: 0.95rem;
}

.market-copy {
  margin: 2px 0 4px;
  color: #556677;
  line-height: 1.55;
  min-height: 3em;
}

.market-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  background: #1f3041;
}

.market-card.primary .market-cta {
  background: var(--brand);
}

.recommended {
  display: none;
  width: fit-content;
  margin-top: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand-dark);
}

.market-card.is-recommended .recommended {
  display: inline-block;
}

.helper {
  margin-top: 24px;
  color: #5a6977;
  font-size: 0.93rem;
}

.site-footer {
  width: min(980px, 100%);
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(36, 50, 66, 0.1);
  padding: 24px 18px 16px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
}

.site-footer h4 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  color: #203245;
}

.site-footer p {
  margin: 0 0 8px;
  color: #56697a;
}

.site-footer a {
  color: #1f475f;
  text-decoration: none;
}

.seo-footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.seo-footer-cta-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-footer-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  border: 1px solid #c8d5df;
  background: #1f3041;
  color: #ffffff;
}

.seo-footer-btn-secondary {
  background: #ffffff;
  color: #1f3041;
}

.site-footer-bottom {
  margin-top: 14px;
  border-top: 1px solid #dce4ea;
  padding-top: 10px;
  color: #5f7383;
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  body {
    padding: 16px;
  }

  .selector-content {
    padding: 22px 16px;
  }

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

  .market-copy {
    min-height: 0;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .seo-footer-btn {
    width: 100%;
    text-align: center;
  }
}
