@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 105px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #d5d2cb;
  border-radius: 999px;
  background: #f7f6f2;
  color: #151515;
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(20,20,20,.06);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s, box-shadow .2s;
}

.language-switch:hover,
.language-switch:focus-visible {
  border-color: #ef111a;
  background: #fff;
  color: #ef111a;
  box-shadow: 0 7px 20px rgba(239,17,26,.12);
  transform: translateY(-1px);
  outline: none;
}

.language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  font-family: "Segoe UI Emoji","Apple Color Emoji",sans-serif;
  font-size: 16px;
  overflow: hidden;
}
.language-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }

.language-label { white-space: nowrap; }
.language-chevron { color: #8a8882; font-size: 11px; transform: translateY(-1px); }
.mobile-header-actions { display: none; align-items: center; gap: 9px; }

html[dir="rtl"] body {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  letter-spacing: -.025em;
  line-height: 1.28;
  font-weight: 780;
}

html[dir="rtl"] h1 { font-size: clamp(45px,5.3vw,78px); }
html[dir="rtl"] h2 { font-size: clamp(32px,3.6vw,52px); }
html[dir="rtl"] .lead { line-height: 2; font-size: 18px; }
html[dir="rtl"] .eyebrow { letter-spacing: .04em; line-height: 1.8; }
html[dir="rtl"] .cards p,
html[dir="rtl"] .prose p,
html[dir="rtl"] .model-line { line-height: 1.95; }
html[dir="rtl"] .button { letter-spacing: 0; }
html[dir="rtl"] .proof span { line-height: 1.7; }
html[dir="rtl"] .part-table { font-size: 12px; }
html[dir="rtl"] .part-table th { letter-spacing: 0; font-size: 11px; }
html[dir="rtl"] .status { letter-spacing: 0; }

@media (max-width: 1120px) and (min-width: 901px) {
  .site-header { padding-inline: 2.5vw; }
  .main-nav { gap: 11px; font-size: 11px; }
  .language-switch { min-width: 90px; padding-inline: 10px; }
  .main-nav .quote { padding-inline: 15px; }
}

@media (max-width: 900px) {
  .main-nav .language-switch {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    justify-content: flex-start;
    padding-inline: 16px;
  }
  .language-chevron { margin-inline-start: auto; }
  html[dir="rtl"] .language-switch { justify-content: flex-start; }
  .mobile-header-actions { display: flex; }
  .mobile-header-actions .menu-toggle { display: block; }
  .language-switch-mobile {
    display: inline-flex;
    width: auto;
    min-width: 73px;
    height: 44px;
    padding-inline: 10px;
    border-radius: 11px;
    gap: 7px;
  }
  .language-switch-mobile .language-flag { width: 22px; height: 22px; font-size: 15px; }
  html[dir="rtl"] .hero figure { order: initial; }
}

@media (max-width: 520px) {
  html[dir="rtl"] h1 { font-size: 43px; }
  html[dir="rtl"] .hero { padding-top: 44px; }
  .brand span { display: none; }
  .site-header .brand { gap: 0; }
}
