:root {
  --lang-ink: var(--ink, #151619);
  --lang-ash: var(--ash, #40444b);
  --lang-foam: var(--foam, #eef4fb);
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(21, 22, 25, 0.16);
  background: rgba(255, 255, 255, 0.75);
  color: var(--lang-ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.lang-switch__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 181, 209, 0.35);
}

.lang-switch__code {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
  padding: 6px;
  z-index: 20;
  display: none;
}

.lang-switch[open] .lang-switch__menu {
  display: grid;
  gap: 4px;
}

.lang-switch__option {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--lang-ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.lang-switch__option:hover,
.lang-switch__option:focus-visible {
  background: var(--lang-foam);
}

.lang-switch__option.is-active {
  background: rgba(79, 181, 209, 0.16);
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.public-lang-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0 auto;
  max-width: 960px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 50;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  color: var(--lang-ash);
  font-size: 0.92rem;
}

.cookie-banner__text {
  margin: 0;
  line-height: 1.4;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-banner__btn {
  border: 1px solid rgba(21, 22, 25, 0.18);
  background: #ffffff;
  color: var(--lang-ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner__btn--accept {
  border-color: rgba(11, 77, 187, 0.3);
  background: rgba(11, 77, 187, 0.08);
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: flex-start;
  }
}
