/* additions to the reference design: language switch and social buttons */
.bar__lang {
  font: 600 0.8rem/1 var(--sc-font-text);
  color: var(--sc-ink); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 0.6rem;
  border: 1px solid color-mix(in oklab, var(--sc-ink) 35%, transparent);
  border-radius: var(--sc-r-sm);
}
@media (hover: hover) and (pointer: fine) {
  .bar__lang:hover { border-color: var(--sc-ink); }
}
.bar__lang:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
/* the switch is one more item in the phone bar: on the narrowest phones «Меню» would be cut off */
@media (max-width: 380px) {
  .bar__act { gap: var(--sc-2); }
  .bar__lang { padding: 0 0.45rem; }
  .bar__burger { padding: 0 0.3rem; }
}

.social { display: flex; flex-wrap: wrap; gap: var(--sc-3); }
.social__a {
  display: inline-flex; align-items: center; gap: var(--sc-2);
  min-height: 40px; padding: 0 0.85rem;
  font: 500 0.92rem/1 var(--sc-font-text);
  color: var(--sc-ink) !important; text-decoration: none;
  border: 1px solid color-mix(in oklab, var(--sc-ink) 45%, transparent);
  border-radius: var(--sc-r-md);
}
.social__a svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
@media (hover: hover) and (pointer: fine) {
  .social__a[href]:hover { border-color: var(--sc-ink); background: color-mix(in oklab, var(--sc-ink) 5%, transparent); }
}
.social__a:not([href]) { opacity: 0.45; cursor: default; }
.social__a:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }

/* the page ends with the contacts: the reference left 8rem of empty space under them (user: too long) */
.doc__sec--close { padding-bottom: var(--sc-7); }
@media (max-width: 900px) { .doc__sec--close { padding-bottom: var(--sc-6); } }

/* Kazakh words are longer: let a long word break instead of pushing the page wider */
html[lang="kk"] .gs-h, html[lang="kk"] .ledger dt, html[lang="kk"] .facts dt { overflow-wrap: break-word; hyphens: auto; }

/* 2026-11-06: on a phone the page is ~18 screens long and the bar has only «Меню»:
   call and WhatsApp stay at the bottom of the screen the whole time */
.dock { display: none; }
@media (max-width: 900px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-2);
    padding: 0.5rem 0.75rem max(0.5rem, env(safe-area-inset-bottom));
    background: color-mix(in oklab, var(--sc-canvas) 92%, transparent);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid color-mix(in oklab, var(--sc-ink) 12%, transparent);
  }
  .dock__a {
    display: flex; align-items: center; justify-content: center; gap: var(--sc-2);
    min-height: 48px; border-radius: var(--sc-r-md);
    font: 600 0.95rem/1 var(--sc-font-text); text-decoration: none;
    color: var(--sc-ink); border: 1px solid color-mix(in oklab, var(--sc-ink) 45%, transparent);
  }
  .dock__a--wa { background: var(--sc-ink); color: #F6F8F3; border-color: var(--sc-ink); }
  .dock__a svg { width: 18px; height: 18px; flex: 0 0 auto; }
  .dock__a:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .gsc-open { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
