.header-inner {
  gap: clamp(12px, 2vw, 30px);
}

.main-nav {
  flex-wrap: wrap;
  gap: 6px clamp(12px, 2.5vw, 38px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.language-picker select {
  min-height: 44px;
  min-width: 108px;
  padding: 6px 8px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.language-picker select:disabled {
  cursor: default;
}

.header-cta {
  white-space: nowrap;
}

.section-label {
  text-transform: uppercase;
}

.quote-form label > .form-label {
  color: inherit;
  font-weight: inherit;
}

html:not(:lang(en)) h1 {
  font-size: clamp(2.8rem, 6.3vw, 6.15rem);
  overflow-wrap: anywhere;
}

html:lang(zh) h1,
html:lang(zh) h2,
html:lang(zh) h3,
html:lang(zh) .section-label {
  line-height: 1.24;
  letter-spacing: 0;
}

@media (max-width: 850px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    padding-block: 12px;
  }

  .header-actions {
    display: contents;
  }

  .main-nav {
    grid-area: 2 / 1;
    justify-content: flex-start;
  }

  .language-picker {
    grid-area: 1 / 2;
    justify-self: end;
  }

  .header-cta {
    grid-area: 2 / 2;
    gap: 8px;
    padding-inline: 11px;
  }
}

@media (max-width: 450px) {
  .header-cta {
    min-height: 40px;
    font-size: 13px;
  }

  .main-nav a {
    font-size: 13px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .section-label {
  line-height: 1.2;
  letter-spacing: normal;
}

html[dir="rtl"] .hero-photo { left: 0; right: 32%; }
html[dir="rtl"] .hero-photo::after {
  background: linear-gradient(270deg, #182c3b 0%, rgb(16 31 42 / .69) 21%, rgb(16 31 42 / .21) 55%, transparent 88%);
}
html[dir="rtl"] .product-media figcaption { left: auto; right: 10px; }
html[dir="rtl"] .text-link > [aria-hidden="true"] { margin-left: 0; margin-inline-start: .28em; }
html[dir="rtl"] .skip-link:focus { left: auto; right: 12px; }
html[dir="rtl"] .quote-form select { padding-inline: 10px 16px; }

@media (max-width: 850px) {
  html[dir="rtl"] .header-inner > .wordmark { justify-self: right; }
}

@media (max-width: 900px) {
  html[dir="rtl"] .hero-photo { right: 25%; }
  html[dir="rtl"] .hero-photo::after {
    background: linear-gradient(270deg, #182c3b 0%, rgb(16 31 42 / .66) 33%, rgb(16 31 42 / .18) 81%);
  }
}

@media (max-width: 680px) {
  html[dir="rtl"] .hero-photo { right: 0; }
  html[dir="rtl"] .hero-photo::after {
    background: linear-gradient(270deg, rgb(12 24 34 / .88), rgb(12 24 34 / .48)), linear-gradient(0deg, rgb(12 24 34 / .32), transparent 75%);
  }
}
