/* Mobile readability and messenger update — September 2026 */

/* Keep the customer phone genuinely central on standard mobile screens without competing with the logo or menu. */
@media (min-width: 360px) and (max-width: 767px) {
  .mobile-header-tools {
    position: relative;
  }

  .mobile-header-tools a.alt-phone-mob {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: clamp(16px, 4.55vw, 18px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1px;
    white-space: nowrap;
  }

  .mobile-header-tools .navi-call {
    margin-left: auto;
  }
}

/* Preserve a clean header at 320–359px wide while still improving legibility. */
@media (max-width: 359px) {
  .mobile-logo img {
    max-width: 72px;
  }

  .mobile-header-tools a.alt-phone-mob {
    margin-left: 6px;
    font-family: Oswald, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

/* One consistent action row on desktop; the DOM order is MAX, WhatsApp, Telegram. */
.index-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.index-banner-buttons a {
  margin-right: 0;
}

/* Official MAX icon with the service's blue–violet color direction. */
.contact-btn-max {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 17px !important;
  background: linear-gradient(112deg, #129ce8 0%, #4d4bea 53%, #9b38df 100%) !important;
  box-shadow: 0 4px 12px rgba(95, 60, 216, 0.34);
}

.contact-btn-max::after {
  display: none !important;
  content: none !important;
}

.contact-btn-max .contact-btn-icon {
  display: block;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.contact-btn-max .t {
  line-height: 1;
  white-space: nowrap;
}

/* Larger text and a calmer reading rhythm in content blocks, without changing navigation or form controls. */
@media (max-width: 767px) {
  .section > p,
  .section > ul > li,
  .section > ol > li,
  .wwb > p,
  .wwb > ul > li,
  .i-box-bigger p,
  .page-content p,
  .article-content p {
    font-size: 17px;
    line-height: 1.62;
  }

  .section > p,
  .wwb > p,
  .i-box-bigger p,
  .page-content p,
  .article-content p {
    margin-bottom: 18px;
  }

  /* Replace the horizontal swipe strip with three full-width, easy-to-tap actions. */
  .index-banner {
    padding-bottom: 30px;
  }

  .index-banner-header {
    margin-bottom: 56px;
  }

  .index-banner-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 9px;
    overflow: visible;
    white-space: normal;
    margin: 0;
    padding: 0;
  }

  .index-banner-buttons a {
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    margin: 0;
    padding-right: 24px;
    border-radius: 25px;
    font-size: 16px;
    line-height: 50px;
    touch-action: manipulation;
  }

  .index-banner-buttons .contact-btn-ft::after,
  .index-banner-buttons .contact-btn-tg::after {
    right: 22px;
  }

  .index-banner-buttons .contact-btn-max {
    display: inline-flex !important;
    justify-content: center;
    padding: 0 20px !important;
    line-height: 1;
  }
}

/* Inner pages use a different header template. Keep the number readable on its white canvas
   and reserve breathing room above image-backed offer headings. */
@media (min-width: 360px) and (max-width: 767px) {
  html:not(.hhat) .mobile-header-tools a.alt-phone-mob {
    color: #171717;
    text-shadow: none;
  }

  html.hhat .mobile-header-tools a.alt-phone-mob {
    top: 35px;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  }

  html.hhat .hhat-header {
    box-sizing: border-box;
    padding-top: 56px;
  }
}

/* Give MAX, WhatsApp and Telegram the same centered icon-and-label composition. */
.contact-btn-max,
.contact-btn-ft,
.contact-btn-tg {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px !important;
}

.contact-btn-ft::after,
.contact-btn-tg::after {
  display: none !important;
  content: none !important;
}

.contact-btn-ft .contact-btn-icon,
.contact-btn-tg .contact-btn-icon {
  display: block;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.contact-btn-ft .t,
.contact-btn-tg .t {
  line-height: 1;
  white-space: nowrap;
}

/* Conversion-focused first screen: retain every action in view and make the hero feel intentional. */
@media (min-width: 360px) and (max-width: 767px) {
  /* The home page has a dark hero like offer pages, although it is not marked .hhat. */
  html:not(.hhat) body.index-page .mobile-header-tools a.alt-phone-mob {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  }

  body.index-page .index-banner {
    box-sizing: border-box;
    min-height: 100svh;
    padding-top: 100px;
    padding-bottom: 32px;
  }

  body.index-page .index-banner-content {
    min-height: calc(100svh - 132px);
  }

  /* Offer pages already use the inner hero template; extend only the image-backed panel. */
  html.hhat .hhat-header {
    min-height: 100svh;
    padding-bottom: 50px;
  }
}
