/* ===== BLOCK: topbar ===== */
.topbar {
  position: relative;
  z-index: 60;
  background: var(--c-dark);
  color: var(--c-on-dark);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  line-height: 1.3;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  font-size: clamp(.8125rem, .78rem + .2vw, 1.0625rem);
}
.topbar__phone {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.topbar__phone:hover { color: var(--c-apricot-200); }

.topbar__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}

/* Перемикач мов */
.lang {
  display: inline-flex;
  padding: 2px;
  /* border: 1px solid rgba(249,249,250,.7); */
  border-radius: 6px;
}
.lang__link {
  min-width: 32px;
  padding: 3px 7px;
  border-radius: 4px;
  font-family: var(--ff-head);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}
.lang__link.is-active { background: var(--c-on-dark); color: var(--c-ink); }
.lang__link:not(.is-active):hover { background: rgba(249,249,250,.15); }

/* Перемикач розміру тексту — випадний список */
.text-size {
  position: relative;
  font-family: var(--ff-head);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.no-js .text-size { display: none; } /* без JS перемикач не працює */
.text-size__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 8px 3px 6px;
  border-radius: 6px;
  line-height: 1;
}
.text-size__toggle:hover { background: rgba(249,249,250,.15); }
.text-size__current {
  min-width: 28px;
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--c-on-dark);
  color: var(--c-ink);
  font-weight: 700;
  text-align: center;
}
.text-size__chevron { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.text-size__toggle[aria-expanded="true"] .text-size__chevron { transform: rotate(180deg); }

.text-size__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 190px;
  padding: 6px;
  border-radius: var(--r-sm);
  background: var(--c-white);
  box-shadow: var(--sh-float);
  color: var(--c-ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .2s var(--ease-out), visibility 0s linear .2s;
}
.text-size__list.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .18s ease, transform .2s var(--ease-out), visibility 0s;
}
.text-size__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: .875rem;
  font-weight: 600;
  text-align: left;
}
.text-size__option:hover { background: var(--c-apricot-50); }
.text-size__option[aria-pressed="true"] { background: var(--c-apricot-100); }
.text-size__option:focus-visible { outline: 2px solid var(--c-orange); outline-offset: -2px; }
.text-size__sample {
  min-width: 36px;
  color: var(--c-orange-text);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .875rem;
  line-height: 1;
}
.text-size__sample--1 { font-size: 1rem; }
.text-size__sample--2 { font-size: 1.125rem; }

.text-size__toggle:focus-visible,
.lang__link:focus-visible,
.topbar__phone:focus-visible { outline-color: var(--c-apricot-200); }

@media (max-width: 768px) {
  .topbar__inner { justify-content: center; padding-top: 8px; padding-bottom: 8px; }
  .topbar__info { justify-content: center; gap: 2px 14px; }
}
/* ===== /BLOCK: topbar ===== */
