.ordex-site-header.zubuz-header-section {
  padding: 0;
  background: #fff;
}

.ordex-site-header .ordex-main-header {
  padding-top: 20px;
  padding-bottom: 20px;
  transition: padding 0.25s ease;
}

.ordex-top-header {
  max-height: 40px;
  overflow: hidden;
  background: #000000;
  color: #fff;
  transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.ordex-top-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  gap: 24px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.ordex-top-header__links,
.ordex-top-header__contacts {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ordex-top-header a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  white-space: nowrap;
}

.ordex-top-header a:hover {
  color: rgba(255, 255, 255, 0.78);
}

.ordex-top-header i {
  font-size: 14px;
}

.ordex-site-header.sticky-menu .ordex-top-header {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}

.ordex-site-header.sticky-menu .ordex-main-header {
  padding-top: 12px;
  padding-bottom: 12px;
}

.ordex-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ordex-header-actions--mobile {
  display: none;
}

.ordex-lang-switcher {
  position: relative;
}

.ordex-lang-switcher--navbar-mobile {
  display: none;
}

.ordex-lang-switcher__trigger,
.ordex-lang-switcher__option {
  border: 0;
  background: transparent;
  font-family: inherit;
}

.ordex-lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 70px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(35, 50, 221, 0.08);
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.ordex-lang-switcher__trigger:hover {
  background: rgba(35, 50, 221, 0.14);
}

.ordex-lang-switcher.open .ordex-lang-switcher__trigger {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.ordex-lang-switcher__flag {
  font-size: 18px;
  line-height: 1;
}

.ordex-lang-switcher__code {
  letter-spacing: 0.08em;
}

.ordex-lang-switcher__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 148px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.ordex-lang-switcher.open .ordex-lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ordex-lang-switcher__option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ordex-lang-switcher__option:hover,
.ordex-lang-switcher__option.active {
  background: #2332dd;
  color: #fff;
}

@media (max-width: 991px) {
  .ordex-top-header__inner {
    min-height: 30px;
    font-size: 12px;
  }

  .ordex-top-header__links {
    gap: 18px;
  }

  .ordex-top-header__contacts {
    gap: 16px;
  }

  .ordex-site-header .ordex-main-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .ordex-header-actions {
    order: 3;
    margin-left: auto;
    margin-right: 16px;
  }

  .ordex-header-actions--desktop {
    display: none;
  }

  .ordex-site-header .menu-block {
    display: flex;
    flex-direction: column;
  }

  .ordex-site-header .menu-block .site-menu-main {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  /* Prevent navbar from wrapping at mobile */
  .ordex-site-header .site-navbar {
    flex-wrap: nowrap;
  }

  /* Shrink logo margin to save space */
  .ordex-site-header .brand-logo {
    margin-right: 0 !important;
    flex-shrink: 0;
  }

  /* Allow menu-block-wrapper to shrink/grow as needed */
  .ordex-site-header .menu-block-wrapper {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
  }

  .ordex-lang-switcher--navbar-mobile {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 6px;
  }

  .ordex-lang-switcher--navbar-mobile .ordex-lang-switcher__trigger {
    min-width: 0;
    padding: 8px 12px;
    gap: 6px;
    font-size: 13px;
  }

  .ordex-lang-switcher--navbar-mobile .ordex-lang-switcher__menu {
    right: 0;
    left: auto;
  }

  /* Reduce hamburger margin so it doesn't overflow */
  .ordex-site-header .mobile-menu-trigger {
    margin-left: 4px !important;
    flex-shrink: 0;
  }

  .ordex-header-actions--mobile {
    display: flex;
    flex-shrink: 0;
    order: initial;
    margin: 18px 15px 20px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(35, 50, 221, 0.04);
  }

  .ordex-header-actions--mobile .ordex-lang-switcher {
    width: 100%;
  }

  .ordex-lang-switcher__trigger {
    min-width: 78px;
    padding: 10px 14px;
  }

  .ordex-header-actions--mobile .ordex-lang-switcher__trigger {
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid rgba(35, 50, 221, 0.1);
    background: #fff;
  }

  .ordex-header-actions--mobile .ordex-lang-switcher__menu {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    margin-top: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .ordex-header-actions--mobile .ordex-lang-switcher__option {
    justify-content: center;
    padding: 11px 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #fff;
  }
}

@media (max-width: 767px) {
  .ordex-top-header__inner {
    justify-content: center;
  }

  .ordex-top-header__links {
    display: none;
  }

  .ordex-top-header__contacts {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .ordex-top-header a {
    font-size: 12px;
  }

  .ordex-header-actions--desktop {
    margin-right: 12px;
  }

  .ordex-lang-switcher__trigger {
    min-width: 72px;
    padding: 9px 12px;
    gap: 8px;
  }

  .ordex-lang-switcher__menu {
    right: -14px;
  }
}

/* =============================================
   ORDEX – Mobile Responsive Fixes
   ============================================= */

/* --- General text overflow fix --- */
h1, h2, h3, h4, h5, h6, p, li {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- Subscribe form: stack vertically on small screens --- */
@media (max-width: 575px) {
  .zubuz-subscribe-three {
    max-width: 100%;
    padding: 0 4px;
  }
  .zubuz-subscribe-three form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    position: relative;
  }
  .zubuz-subscribe-three input {
    padding-right: 16px !important;
  }
  .zubuz-subscription-btn.three {
    position: static !important;
    width: 100%;
    margin-top: 0;
  }
  .zubuz-input-email {
    top: 14px;
  }
}

/* --- Icon list: wrap on small screens --- */
@media (max-width: 575px) {
  .zubuz-icon-list ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .zubuz-icon-list ul li {
    display: flex;
    align-items: flex-start;
    margin-right: 0;
    white-space: normal;
  }
}

/* --- Hero section --- */
@media (max-width: 479px) {
  .zubuz-hero-content.center {
    padding-bottom: 40px;
  }
  .zubuz-hero-content.center h1 {
    font-size: 33px;
    line-height: 1.35;
  }
  .zubuz-hero-content.center p {
    font-size: 15px;
  }
}

/* --- Pricing price: reduce huge h2 on mobile --- */
@media (max-width: 767px) {
  .zubuz-pricing-price h2 {
    font-size: 52px;
  }
}
@media (max-width: 479px) {
  .zubuz-pricing-price h2 {
    font-size: 40px;
  }
  .zubuz-pricing-wrap {
    padding: 28px 20px;
  }
  .zubuz-pricing-body ul li {
    font-size: 15px;
  }
}

/* --- Counter section: prevent overflow of long Uzbek text --- */
@media (max-width: 575px) {
  .zubuz-counter-wrap2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }
  .zubuz-counter-wrap2 .zubuz-counter-data {
    flex: 0 0 50%;
    text-align: center;
    padding: 0 12px;
    margin-bottom: 30px;
  }
  .zubuz-counter-data p {
    font-size: 13px;
    line-height: 1.4;
  }
}
@media (max-width: 380px) {
  .zubuz-counter-wrap2 .zubuz-counter-data {
    flex: 0 0 100%;
  }
}

/* --- Section title two-column: align button on mobile --- */
@media (max-width: 991px) {
  .zubuz-two-column-title .zubuz-title-btn {
    margin-top: 16px;
  }
}

/* --- Iconbox text: prevent overflow --- */
@media (max-width: 479px) {
  .zubuz-iconbox-data h3 {
    font-size: 17px;
  }
  .zubuz-iconbox-data p {
    font-size: 14px;
  }
}

/* --- Default content section (Jarayonlar / Afzalliklar) --- */
@media (max-width: 767px) {
  .zubuz-default-content h2 {
    font-size: 30px;
  }
}

/* --- Testimonial section --- */
@media (max-width: 479px) {
  .zubuz-testimonial-content p {
    font-size: 14px;
  }
}

/* --- Footer: spacing on mobile --- */
@media (max-width: 767px) {
  .zubuz-footer-top {
    padding: 60px 0 40px;
  }
  .zubuz-footer-textarea {
    margin-bottom: 30px;
  }
  .zubuz-footer-menu {
    margin-bottom: 24px;
  }
  .zubuz-footer-menu.extar-margin {
    margin-top: 0;
  }
}

/* --- Prevent horizontal scroll on entire page --- */
body {
  overflow-x: hidden;
}
