/* ===== Content2Go i18n — language switcher + first-visit popup ===== */
.lang-switch{position:relative;display:inline-flex;align-self:center;flex-shrink:0;font-family:Geist,-apple-system,sans-serif;-webkit-text-size-adjust:100%}
/* placed into the header grid: right edge of the 3rd column (between the two nav groups), vertically centered — does not move any existing item */
.lang-switch--hdr{grid-column:3;grid-row:1;justify-self:center;align-self:center;z-index:60}
.lang-switch__btn{display:inline-flex;align-items:center;gap:5px;height:auto;padding:5px 9px;border-radius:100px;border:1px solid rgba(0,0,0,.16);background:#fff;cursor:pointer;font-size:12px;font-weight:600;color:#101010;line-height:1;letter-spacing:0;transition:border-color .2s,box-shadow .2s;font-family:inherit}
.lang-switch__btn:hover{border-color:#101010}
.lang-switch__flag{display:inline-flex;align-items:center;line-height:1}
.lf{display:block;width:17px;height:12px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.14)}
.lang-switch__code{letter-spacing:.02em}
.lang-switch__chev{width:13px;height:13px;color:#999;transition:transform .25s}
.lang-switch.open .lang-switch__chev{transform:rotate(180deg)}
.lang-switch__menu{position:absolute;top:calc(100% + 8px);right:0;min-width:184px;background:#fff;border:1.5px solid rgba(0,0,0,.1);border-radius:16px;box-shadow:0 24px 56px -22px rgba(0,0,0,.4);padding:6px;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .2s,transform .25s cubic-bezier(.16,1,.3,1),visibility .2s;z-index:100002}
.lang-switch.open .lang-switch__menu{opacity:1;visibility:visible;transform:none}
.lang-switch__item{display:flex;align-items:center;gap:12px;width:100%;padding:11px 14px;border-radius:11px;border:none;background:transparent;cursor:pointer;font-size:15px;font-weight:600;color:#101010;text-align:left;transition:background .15s;font-family:inherit}
.lang-switch__item:hover{background:#f4f4f1}
.lang-switch__item.active{background:#eaffa6}
.lang-switch__item .lf{width:24px;height:17px}
[data-theme="dark"] .lang-switch__btn,[data-theme="dark"] .lang-switch__menu{background:#1a1a1a;border-color:#333;color:#fff}
[data-theme="dark"] .lang-switch__btn{color:#fff}
[data-theme="dark"] .lang-switch__item{color:#fff}
[data-theme="dark"] .lang-switch__item:hover{background:#262626}
[data-theme="dark"] .lang-switch__item.active{background:#2f3d00;color:#eaffa6}

/* ===== TINY variant: glued right after the "Content 2GO" logo text =====
   Inline (vertical-align:middle) so it sits exactly on the text baseline.
   The logo lives in a fixed-width grid column with empty space to its right,
   so widening it shifts NOTHING (subtitle / nav / Войти are other columns). */
.lang-switch--logo{display:inline-flex;vertical-align:middle;margin-left:7px;z-index:60}
.lang-switch--logo .lang-switch__btn{gap:3px;padding:2px 4px;border-radius:5px;border:1px solid rgba(0,0,0,.14);font-size:9px}
.lang-switch--logo .lang-switch__code{display:none}
.lang-switch--logo .lf{width:15px;height:11px;border-radius:1.5px}
.lang-switch--logo .lang-switch__chev{width:9px;height:9px}
.lang-switch--logo .lang-switch__menu{left:0;right:auto;min-width:152px;top:calc(100% + 6px);border-radius:12px}
.lang-switch--logo .lang-switch__item{font-size:13px;padding:9px 12px;gap:10px}
.lang-switch--logo .lang-switch__item .lf{width:20px;height:14px}

/* First-visit popup */
.lang-pop{position:fixed;inset:0;z-index:100050;display:none;align-items:center;justify-content:center;padding:20px;font-family:Geist,-apple-system,sans-serif}
.lang-pop.show{display:flex}
.lang-pop__ov{position:absolute;inset:0;background:rgba(8,8,8,.62);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.lang-pop__box{position:relative;background:#fff;border-radius:28px;padding:42px 38px 36px;max-width:430px;width:100%;text-align:center;box-shadow:0 48px 120px -28px rgba(0,0,0,.55);z-index:1;animation:langpop .4s cubic-bezier(.16,1,.3,1)}
@keyframes langpop{from{opacity:0;transform:translateY(22px) scale(.96)}to{opacity:1;transform:none}}
.lang-pop__logo{width:52px;height:52px;margin:0 auto 18px;display:block}
.lang-pop__title{font-size:25px;font-weight:800;color:#101010;letter-spacing:-.02em;margin-bottom:7px;line-height:1.2}
.lang-pop__sub{font-size:14px;color:#888;margin-bottom:26px;line-height:1.4}
.lang-pop__opts{display:flex;flex-direction:column;gap:11px}
.lang-pop__opt{display:flex;align-items:center;gap:15px;padding:15px 18px;border-radius:16px;border:2px solid rgba(0,0,0,.1);background:#fff;cursor:pointer;color:#101010;transition:border-color .2s,background .2s,transform .15s;font-family:inherit}
.lang-pop__opt:hover{border-color:#101010;transform:translateY(-2px)}
.lang-pop__opt.suggested{border-color:#c8ff00;background:#fbffe8}
.lang-pop__opt .f{display:inline-flex;align-items:center;line-height:1}
.lang-pop__opt .f .lf{width:36px;height:26px;border-radius:5px}
.lang-pop__opt .n{flex:1;text-align:left;font-size:18px;font-weight:700}
.lang-pop__opt .s{font-size:11px;font-weight:700;color:#5f8000;background:#eaffa6;padding:4px 10px;border-radius:100px;white-space:nowrap}
@media (max-width:480px){.lang-pop__box{padding:34px 22px 26px}.lang-pop__title{font-size:22px}}
