:root { --geo-bg: #8f1317; --geo-accent: #ffd1ce; }
.geo-switch { position: relative; z-index: 1201; flex: none; font-family: inherit; }
.geo-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 6px 10px; color: #fff; background: var(--geo-bg); border: 1px solid var(--geo-accent); border-radius: 12px; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.1; cursor: pointer; white-space: nowrap; }
.geo-toggle:hover, .geo-toggle:focus-visible, .geo-toggle[aria-expanded="true"] { background: color-mix(in srgb, var(--geo-bg), white 14%); outline-color: var(--geo-accent); }
.geo-code { letter-spacing: .03em; }
.geo-flag { display: block; flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.geo-chevron { display: block; flex: none; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transform-origin: center; transition: transform .2s ease, margin .2s ease; }
.geo-toggle[aria-expanded="true"] .geo-chevron { margin-top: 4px; transform: rotate(225deg); }
.geo-popover { position: fixed; left: var(--geo-left, 0px); top: var(--geo-top, 64px); z-index: 1400; display: grid; gap: 2px; width: 132px; max-height: calc(100dvh - var(--geo-top, 64px) - 12px); overflow-y: auto; padding: 9px; background: var(--geo-bg); border: 1px solid var(--geo-accent); border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.3); overscroll-behavior: contain; }
.geo-popover[hidden] { display: none; }
.geo-popover a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; color: #fff; border-radius: 10px; text-decoration: none; font-weight: 800; }
.geo-popover a:hover, .geo-popover a:focus-visible { background: rgba(255,255,255,.16); outline-color: var(--geo-accent); }
.geo-popover .geo-flag { width: 28px; height: 28px; }
.geo-menu-section { display: block; }
.geo-menu-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 13px 14px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: left; cursor: pointer; }
.geo-menu-button:hover, .geo-menu-button:focus-visible { background: rgba(255,255,255,.18); }
.geo-menu-button[aria-expanded="true"] .geo-chevron { margin-top: 4px; transform: rotate(225deg); }
.geo-menu-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; max-height: min(40dvh, 340px); overflow-y: auto; padding: 9px 0 2px; overscroll-behavior: contain; }
.geo-menu-list[hidden] { display: none; }
.geo-menu-list a { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 10px; color: #fff; background: rgba(255,255,255,.08); border-radius: 9px; text-decoration: none; font-size: 13px; }
.geo-menu-list a:hover, .geo-menu-list a:focus-visible { background: rgba(255,255,255,.2); }
.geo-menu-list .geo-flag { width: 22px; height: 22px; }
.geo-footer { max-width: 1600px; margin: 0 auto; padding: 20px 30px 26px; border-top: 1px solid rgba(255,255,255,.22); }
.geo-footer-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.geo-footer-item { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 13px; color: #fff; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.25; text-decoration: none; }
.geo-footer-item:hover, .geo-footer-item:focus-visible, .geo-footer-item[aria-current="page"] { border-color: var(--geo-accent); background: rgba(255,255,255,.14); color: #fff; }
.geo-footer-item .geo-flag { width: 25px; height: 25px; }
body.menu-open .geo-switch { opacity: 0; pointer-events: none; }
@media (min-width: 860.01px) and (max-width: 1080px) {
  .site-header .header-inner { grid-template-columns: 44px minmax(0, 1fr) auto auto !important; gap: 8px; padding-inline: 16px; }
  .site-header .desktop-quick-nav, .site-header .header-quick-links { display: none !important; }
  .site-header .header-inner > .brand { grid-column: 2 !important; grid-row: 1; position: static; translate: none; transform: none; width: 146px; justify-self: center; }
  .site-header .brand img { width: 146px; max-height: 52px; }
  .site-header .header-actions { display: none !important; }
  .site-header .header-inner > .geo-switch { grid-column: 3; grid-row: 1; justify-self: end; }
  .site-header .header-inner > .header-bonus-trigger { grid-column: 4 !important; grid-row: 1; }
  .site-header .header-inner > .header-left-tools { grid-column: 1; grid-row: 1; }
  .site-header .burger { display: grid !important; }
}
@media (max-width: 1080px) {
  .site-header .desktop-quick-nav, .site-header .header-quick-links { display: none !important; }
}
@media (max-width: 860px) {
  .site-header .header-inner { grid-template-columns: 44px minmax(0,1fr) auto auto; gap: 7px; }
  .site-header .header-inner > .brand { grid-column: 2; min-width: 0; }
  .site-header .header-inner > .geo-switch { grid-column: 3; grid-row: 1; justify-self: end; }
  .site-header .header-inner > .header-bonus-trigger { grid-column: 4; grid-row: 1; }
  .site-header .header-inner > .header-left-tools { grid-column: 1; grid-row: 1; }
  .geo-toggle { min-height: 40px; padding: 5px 7px; gap: 4px; }
  .geo-toggle .geo-flag { width: 21px; height: 21px; }
  .geo-footer { padding: 18px 16px 24px; }
}
@media (max-width: 390px) {
  .site-header .header-inner { padding-inline: 8px; gap: 5px; }
  .site-header .header-inner > .brand, .site-header .header-inner > .brand img { width: min(110px, 100%); }
  .geo-toggle { padding-inline: 5px; font-size: 12px; }
  .geo-toggle .geo-flag { width: 18px; height: 18px; }
  .geo-toggle .geo-chevron { width: 7px; height: 7px; }
  .geo-menu-list { grid-template-columns: 1fr; }
}

@media (min-width: 1080.01px) {
  .site-header .header-inner { grid-template-columns: 44px auto minmax(190px, 1fr) auto 42px; gap: 10px; }
  .site-header .burger { display: grid; grid-column: 1; }
  .site-header .desktop-quick-nav { display: flex; grid-column: 2; }
  .site-header .brand { grid-column: 3; justify-self: center; position: static; translate: none; transform: none; }
  .site-header .header-actions { grid-column: 4; }
  .site-header .header-bonus-trigger { grid-column: 5; }
}
