body {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Mobile layout — requires viewport meta in seo-head.php */
@media (max-width: 1023px) {
  .header-mobile {
    min-height: auto;
  }

  .header-form {
    width: 100%;
    max-width: min(100%, 22.5rem);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 2rem;
    background-size: 100% auto;
    background-position: top center;
    overflow: hidden;
  }

  .header-lines {
    border-left: 0;
    border-right: 0;
  }

  .header-lines::after,
  .header-lines::before {
    display: none;
  }

  .header-form .rf-form,
  .header-form #form.rf-form,
  .header-form .form-container,
  .header-form .mainForm.form-container-inner {
    width: 100%;
    max-width: 17rem !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .header-form .payment-methods {
    width: 100%;
    max-width: 17rem !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
  }

  .header-form .payment-methods img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .header-form .mainForm .input-container > input,
  .header-form .mainForm .input-container .iti {
    max-width: 100%;
  }

  .header-form .mt-1.text-2xl {
    max-width: 17rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-align: center;
  }

  .min-w-\[300px\] {
    min-width: 0 !important;
    width: 100%;
  }

  .phones-lines {
    padding-bottom: 0;
  }

  .logo {
    font-size: 1.125rem;
  }

  .logo img {
    width: 2rem;
    height: 2rem;
  }

  .nav .absolute.-top-1 {
    font-size: 0.8125rem;
    line-height: 1.3;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 639px) {
  .header-form {
    max-width: min(100%, 20.5rem);
  }

  .header-form .rf-form,
  .header-form #form.rf-form,
  .header-form .form-container,
  .header-form .mainForm.form-container-inner,
  .header-form .payment-methods {
    max-width: 16.25rem !important;
  }

  .header-form .mt-1.text-2xl {
    max-width: 16.25rem;
  }

  .header-mobile h1.text-3xl {
    font-size: 1.625rem;
    line-height: 1.2;
  }

  .header-mobile h1 .text-4xl {
    font-size: 1.875rem;
    line-height: 1.15;
  }

  .header-form.pt-12 {
    padding-top: 1.25rem;
    padding-left: 0;
    padding-right: 0;
  }

  .header-mobile .flex.items-center.justify-center.lg\:justify-start {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }

  .header-mobile .flex.items-center.justify-center.lg\:justify-start > .ml-4 {
    margin-left: 0;
  }

  .header-mobile .flex.items-center.justify-center.lg\:justify-start .text-left {
    text-align: center;
  }

  .crypto-price {
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  .pros-bg,
  .phones-bg {
    background-position: center;
    background-size: cover;
  }
}

/* Phones showcase — desktop + mobile */
.phones-showcase__col {
  width: 100%;
  max-width: 350px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.phones-showcase__phones {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.phones-showcase__phones img {
  width: min(72vw, 18rem);
  max-width: 100%;
  height: auto;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .phones-showcase {
    grid-template-columns: 1fr auto 1fr;
    column-gap: 1.5rem;
    row-gap: 0.625rem;
    align-items: center;
  }

  .phones-showcase__col--left {
    justify-self: start;
    margin-left: 0;
    margin-right: auto;
  }

  .phones-showcase__col--right {
    justify-self: end;
    margin-left: auto;
    margin-right: 0;
  }

  .phones-showcase__phones {
    padding: 0 0.5rem;
  }

  .phones-showcase__phones img {
    width: auto;
    max-width: min(22rem, 100%);
  }

  .phones-showcase .crypto-price {
    font-size: 1rem;
  }
}
