/* Header, footer and fixed utilities. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  background: rgba(22, 38, 66, .38);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-solid {
  color: var(--ink);
  background: rgba(255,255,255,.97);
  box-shadow: 0 4px 18px rgba(15,25,45,.08);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo {
  display: block;
  width: 168px;
  height: auto;
  object-fit: contain;
}
.brand-logo-light { display: none; }
.site-header.is-solid .brand-logo-dark { display: none; }
.site-header.is-solid .brand-logo-light { display: block; width: 156px; }
.footer-brand .brand-logo-footer { width: 190px; }
.main-nav { display: flex; align-items: center; gap: 30px; height: 100%; }
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 14px;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 0;
  height: 2px;
  background: var(--red);
  transform: translateX(-50%);
  transition: width .25s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--red); }
.header-lang {
  flex: 0 0 auto;
  min-width: 74px;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--blue-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.header-lang small { margin-top: 4px; font-size: 9px; font-weight: 400; letter-spacing: .5px; opacity: .85; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; font-size: 24px; }

.site-footer {
  background: #252b36;
  color: #d6d9df;
  padding: 62px 0 0;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer-brand { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 24px; }
.qr-row { display: flex; flex-wrap: wrap; gap: 16px; }
.qr-item { width: 108px; text-align: center; }
.qr-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 5px;
  border-radius: 3px;
}
.qr-item span { display: block; margin-top: 6px; color: #b9c0ca; font-size: 11px; }
.footer-brand small { display: block; margin-top: 12px; color: #9aa1ad; }
.footer-col p a { color: #fff; }
.footer-col p a:hover { text-decoration: underline; }
.footer-col h3 { margin: 4px 0 20px; color: #fff; font-size: 16px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.contact-empty {
  display: inline-block;
  min-width: 120px;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  color: #8f96a3;
  font-size: 12px;
  text-align: center;
}

.side-tools {
  position: fixed;
  right: 0;
  top: 32%;
  z-index: 45;
  display: flex;
  flex-direction: column;
}
.side-tools button,
.side-tools a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--blue-dark);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.side-tools a:nth-child(2) { background: var(--blue); }
.side-tools .to-top { background: #6c7b8e; font-size: 12px; line-height: 1.1; }
.side-tools .to-top span { display: block; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    padding: 8px 20px 18px;
    background: rgba(255,255,255,.98);
    color: var(--ink);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { height: auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .header-lang { margin-left: auto; height: var(--header-h); }
}
@media (max-width: 560px) {
  .brand-logo, .site-header.is-solid .brand-logo-light { width: 138px; }
  .footer-brand .brand-logo-footer { width: 164px; }
  .footer-grid { grid-template-columns: 1fr; }
  .side-tools { top: auto; bottom: 24px; }
}
