/* ==========================================================================
   UTEL – Responsive overrides (desktop-first, Bootstrap 5 breakpoints)
   ========================================================================== */

/* Large laptops */
@media (max-width: 1199.98px) {
  .main-nav a.nav-link-utel {
    padding: 10px 9px;
    font-size: .88rem;
  }

  .account-link span {
    display: none;
  }

  .hero-visual {
    min-height: 480px;
  }

  .float-chip.c3 {
    left: -10px;
  }
}

/* Tablet & below: hamburger nav */
@media (max-width: 991.98px) {

  .main-nav,
  .header-actions .account-link {
    display: none;
  }

  .btn-sm-utel {
    min-height: auto;
    padding: 10px 24px;
    font-size: .82rem;
    box-shadow: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .section-pad {
    padding: 76px 0;
  }

  .hero-photo .photo-img {
    object-position: 50% 30%;
  }

  .hero {
    padding: 64px 0 100px;
    text-align: center;
  }

  .hero p.lead {
    margin-inline: auto;
  }

  .hero .d-flex,
  .hero-badges {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 20px;
    min-height: 460px;
  }

  .intl-card {
    padding: 44px 32px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-toc {
    position: static;
  }

  .summary-card {
    position: static;
    margin-top: 8px;
  }

  .page-hero {
    padding: 64px 0 90px;
  }

  .final-cta {
    padding: 70px 0;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  :root {
    --header-h: 68px;
  }

  body {
    font-size: 1rem;
  }

  .p-card b {
    font: 800 1.2rem / 1.1 var(--font-head);
  }

  .info-card {
    padding: 20px;
  }

  .section-pad {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .announce {
    font-size: .8rem;
    display: none;
  }

  .announce .container {
    padding-right: 52px;
    padding-left: 14px;
    justify-content: flex-start;
    text-align: left;
  }

  .hero {
    padding: 48px 0 84px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero p.lead {
    font-size: 1.05rem;
  }

  .hero .btn-utel {
    width: 100%;
  }

  .hero-visual {
    min-height: 420px;
  }

  .phone {
    width: 210px;
    height: 420px;
    border-radius: 36px;
  }

  .phone-screen {
    padding-top: 48px;
    border-radius: 28px;
  }

  .float-chip {
    padding: 9px 13px;
    font-size: .78rem;
    border-radius: 14px;
  }

  .float-chip.c1 {
    left: 0;
    top: 24px;
  }

  .float-chip.c2 {
    right: 0;
    bottom: 44px;
  }

  .float-chip.c3 {
    display: none;
  }

  .badge-5g {
    font-size: 3rem;
  }

  .badge-5g.b2 {
    font-size: 2.2rem;
  }

  .plan-card {
    padding: 34px 24px 26px;
  }

  .plan-card.featured {
    transform: none;
  }

  .plan-data {
    font-size: 2.8rem;
  }

  .plan-price .amt {
    font-size: 3rem;
  }

  .sim-card-box {
    padding: 34px 26px;
  }

  .intl-card {
    padding: 38px 22px;
    border-radius: 28px;
  }

  .promo-banner {
    padding: 48px 24px;
    border-radius: 28px;
  }

  .promo-banner .btn-utel {
    width: 100%;
  }

  .final-cta .btn-utel {
    width: 100%;
    margin-bottom: 10px;
  }

  .form-card {
    padding: 30px 20px;
    border-radius: 22px;
  }

  .country-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .country-card {
    padding: 11px 12px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .country-card img {
    width: 32px;
    height: 24px;
  }

  .country-card .nm {
    font-size: .86rem;
    flex: 1 1 0;
    min-width: 0;
  }

  .type-badge {
    margin-left: 0;
  }

  .faq-q {
    padding: 18px 18px;
    font-size: 1rem;
  }

  .faq-a p {
    padding: 0 18px 20px;
  }

  .steps-vertical .step-card {
    gap: 16px;
  }

  .contact-item {
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: left;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
  }

  .plan-toast {
    bottom: 16px;
  }

  .legal-toc {
    padding: 18px;
  }
}

/* Very small phones */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 2.3rem;
  }

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

  .phone {
    width: 190px;
    height: 380px;
  }

  .hero-visual {
    min-height: 390px;
  }
}

/* Never allow horizontal overflow */
html,
body {
  max-width: 100%;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Clip off-screen decorative / pre-reveal offsets so they never create horizontal scroll */
main,
.site-footer {
  overflow-x: clip;
}