/* Language switcher RU · EN · SV and per-language layout overrides (added for the EN/SV versions). */

.lang-switch {
  display: flex;
  flex: none;
  align-items: center;
  margin: 0;
  margin-left: 28px;
  letter-spacing: -0.16px;
  transform: translateY(0.586px);
}

.lang-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 44px;
  color: rgb(255 255 255 / 68%);
  transition: color 180ms ease;
}

.lang-switch__link[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.lang-switch__sep {
  padding-inline: 5px;
  color: rgb(255 255 255 / 48%);
}

@media (hover: hover) and (pointer: fine) {
  .lang-switch__link:hover { color: #fff; }
}

/* Menu copy: only where the header switcher is hidden (below 768 px). */
.lang-switch--menu { display: none; }

@media (max-width: 1199px) {
  .site-header .lang-switch { margin-left: 20px; }
}

@media (max-width: 959px) {
  .site-header .lang-switch { margin-right: 4px; }
}

/* Below 768 px the header has no room next to search, phone and menu button: the switcher moves into the menu. */
@media (max-width: 767px) {
  .site-header .lang-switch { display: none; }

  .lang-switch--menu {
    display: flex;
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 24px;
    transform: none;
  }

  .lang-switch--menu .lang-switch__link { min-width: 0; color: #48585c; }
  .lang-switch--menu .lang-switch__sep { padding-inline: 10px; }
  .lang-switch--menu .lang-switch__link[aria-current="page"] { color: #3a737c; }
  .lang-switch--menu .lang-switch__sep { color: #9aa6a9; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch__link { transition: none; }
}

/* Header nav item widths are fixed per word in style.css (EN values there); Swedish words differ. */
html[lang="sv"] .desktop-nav__list li:nth-child(1) { width: 66px; }
html[lang="sv"] .desktop-nav__list li:nth-child(2) { width: 60px; }
html[lang="sv"] .desktop-nav__list li:nth-child(3) { width: 64px; }

/* Strategy page hero: the button is 195 px wide for "Обсудить проект"; "Diskutera ert projekt" needs more. */
@media (min-width: 640px) {
  html[lang="sv"] .service-hero__discuss { flex-basis: auto; padding-inline: 24px; white-space: nowrap; }
}

/* Footer menu: "Om företaget" wrapped onto the next row at 1920 px. */
html[lang="sv"] .footer-menu__list a { white-space: nowrap; }

/* Strategy page process steps: long Swedish compounds ("Strategiworkshoppar") are wider than the column at 1200 px. */
html[lang="sv"] .service-process__copy h3 { -webkit-hyphens: auto; hyphens: auto; }

/* Two-line headings in Cormorant Garamond (13.11.2026, Rodion: "vot eto poprav"): the Russian layout sets the lines
   0.68-0.93 em apart. With Latin letters the descenders of the first line (j, y, p, g) ran into the ascenders of the
   second (f, d, l, h) - "Discuss your project / and find a solution" by up to 32 px at 1920 px. Measured ink of two
   lines is about 1.01 em (tools/collide.js), so English and Swedish get 1.06. Russian is not affected. */
html[lang="en"] .contact__title, html[lang="sv"] .contact__title,
html[lang="en"] .service-overview__title, html[lang="sv"] .service-overview__title { line-height: 1.06; }
/* at 1920 px the contact heading box was fixed at 138 px (two lines of 65 px) - let it grow with the lines */
@media (min-width: 1920px) {
  html[lang="en"] .contact__title, html[lang="sv"] .contact__title { height: auto; min-height: 138px; }
}
