@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #0088ce;
  --blue-accessible: #006da6;
  --blue-hover: #005b9b;
  --blue-light: #e8f4fa;
  --text: #304150;
  --text-light: #6b7280;
  --bg-light: #f3f6f7;
  --bg-dark: #1a2332;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-heading: "Montserrat", Arial, sans-serif;
  --font-body: "Source Sans 3", Arial, sans-serif;
  --fs-display: 3rem;
  --fs-section: 2.5rem;
  --fs-sub: 2.0625rem;
  --fs-body: 1rem;
  --fs-overline: 0.875rem;
  --fs-small: 0.8125rem;
  --max-width: 1440px;
  --side-padding: 40px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-light);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--blue-hover);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-header {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  min-height: 80px;
  margin: 0 auto;
  padding: 0 var(--side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  width: 176px;
  height: auto;
}

.market-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: var(--blue-light);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.market-badge svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--side-padding);
  display: flex;
  align-items: center;
}

.gateway {
  width: 100%;
  min-height: 664px;
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.gateway-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
}

.gateway-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(26, 35, 50, 0.58) 100%);
  pointer-events: none;
}

.gateway-visual picture,
.gateway-visual img {
  width: 100%;
  height: 100%;
  min-height: 664px;
}

.gateway-visual img {
  object-fit: cover;
  object-position: 57% center;
}

.visual-caption {
  position: absolute;
  right: 32px;
  bottom: 32px;
  left: 32px;
  z-index: 1;
  margin: 0;
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.selector-panel {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overline {
  margin: 0 0 8px;
  color: var(--blue-accessible);
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  max-width: 640px;
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.intro {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--text-light);
  line-height: 1.6;
}

.country-grid {
  margin: 40px 0 0;
}

.country-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.country-item {
  min-width: 0;
}

.country-card {
  min-width: 0;
  min-height: 72px;
  height: 100%;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.country-card:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.country-card:active {
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
}

.country-flag {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.country-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.country-name,
.country-language {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-name {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}

.country-language {
  color: var(--text-light);
  font-size: var(--fs-small);
  line-height: 1.25;
}

.country-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  transition: color var(--transition), transform var(--transition);
}

.country-card:hover .country-arrow {
  color: var(--blue-hover);
  transform: translateX(2px);
}

.international {
  margin: 32px 0 0;
  color: var(--text-light);
  font-size: var(--fs-small);
}

.international a,
.not-found a {
  color: var(--blue-hover);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.international a:hover,
.not-found a:hover {
  color: var(--blue);
}

.site-footer {
  flex: 0 0 auto;
  padding: 0 var(--side-padding) 24px;
  color: #5f6873;
  font-size: var(--fs-small);
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-footer a {
  color: var(--blue-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--blue);
}

.not-found {
  width: 100%;
  max-width: 720px;
  margin: auto;
  padding: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.not-found p {
  margin: 16px 0 0;
  color: var(--text-light);
}

.legal-main {
  align-items: flex-start;
}

.legal-card {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.legal-card h1 {
  font-size: var(--fs-section);
}

.legal-card h2 {
  margin: 40px 0 12px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.4375rem;
  line-height: 1.25;
}

.legal-card p,
.legal-card address,
.legal-card ul {
  margin: 12px 0 0;
}

.legal-card address {
  font-style: normal;
}

.legal-card a {
  color: var(--blue-hover);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card .updated {
  color: var(--text-light);
  font-size: var(--fs-small);
}

@media (max-width: 1200px) {
  .main {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .gateway {
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  }

  .selector-panel {
    padding: 48px;
  }
}

@media (max-width: 1024px) {
  :root {
    --side-padding: 24px;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-logo {
    width: 160px;
  }

  .gateway,
  .gateway-visual picture,
  .gateway-visual img {
    min-height: 624px;
  }

  .selector-panel {
    padding: 40px;
  }

  h1 {
    font-size: var(--fs-section);
  }

  .country-grid {
    margin-top: 32px;
  }

  .country-card {
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    gap: 8px;
  }

  .country-flag {
    width: 32px;
    height: 32px;
  }

  .country-arrow {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --side-padding: 16px;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-logo {
    width: 144px;
  }

  .main {
    padding-top: 24px;
    padding-bottom: 24px;
    align-items: flex-start;
  }

  .gateway {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .gateway-visual,
  .gateway-visual picture,
  .gateway-visual img {
    min-height: 200px;
    max-height: 224px;
  }

  .gateway-visual img {
    object-position: center 42%;
  }

  .visual-caption {
    right: 24px;
    bottom: 16px;
    left: 24px;
  }

  .selector-panel {
    padding: 40px 32px;
  }

  .site-footer {
    padding-bottom: 16px;
  }
}

@media (max-width: 560px) {
  .market-badge span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .market-badge {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .gateway-visual,
  .gateway-visual picture,
  .gateway-visual img {
    min-height: 168px;
    max-height: 168px;
  }

  .selector-panel {
    padding: 32px 24px;
  }

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

@media (max-width: 480px) {
  .gateway-visual {
    display: none;
  }

  .main {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .gateway {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  .selector-panel {
    padding: 32px 24px;
  }

  h1 {
    font-size: var(--fs-sub);
  }

  .intro {
    margin-top: 8px;
  }

  .country-grid {
    margin-top: 24px;
  }

  .country-list {
    gap: 8px;
  }

  .country-card {
    min-height: 64px;
    padding: 8px 12px;
  }

  .international {
    margin-top: 24px;
  }

  .not-found {
    padding: 40px 24px;
  }

  .legal-card {
    padding: 40px 24px;
  }

  .legal-card h1 {
    font-size: var(--fs-sub);
  }
}


@media (max-width: 360px) {
  .selector-panel {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
