.language-switcher {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  z-index: 80;
}

.language-switcher summary {
  display: inline-flex;
  min-width: 78px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(20, 113, 88, 0.19);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 8px 22px rgba(20, 67, 52, 0.06);
  color: #244b40;
  cursor: pointer;
  list-style: none;
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary:hover,
.language-switcher[open] summary {
  border-color: rgba(19, 129, 96, 0.34);
  background: rgba(247, 253, 250, 0.94);
  box-shadow: inset 0 1px 0 #fff, 0 12px 28px rgba(15, 92, 69, 0.12);
}

.language-switcher summary:focus-visible {
  outline: 2px solid rgba(33, 155, 116, 0.28);
  outline-offset: 2px;
}

.language-switcher__globe {
  position: relative;
  width: 15px;
  height: 15px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  color: #12805f;
}

.language-switcher__globe::before,
.language-switcher__globe::after {
  position: absolute;
  content: "";
}

.language-switcher__globe::before {
  inset: 2px 4px;
  border-right: 1px solid currentColor;
  border-left: 1px solid currentColor;
  border-radius: 50%;
}

.language-switcher__globe::after {
  top: 6px;
  right: 1px;
  left: 1px;
  border-top: 1px solid currentColor;
}

.language-switcher__code {
  font: 850 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.07em;
}

.language-switcher__chevron {
  color: #6d817b;
  font: 800 12px/1 Inter, system-ui, sans-serif;
  transform: translateY(-1px);
  transition: transform 160ms ease;
}

.language-switcher[open] .language-switcher__chevron {
  transform: translateY(1px) rotate(180deg);
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: 172px;
  padding: 7px;
  border: 1px solid rgba(20, 113, 88, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 46px rgba(17, 63, 50, 0.16), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  animation: languageMenuIn 150ms ease both;
}

.language-switcher:not([open]) > .language-switcher__menu {
  display: none;
}

.language-switcher__menu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 11px;
  border-radius: 10px;
  color: #294d43;
  font: 750 12px/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease;
}

.language-switcher__menu a small {
  color: #83938e;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.language-switcher__menu a:hover,
.language-switcher__menu a:focus-visible {
  color: #0c6e52;
  background: rgba(225, 245, 236, 0.72);
  outline: none;
}

.language-switcher__menu a[aria-current="page"] {
  color: #0b694f;
  background: rgba(218, 243, 232, 0.82);
}

@keyframes languageMenuIn {
  from { opacity: 0; transform: translateY(-5px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.language-switcher--legal {
  float: right;
  margin: 0 0 12px 18px;
}

.site-header .header-actions:has(.language-switcher) {
  grid-template-columns: auto 180px;
}

.site-header .header-actions:has(.language-switcher):has(.header-message-button) {
  grid-template-columns: auto 180px 180px;
}

.site-header .header-actions > .language-switcher {
  align-self: center;
  justify-self: center;
}

.site-header > .language-switcher {
  margin-left: auto;
}

.service-scope-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  width: min(calc(100% - 48px), 1440px);
  margin: 22px auto 0;
  padding: 17px 20px;
  border: 1px solid rgba(21, 122, 92, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(234, 248, 241, 0.78)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(15, 62, 47, 0.08);
}

.service-scope-strip strong {
  color: #0d6c50;
  font-size: 13px;
  white-space: nowrap;
}

.service-scope-strip p {
  margin: 0;
  color: #45675d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.service-scope-strip a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(21, 122, 92, 0.22);
  border-radius: 999px;
  color: #0d6c50;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.ua-compliance-home .legal-main {
  max-width: 1120px;
  padding-top: 36px;
}

.ua-home-hero {
  max-width: 1020px;
  padding: 12px 0 34px;
}

.ua-home-hero .eyebrow {
  margin-bottom: 24px;
}

.ua-compliance-home .ua-home-hero h1 {
  display: grid;
  gap: 8px;
  max-width: 1020px;
  margin: 0 0 26px;
  color: #08251f;
  font-size: clamp(48px, 4.1vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ua-compliance-home .ua-home-hero h1 span:first-child {
  color: #0c6f54;
  font-size: 0.72em;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.ua-home-hero .hero-lede {
  max-width: 820px;
  margin: 0;
  color: #38564d;
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 620;
  line-height: 1.65;
}

.ua-compliance-home .action-grid,
.ua-compliance-home .price-grid,
.ua-compliance-home .quick-steps {
  margin-top: 20px;
}

.ua-compliance-home .legal-main > section {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .service-scope-strip {
    grid-template-columns: 1fr auto;
  }

  .service-scope-strip p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .site-header .header-actions:has(.language-switcher) {
    display: contents;
  }

  .site-header .language-switcher {
    order: 0;
    margin-left: auto;
  }

  .site-header .header-message-button,
  .site-header .header-cta {
    order: 2;
    flex: 1 1 calc(50% - 5px);
  }

  .site-header > .header-cta {
    flex-basis: 100%;
  }

  .site-header .language-switcher summary {
    min-width: 68px;
    min-height: 34px;
    gap: 6px;
    padding-inline: 10px;
  }

  .site-header .language-switcher__menu {
    width: 160px;
  }

  .ua-compliance-home .legal-main {
    padding-top: 24px;
  }

  .ua-home-hero {
    padding: 4px 0 24px;
  }

  .ua-home-hero .eyebrow {
    margin-bottom: 18px;
  }

  .ua-compliance-home .ua-home-hero h1 {
    gap: 7px;
    margin-bottom: 20px;
    font-size: clamp(36px, 9.6vw, 40px);
    line-height: 1.01;
    letter-spacing: -0.03em;
  }

  .ua-compliance-home .ua-home-hero h1 span:first-child {
    font-size: 0.68em;
    line-height: 1.08;
  }

  .ua-home-hero .hero-lede {
    font-size: 16px;
    line-height: 1.58;
  }

  .service-scope-strip {
    grid-template-columns: 1fr;
    width: min(calc(100% - 28px), 1440px);
    margin-top: 14px;
    padding: 16px;
  }

  .service-scope-strip p {
    grid-column: auto;
    grid-row: auto;
  }

  .service-scope-strip a {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .language-switcher--legal {
    float: none;
    margin: 0 0 16px;
  }

  .language-switcher--legal .language-switcher__menu {
    right: auto;
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher summary,
  .language-switcher__chevron,
  .language-switcher__menu,
  .language-switcher__menu a {
    transition: none;
    animation: none;
  }
}
