/* Homepage featured-project CTA: keep the desktop hover action on the image,
   but give touch users a clear action inside the card content. */
.home-featured-projects .featured-work-card-cta {
  display: none;
}

/* Homepage statistics carousel: mobile and small-tablet safeguards. */
@media (max-width: 767px) {
  .home-featured-projects .featured-works-item .image .view-project {
    display: none !important;
  }

  .home-featured-projects .featured-work-card-cta {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    min-height: 52px;
    margin-top: 24px;
    /* Surface, typography and hover light come from the original .tf-btn. */
    text-decoration: none;
  }

  .home-featured-projects .featured-work-card-cta svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }

  .home-featured-projects .featured-work-card-cta:focus-visible {
    outline: 3px solid #18181b;
    outline-offset: 3px;
  }

  .section-statistic {
    overflow: hidden;
    padding: 42px 0 48px;
  }

  .section-statistic .row > * {
    min-width: 0;
  }

  .section-statistic .heading-section {
    margin-left: 0;
    margin-bottom: 36px !important;
  }

  .section-statistic .statistic-slider,
  .section-statistic .swiper-progressbar,
  .section-statistic .swiper-slide {
    min-width: 0;
    max-width: 100%;
  }

  .section-statistic .statistic-slider > .text {
    max-width: 100%;
    margin-bottom: 32px;
    font-size: clamp(17px, 4.6vw, 20px);
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .section-statistic .swiper .group-slider {
    gap: 16px;
    margin-bottom: 26px;
  }

  .section-statistic .progress-bar {
    min-width: 0;
    flex: 1 1 auto;
  }

  .section-statistic .group-btn-slider {
    flex: 0 0 auto;
  }

  .section-statistic .group-btn-slider .btn-slider {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .section-statistic .group-btn-slider .btn-slider:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 999px;
  }

  .section-statistic .swiper .title {
    max-width: 100%;
    min-height: 0;
    margin-bottom: 16px;
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .section-statistic .swiper .statistic-number {
    max-width: 100%;
    align-items: baseline;
    font-size: clamp(88px, 24vw, 110px);
    line-height: .9;
    letter-spacing: -.05em;
  }

  .section-statistic .swiper .statistic-number .prefix {
    font-size: .78em;
    line-height: 1;
  }

  #goTop {
    left: auto !important;
    right: max(8px, env(safe-area-inset-right)) !important;
  }

}

@media (max-width: 767px) and (orientation: landscape) {
  .section-statistic {
    padding: 36px 0 44px;
  }

  .section-statistic .heading-section {
    margin-bottom: 28px !important;
  }

  .section-statistic .statistic-slider > .text {
    margin-bottom: 24px;
    font-size: 17px;
  }

  .section-statistic .swiper .statistic-number {
    font-size: clamp(84px, 16vw, 104px);
  }

  /* Keep the required quick-contact actions without covering landscape content. */
  .timurial-mobile-contact {
    left: auto !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    grid-template-columns: repeat(3, 44px) !important;
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 16px !important;
    transform: none !important;
  }

  .timurial-mobile-contact__item {
    width: 44px;
    min-height: 44px !important;
    gap: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  .timurial-mobile-contact__item span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #goTop {
    display: none !important;
  }
}

@media (max-width: 991px) {
  /* Language remains available in the mobile menu without covering page copy. */
  .timurial-lang-toggle {
    display: none !important;
  }

  .offcanvas-menu .timurial-mobile-language {
    min-width: 34px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #fff !important;
    background: rgba(255, 255, 255, .08);
    font-size: 11px;
    line-height: 1;
    font-weight: 750;
    text-decoration: none;
  }

  .offcanvas-menu .timurial-mobile-language:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }
}

