/* ============================================================================
   CoolBet Eesti — site styles
   ----------------------------------------------------------------------------
   Visual identity preserved from the original Estonia source:
   - Dark navy body (#090f1d) with white text
   - Purple banner (#4b35a1) with money illustration
   - Gold→red gradient CTA (#d7a429 → #ac3a31)
   - Dark short-menu pills (#1d2331) with white text
   - Pill-shaped buttons (border-radius 50px)
   - Rounded sections (30px) and rounded images (12px)
   ========================================================================== */

:root {
  --bg: #090f1d;
  --bg-card: #1a2337;
  --bg-pill: #1d2331;
  --bg-table: #1a2337;
  --bg-banner: #4b35a1;
  --text: #ffffff;
  --text-muted: #5c6278;
  --primary: #1079d6;
  --primary-hover: #0d61ab;
  --success: #2db865;
  --success-hover: #249954;
  --gold: #d7a429;
  --red: #ac3a31;
  --gradient-cta: linear-gradient(90deg, var(--gold) 0%, var(--red) 100%);
  --border: rgba(255, 255, 255, 0.08);
  --r-section: 30px;
  --r-button: 50px;
  --r-image: 12px;
  --container: 1200px;
  --gap: 24px;
  --gap-mob: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}
h1 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
}
h2 {
  font-size: clamp(1.4rem, 2vw + 0.4rem, 2.1rem);
  margin-top: 2rem;
}
h3 {
  font-size: clamp(1.2rem, 1.4vw + 0.4rem, 1.55rem);
  margin-top: 1.5rem;
}

p {
  margin: 0 0 1rem;
}
ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}
ul li {
  margin-bottom: 0.4rem;
}
ul li::marker {
  color: var(--gold);
}

strong {
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  border-radius: var(--r-button);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  background: var(--success-hover);
  color: #fff;
}
.btn-lg {
  padding: 14px 44px;
  font-size: 1.05rem;
}

/* ============================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.header__logo img {
  width: auto;
  max-height: 38px;
  max-width: 175px;
}

.header__nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__nav li::marker {
  content: none;
}
.header__nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--r-button);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.header__nav a:hover,
.header__nav .current a,
.header__nav a[aria-current="page"] {
  color: var(--gold);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__burger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
}
.header__burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  margin: 4px 0;
  transition: 0.3s;
}

/* Language dropdown */
.header-lang {
  position: relative;
  margin-left: 0.25rem;
}
.header-lang__current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 8px;
}
.header-lang__current img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
}

.header-lang__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 14px;
  padding: 12px;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  border-radius: var(--r-image);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  transform: translateY(-6px);
  z-index: 10;
  min-width: 220px;
  text-transform: uppercase;
}
.header-lang:hover .header-lang__list,
.header-lang.is-open .header-lang__list {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.header-lang__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.header-lang__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.header-lang__item.is-current {
  color: var(--gold);
}
.header-lang__item img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Mobile nav */
.header__mobile-nav {
  display: none;
}

@media (max-width: 991px) {
  .header__nav {
    display: none;
  }
  .header__burger {
    display: block;
  }
  .header__actions .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .header__actions .btn:nth-of-type(2) {
    display: none;
  }
  .header__mobile-nav {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    overflow-y: auto;
    padding: 1rem;
    border-top: 1px solid var(--border);
  }
  .header__mobile-nav[hidden] {
    display: none;
  }
  .header__mobile-nav ul {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
  }
  .header__mobile-nav li {
    border-bottom: 1px solid var(--border);
  }
  .header__mobile-nav a {
    display: block;
    padding: 1rem 0.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
  }
  .header__mobile-nav a[aria-current="page"] {
    color: var(--gold);
  }
  .header__mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .header__mobile-actions .btn {
    width: 100%;
  }
}

/* ============================================================================
   Main layout
   ========================================================================== */

.main {
  padding: 1.5rem 0 3rem;
}

/* ============================================================================
   Welcome section (centered intro)
   ========================================================================== */

.welcome {
  max-width: 800px;
  margin: 0 auto var(--gap);
  text-align: center;
  padding: 1rem 0;
}
.welcome h1 {
  margin-bottom: 1rem;
}
.welcome__lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 991px) {
  .welcome {
    text-align: left;
    max-width: none;
    margin-bottom: var(--gap-mob);
  }
}

/* ============================================================================
   Banner — purple, money illustration left, gradient CTA
   ========================================================================== */

.banner {
  position: relative;
  background: var(--bg-banner);
  border-radius: var(--r-section);
  margin-bottom: var(--gap);
  overflow: hidden;
}
.banner__container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  min-height: 160px;
  gap: 1.5rem;
}
.banner__image {
  flex: 0 0 auto;
  max-width: 280px;
}
.banner__image img {
  height: 160px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.banner__copy {
  flex: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.banner__eyebrow {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.banner__amount {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--gradient-cta);
  border-radius: var(--r-button);
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}
.banner__cta:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@media (max-width: 767px) {
  .banner__container {
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    text-align: center;
  }
  .banner__image {
    max-width: 220px;
  }
  .banner__image img {
    height: 140px;
  }
  .banner__copy {
    text-align: center;
    align-items: center;
  }
  .banner__cta {
    width: 100%;
  }
}

/* ============================================================================
   Short menu — 4 dark pills
   ========================================================================== */

.short-menu {
  margin-bottom: var(--gap);
}
.short-menu ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.short-menu li::marker {
  content: none;
}
.short-menu li {
  margin: 0;
}
.short-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  padding: 0 22px;
  background: var(--bg-pill);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-section);
  transition:
    transform 0.15s,
    background 0.2s;
}
.short-menu__item:hover {
  background: #242b3d;
  color: #fff;
  transform: translateY(-1px);
}
.short-menu__item img {
  max-width: 38px;
  width: auto;
  height: auto;
}

@media (max-width: 767px) {
  .short-menu ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* ============================================================================
   Games grid — auto-fit ~160px tiles (6+ per row at 1200px)
   ========================================================================== */

.games-grid {
  margin-bottom: var(--gap);
}
.games-grid__title {
  margin-bottom: 1rem;
}
.games-grid ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.games-grid li {
  margin: 0;
}
.games-grid li::marker {
  content: none;
}
.games-grid a {
  display: block;
}
.games-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--r-image);
  transition: transform 0.3s ease;
}
.games-grid a:hover img {
  transform: scale(1.04);
}

@media (max-width: 767px) {
  .games-grid ul {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: 140px;
    grid-template-columns: none;
    margin: 0 -1rem;
    padding: 0 1rem;
    scrollbar-width: none;
  }
  .games-grid ul::-webkit-scrollbar {
    display: none;
  }
  .games-grid img {
    min-width: 140px;
  }
}

/* ============================================================================
   Sports grid — 7-up at desktop
   ========================================================================== */

.sports-grid {
  margin-bottom: var(--gap);
}
.sports-grid__title {
  margin-bottom: 1rem;
}
.sports-grid ul {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sports-grid li {
  margin: 0;
}
.sports-grid li::marker {
  content: none;
}
.sports-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 130px;
  padding: 0.5rem;
  background: var(--bg-card);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r-section);
  transition:
    background 0.25s,
    transform 0.15s;
}
.sports-grid a:hover {
  background: var(--primary);
  transform: translateY(-2px);
  color: #fff;
}
.sports-grid img {
  max-height: 50px;
  width: auto;
}
.sports-grid span {
  font-size: 0.85rem;
}

@media (max-width: 991px) {
  .sports-grid ul {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 575px) {
  .sports-grid ul {
    grid-template-columns: repeat(3, 1fr);
  }
  .sports-grid a {
    height: 100px;
  }
  .sports-grid img {
    max-height: 36px;
  }
}

/* ============================================================================
   TOC — pill chips
   ========================================================================== */

.toc {
  margin-bottom: var(--gap);
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--r-image);
}
.toc__heading {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc li {
  margin: 0;
}
.toc li::marker {
  content: none;
}
.toc a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-button);
  color: #fff;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.toc a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================================
   Article body — prose, sections, floats, tables
   ========================================================================== */

.article-body section {
  margin-bottom: var(--gap);
  /* Clear floats so they don't bleed across sections */
  clear: both;
  scroll-margin-top: 100px;
}

.article-body h2 {
  color: #fff;
}
.article-body h3 {
  color: var(--gold);
}

.article-body table.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.article-body table.data-table th,
.article-body table.data-table td {
  padding: 14px 16px;
  background: var(--bg-table);
  text-align: left;
  vertical-align: middle;
  border: 0;
}
.article-body table.data-table th {
  font-weight: 600;
  color: #fff;
  background: #11192c;
}
.article-body table.data-table tr td:first-child,
.article-body table.data-table tr th:first-child {
  border-radius: var(--r-image) 0 0 var(--r-image);
}
.article-body table.data-table tr td:last-child,
.article-body table.data-table tr th:last-child {
  border-radius: 0 var(--r-image) var(--r-image) 0;
}

@media (max-width: 767px) {
  .article-body table.data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Hero gallery — Estonia-specific CoolBet illustrations
   Placement: mid-article, capped at 800px wide per the playbook  */
.hero-gallery {
  max-width: 800px;
  margin: 1.5rem auto;
  text-align: center;
}
.hero-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--r-image);
}

.hero-gallery--right {
  float: right;
  width: 38%;
  max-width: 449px;
  margin: 0.25rem 0 1rem 1.5rem;
}
.hero-gallery--left {
  float: left;
  width: 38%;
  max-width: 449px;
  margin: 0.25rem 1.5rem 1rem 0;
}
@media (max-width: 991px) {
  .hero-gallery--right,
  .hero-gallery--left {
    float: none;
    width: 100%;
    max-width: 800px;
    margin: 1rem auto;
  }
}

/* ============================================================================
   FAQ — 2-column grid accordion
   ========================================================================== */

.faq {
  margin-top: 2rem;
  margin-bottom: var(--gap);
}
.faq__title {
  margin-bottom: 1.25rem;
}
.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  align-items: start;
}
.faq__item {
  background: var(--bg-card);
  padding: 14px 16px;
  border-radius: var(--r-image);
}
.faq__q {
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  user-select: none;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 0;
  width: 24px;
  height: 24px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__q::after {
  content: "−";
}
.faq__a {
  margin-top: 0.75rem;
  padding-right: 32px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .faq__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ============================================================================
   404
   ========================================================================== */

.page-404 {
  max-width: 700px;
  margin: 4rem auto;
  text-align: center;
}
.page-404 h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}
.page-404__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.page-404__nav li::marker {
  content: none;
}
.page-404__nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  color: #fff;
  border-radius: var(--r-button);
  text-decoration: none;
  font-size: 0.9rem;
}
.page-404__nav a:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================================================
   Footer
   ========================================================================== */

.footer {
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  background: #060a14;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer__brand .footer__logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer__brand .footer__logo img {
  max-height: 38px;
  width: auto;
}
.footer__tagline {
  font-size: 0.9rem;
  max-width: 220px;
  margin: 0 0 1rem;
}

.footer__social {
  display: flex;
  gap: 0.5rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition:
    background 0.15s,
    color 0.2s,
    transform 0.15s;
}
.footer__social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 1rem;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__col li {
  margin-bottom: 0.5rem;
}
.footer__col li::marker {
  content: none;
}
.footer__col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer__col a:hover {
  color: var(--gold);
}

.footer__support-label {
  font-size: 0.85rem;
  margin: 0 0 0.25rem;
}
.footer__support-link {
  font-size: 0.9rem;
  color: #fff;
}

@media (max-width: 767px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
  }
}

/* Partner / payment / badge rows — bounded sizes per playbook */
.footer__partners,
.footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.footer__partner-item {
  flex: 0 0 auto;
  max-width: 90px;
}
.footer__partner-item img {
  width: auto;
  max-height: 50px;
  max-width: 90px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer__partner-item img:hover {
  opacity: 1;
}

.footer__payment-item {
  flex: 0 0 auto;
  max-width: 75px;
}
.footer__payment-item img {
  width: auto;
  max-height: 19px;
  max-width: 75px;
  opacity: 0.85;
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding-top: 1.5rem;
}
.footer__copy {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-muted);
}
.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
.footer__badge {
  flex: 0 0 auto;
  max-width: 75px;
}
.footer__badge img {
  width: auto;
  max-height: 28px;
  max-width: 75px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.footer__badge img:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .footer__bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__badges {
    justify-content: center;
  }
  .footer__partners,
  .footer__payments {
    gap: 14px;
    padding: 1rem 0;
  }
}

/* ============================================================================
   Scroll-to-top
   ========================================================================== */

.scroll-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s,
    transform 0.25s,
    visibility 0.25s;
  z-index: 50;
}
.scroll-to-top.is-visible {
  opacity: 0.85;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  opacity: 1;
}

@media (max-width: 575px) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 0.75rem;
    right: 0.75rem;
  }
}

/* =============================================================================
   MOBILE FIXES
   - Mobile nav was being constrained by .header's backdrop-filter creating a
     containing block for fixed-positioned descendants. Use explicit height
     and keep the burger above the panel so it stays clickable to close.
   - Show lang dropdown menu with scroll on mobile.
   - Equal-sized header CTAs.
   ========================================================================= */
@media (max-width: 991px) {
  /* Mobile nav: pin to header bottom and use explicit height (not bottom:0)
     so backdrop-filter on .header doesn't clip it. */
  .header__mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: auto;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    z-index: 90;
  }
  /* Burger above the mobile nav so it stays tappable when open. */
  .header__burger {
    position: relative;
    z-index: 100;
    flex-shrink: 0;
  }
  .header__burger span {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .header__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .header__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  /* Lang dropdown — make sure list scrolls when long, stays in view */
  .header-lang__list {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Equal-sized header CTAs (when both visible) */
.header__actions .btn-primary,
.header__actions .btn-success {
  padding: 8px 16px;
  font-size: 0.85rem;
  line-height: 1.2;
  min-height: 38px;
  align-items: center;
  justify-content: center;
}
