/* Переключатель языка CUCL (RU / KZ / AM / BY) */
.cucl-lang { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; font-family: inherit; }
.cucl-lang__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 10px;
  border: 1px solid var(--border-soft, rgba(14, 15, 12, .14)); border-radius: 999px;
  background: var(--color-paper, #fff); color: var(--color-forest-ink, #0e0f0c);
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .02em; cursor: pointer; line-height: 1;
  transition: background .15s ease, border-color .15s ease;
}
.cucl-lang__btn:hover { background: var(--color-linen-mist, #eef0ea); }
.cucl-lang__btn:focus-visible { outline: 3px solid rgba(34, 177, 72, .35); outline-offset: 2px; }
.cucl-lang__globe { width: 18px; height: 18px; flex: 0 0 auto; }
.cucl-lang__chev { width: 10px; height: 10px; opacity: .6; transition: transform .15s ease; }
.cucl-lang[data-open="1"] .cucl-lang__chev { transform: rotate(180deg); }
.cucl-lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 2147483000; min-width: 190px; margin: 0; padding: 6px;
  list-style: none; background: var(--color-paper, #fff); border: 1px solid var(--border-soft, rgba(14, 15, 12, .12));
  border-radius: 14px; box-shadow: 0 14px 36px rgba(14, 15, 12, .16);
}
.cucl-lang__menu[hidden] { display: none; }
.cucl-lang__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--color-forest-ink, #0e0f0c); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: left;
}
.cucl-lang__item:hover { background: var(--color-linen-mist, #eef0ea); }
.cucl-lang__item[aria-selected="true"] { background: rgba(34, 177, 72, .12); }
.cucl-lang__flag { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(14, 15, 12, .12); }
.cucl-lang__name { flex: 1 1 auto; }
.cucl-lang__tag { font-size: 11px; font-weight: 800; opacity: .5; letter-spacing: .04em; }
.cucl-lang--desktop-only { display: none; }
@media (min-width: 960px) { .cucl-lang--desktop-only { display: inline-flex; } .cucl-lang--mobile-only { display: none; } }
@media (max-width: 599px) { .cucl-lang__btn { height: 38px; padding: 0 8px; } .cucl-lang__menu { right: -8px; } }

.cucl-lang-loader {
  position: fixed; inset: 0; z-index: 2147483600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(14, 15, 12, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #fff; font-weight: 700; font-size: 16px;
  opacity: 0; transition: opacity .18s ease;
}
.cucl-lang-loader[data-show="1"] { opacity: 1; }
.cucl-lang-loader__spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .28); border-top-color: #9fe870; animation: cuclLangSpin .8s linear infinite; }
@keyframes cuclLangSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cucl-lang-loader__spin { animation-duration: 2s; } }
