:root {
  --shared-header-red: #e63946;
  --shared-header-red-dark: #cb2531;
  --shared-header-dark: #1d3557;
  --shared-header-ink: #102033;
  --shared-header-muted: #718096;
  --shared-header-maxw: 1280px;
}

.site-responsive-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 90;
  width: 100%;
}

body:not(.home-redesign) {
  padding-top: 64px;
}

.site-responsive-header a {
  color: inherit;
  text-decoration: none;
}

.site-responsive-header button {
  font: inherit;
}

.shared-desktop-header {
  display: block;
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(12, 28, 50, 0.05);
}

.shared-desktop-header__inner {
  width: min(var(--shared-header-maxw), calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.shared-desktop-brand {
  min-width: 360px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.shared-desktop-brand__logo {
  width: 64px;
  height: 52px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 28, 50, 0.06);
}

.shared-desktop-brand__logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.shared-desktop-brand__copy {
  display: grid;
  gap: 1px;
  line-height: 1.12;
}

.shared-desktop-brand__copy strong {
  color: #1b1f27;
  font-family: "Plus Jakarta Sans", "Nunito Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.shared-desktop-brand__copy span {
  color: #5b6472;
  font-size: 13px;
  font-weight: 700;
}

.shared-desktop-nav,
.shared-desktop-lang,
.shared-desktop-links {
  display: flex;
  align-items: center;
}

.shared-desktop-nav {
  justify-content: flex-end;
  gap: 18px;
}

.shared-desktop-lang {
  gap: 8px;
}

.shared-desktop-links {
  gap: 22px;
}

.shared-desktop-link {
  position: relative;
  padding: 6px 0;
  color: #15171c;
  font-size: 15px;
  font-weight: 900;
  transition: color 0.2s ease;
}

.shared-desktop-link::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 3px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--shared-header-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.shared-desktop-link:hover,
.shared-desktop-link.active {
  color: var(--shared-header-red);
}

.shared-desktop-link:hover::after,
.shared-desktop-link.active::after {
  transform: scaleX(1);
}

.shared-desktop-lang a,
.shared-desktop-login {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 32, 51, 0.1);
  border-radius: 14px;
  color: #657085;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 22, 26, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.shared-desktop-lang a.active {
  border-color: rgba(230, 57, 70, 0.32);
  box-shadow: 0 10px 22px rgba(230, 57, 70, 0.12);
}

.shared-desktop-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 13px;
  background: var(--shared-header-red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(230, 57, 70, 0.32);
  font-family: "Plus Jakarta Sans", "Nunito Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-transform: lowercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shared-desktop-quote:hover,
.shared-desktop-login:hover {
  transform: translateY(-2px);
}

.shared-desktop-login {
  color: var(--shared-header-dark);
}

.shared-desktop-login:hover,
.shared-desktop-login.active {
  border-color: rgba(230, 57, 70, 0.3);
  color: var(--shared-header-red);
  box-shadow: 0 10px 22px rgba(230, 57, 70, 0.12);
}

.site-responsive-header .lang-flag {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(20, 22, 26, 0.12);
}

.site-responsive-header .lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.shared-mobile-header {
  display: none;
}

@media (max-width: 1120px) {
  .shared-desktop-links {
    gap: 14px;
  }

  .shared-desktop-link {
    font-size: 14px;
  }

  .shared-desktop-brand {
    min-width: 300px;
  }

  .shared-desktop-brand__copy strong {
    font-size: 15px;
  }

  .shared-desktop-brand__copy span {
    font-size: 12px;
  }
}

@media (max-width: 960px) {
  body:not(.home-redesign) {
    padding-top: 0;
  }

  .site-responsive-header {
    position: sticky;
    right: auto;
    left: auto;
  }

  .shared-desktop-header {
    display: none !important;
  }

  .shared-mobile-header {
    display: block !important;
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(23, 43, 71, 0.12);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(239, 243, 248, 0.88));
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 34px rgba(23, 43, 71, 0.08);
  }

  .shared-mobile-header__inner {
    width: min(100% - 22px, 336px);
    margin: 0 auto;
    display: grid;
    justify-items: center;
    gap: 11px;
  }

  .shared-mobile-brand-card {
    width: 100%;
    min-height: 62px;
    padding: 10px 12px;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(23, 43, 71, 0.08);
  }

  .shared-mobile-brand {
    max-width: calc(100% - 58px);
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-right: 50px;
    color: var(--shared-header-ink);
    text-align: center;
  }

  .shared-mobile-brand__logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(23, 43, 71, 0.08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(23, 43, 71, 0.1);
  }

  .shared-mobile-brand__logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
  }

  .shared-mobile-brand__copy {
    min-width: 0;
    display: grid;
    line-height: 1.08;
  }

  .shared-mobile-brand__copy strong {
    color: #101828;
    font-family: "Plus Jakarta Sans", "Nunito Sans", system-ui, sans-serif;
    font-size: 13.5px;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .shared-mobile-brand__copy span {
    display: none;
  }

  .shared-mobile-menu__actions,
  .shared-mobile-menu__links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shared-mobile-action,
  .shared-mobile-link {
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(23, 43, 71, 0.1);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--shared-header-ink);
    box-shadow: 0 7px 20px rgba(23, 43, 71, 0.08);
    font-family: "Plus Jakarta Sans", "Nunito Sans", system-ui, sans-serif;
    font-size: 11.5px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
  }

  .shared-mobile-action--primary {
    border-color: rgba(230, 57, 70, 0.12);
    background: linear-gradient(180deg, var(--shared-header-red), var(--shared-header-red-dark));
    color: #fff;
    box-shadow: 0 12px 26px rgba(230, 57, 70, 0.28);
  }

  .shared-mobile-link.active {
    border-color: rgba(230, 57, 70, 0.3);
    color: var(--shared-header-red-dark);
    box-shadow: 0 9px 22px rgba(230, 57, 70, 0.12);
  }

  .shared-mobile-toggle {
    width: 46px;
    height: 40px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 1px solid rgba(23, 43, 71, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--shared-header-ink);
    box-shadow: 0 7px 20px rgba(23, 43, 71, 0.08);
    cursor: pointer;
  }

  .shared-mobile-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    position: absolute;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.24s ease, opacity 0.18s ease;
  }

  .shared-mobile-toggle span:nth-child(1) {
    transform: translateY(-7px);
  }

  .shared-mobile-toggle span:nth-child(2) {
    transform: translateY(0);
  }

  .shared-mobile-toggle span:nth-child(3) {
    transform: translateY(7px);
  }

  .site-responsive-header.is-mobile-open .shared-mobile-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  .site-responsive-header.is-mobile-open .shared-mobile-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .site-responsive-header.is-mobile-open .shared-mobile-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .shared-mobile-menu {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 11px;
  }

  .shared-mobile-menu[hidden] {
    display: none !important;
  }

  .shared-mobile-divider {
    width: 100%;
    height: 1px;
    margin: 2px 0 4px;
    background: linear-gradient(90deg, rgba(23, 43, 71, 0), rgba(23, 43, 71, 0.1), rgba(23, 43, 71, 0));
  }

  .shared-mobile-menu__langs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .shared-mobile-menu__langs a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(23, 43, 71, 0.09);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 7px 18px rgba(23, 43, 71, 0.08);
  }

  .shared-mobile-menu__langs a.active {
    border-color: rgba(230, 57, 70, 0.38);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.12);
  }
}

@media (max-width: 380px) {
  .shared-mobile-header__inner {
    width: min(100% - 18px, 324px);
  }

  .shared-mobile-brand__copy strong {
    font-size: 12.5px;
  }

  .shared-mobile-action,
  .shared-mobile-link {
    font-size: 11px;
  }
}
