/* MIXTURA mobile — overlays main.css without touching SEO HTML.
   Goals: no horizontal scroll, readable type, touch targets, natural layout. */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
#root,
.app {
  overflow-x: hidden;
  max-width: 100%;
}

img,
svg,
video,
picture {
  max-width: 100%;
  height: auto;
}

/* —— Shared tablet/phone shell ——
   1024px matches HowItWork/Benefits/BlockSection in main.css
   (Hero tablet rules there use 1023 — 1px overlap is fine). */
@media (max-width: 1024px) {
  .BlockSection_contentContainer__AkKZD {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /*
    How-it-works diagram:
    main.css @≤1024 sets wrapper to 476px + 100px side margins;
    @≤768 makes BOTH image + title absolute while mobile.css used to
    force height:auto — wrapper collapses and the circle overlays text.
  */
  .HowItWork_container__6y-E- {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .HowItWork_portrait__EPQmv {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0;
    margin-bottom: 28px !important;
    width: 100%;
  }

  .HowItWork_mainImageWrapper__Ydzmh {
    position: relative !important;
    display: block !important;
    width: min(275px, 72vw) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    margin: 0 auto 24px !important;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .HowItWork_mainImage__OM7LE {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .HowItWork_title__keW39 {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 78% !important;
    max-width: 220px;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(12px, 3.6vw, 16px) !important;
    line-height: 1.3 !important;
    z-index: 1;
    pointer-events: none;
  }

  .HowItWork_title__keW39 p {
    margin: 0;
  }

  .HowItWork_bitcoinImage__jEIW6,
  .HowItWork_smileImage__FLl-1,
  .HowItWork_countryWrapper__lD6UB {
    display: none !important;
  }

  .HowItWork_text__zzWnG,
  .HowItWork_line__oNwU- {
    text-align: left !important;
    padding: 0 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Benefits: one column, readable — not two squeezed cards */
  .Benefits_listItem__\+PWh1 {
    position: relative;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-bottom: 36px !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  .Benefits_question__F6eYE {
    white-space: normal !important;
    text-align: left !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
  }

  .Benefits_answer__\+WBJO {
    text-align: left !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .Benefits_number__63ecy {
    font-size: 72px !important;
    line-height: 1 !important;
    top: -8px !important;
    left: 0 !important;
    opacity: 0.12;
  }

  /* FAQ: left-aligned reads less “template” than center stacks */
  .FAQS_question__orscs,
  .FAQS_answer__qIPnT {
    text-align: left !important;
  }

  .FAQS_question__orscs {
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  .Contacts_container__RsLvq {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 24px 16px;
    max-width: 100% !important;
    padding: 0 8px;
  }

  .Contacts_iconWrapper__nP3zL {
    margin-left: auto;
    margin-right: auto;
  }

  /* Nav dropdown — usable tap rows */
  .Nav_navMenu__eyEdM {
    right: 0 !important;
    top: 36px !important;
    min-width: 200px;
    padding: 8px 0 !important;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 50 !important;
  }

  .Nav_navItem__y\+LIT {
    height: auto !important;
    line-height: 1.3 !important;
    font-size: 15px !important;
  }

  .Nav_navLink__uKhR2 {
    display: block !important;
    height: auto !important;
    line-height: 1.3 !important;
    min-height: 44px;
    padding: 12px 16px !important;
    border-radius: 0 !important;
    box-sizing: border-box;
  }

  .Nav_btn__oysBX {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }

  /* Hero brand + form */
  .Hero_section__rujVC {
    min-height: 100svh;
    min-height: 100dvh;
    margin-bottom: 0 !important;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    overflow: hidden;
  }

  .Hero_logoTitle1__8SN96 {
    white-space: nowrap !important;
    font-size: clamp(22px, 7vw, 28px) !important;
    letter-spacing: 0.18em !important;
    padding-left: 0 !important;
    margin-bottom: 8px !important;
  }

  .Hero_logoTitle2__Sa9dR {
    white-space: normal !important;
    letter-spacing: 0.08em !important;
    font-size: clamp(13px, 3.4vw, 16px) !important;
    line-height: 1.35 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: min(92vw, 420px) !important;
    margin-left: auto;
    margin-right: auto;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .Hero_section__rujVC.Hero_loaded__KdVBF .Hero_logoTitle2__Sa9dR {
    font-size: clamp(13px, 3.5vw, 16px) !important;
    letter-spacing: 0.08em !important;
    max-width: min(92vw, 420px) !important;
  }

  .Hero_circleIcon__JhnzZ {
    width: min(92vw, 420px) !important;
    max-width: 100vw !important;
    padding: 0 !important;
  }

  .Hero_circleIcon__JhnzZ.Hero_played__2oBF2 {
    transform: translate(-50%, -12%) rotate(-1turn) scale(0.42) !important;
  }

  .Hero_logoBlock__B4UY-.Hero_played__2oBF2 {
    transform: translate(-50%, -155%) scale(0.82) !important;
    max-width: 96vw;
    width: max-content;
  }

  .Hero_formWrapper__za0HP {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box;
    width: 100%;
  }

  .Hero_form__CwTLA {
    width: 100% !important;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .Hero_formTitle__BXcag {
    font-size: 15px !important;
    line-height: 1.4 !important;
    text-align: center;
    padding: 0 8px;
  }

  .Hero_error__1v2oI {
    font-size: 14px !important;
    line-height: 1.4;
    text-align: center;
    max-width: 100%;
  }

  .Input_input__Vnl8Q {
    font-size: 16px !important; /* iOS zoom lock */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .Hero_btn__se8Ib {
    min-height: 48px;
    width: 100%;
    max-width: 100%;
    transform: none !important;
    font-size: 15px !important;
    touch-action: manipulation;
  }

  .Hero_btn__se8Ib.Hero_circleLoader__1BTVo,
  .Hero_circleLoader__1BTVo {
    transform: none !important;
  }

  .SectionTitle_title__dTSRB {
    white-space: normal !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 8px;
    text-align: left !important;
    font-size: clamp(18px, 4.5vw, 22px) !important;
    letter-spacing: 0.12em !important;
    line-height: 1.25 !important;
    max-width: 100%;
  }

  .SectionTitle_title__dTSRB.SectionTitle_BLACK__roU1R:after,
  .SectionTitle_title__dTSRB.SectionTitle_GRAY__Aa4EU:after,
  .SectionTitle_title__dTSRB.SectionTitle_WHITE__IiNXt:after {
    display: none !important;
    content: none !important;
  }

  /* Footer decorative circle — main.css parks it at left:307px on tablets */
  .Footer_image__YwT1u {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    display: block;
    width: min(110px, 28vw) !important;
    height: auto !important;
    margin: 16px auto 0 !important;
  }

  .Footer_container__jAGWN {
    overflow: hidden;
  }

  /* Decorative absolute art that can bleed off-screen */
  .Contacts_circle__XGbwo,
  .FAQS_images__d0zdR {
    display: none !important;
  }

  /* Legal / SEO article pages */
  .legal-page,
  .legal-content,
  .site-chrome-header {
    max-width: 100%;
    box-sizing: border-box;
  }

  .site-chrome-header {
    padding-left: 16px !important;
    padding-right: 16px !important;
    min-width: 0 !important;
    flex-wrap: wrap;
  }

  .legal-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .legal-content img,
  .legal-content table,
  .seo-entity-glance img,
  article img {
    max-width: 100% !important;
    height: auto !important;
  }

  .legal-content pre,
  .legal-content code {
    overflow-x: auto;
    max-width: 100%;
    word-break: break-word;
  }
}

@media (max-width: 768px) {
  /* Reinforce How-it-works against main.css absolute image rule */
  .HowItWork_mainImageWrapper__Ydzmh {
    width: min(260px, 78vw) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
  }

  .HowItWork_mainImage__OM7LE {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
  }

  .HowItWork_title__keW39 {
    font-size: clamp(11px, 3.8vw, 15px) !important;
    line-height: 1.28 !important;
  }

  .HowItWork_text__zzWnG {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .Hero_header__Gjqal {
    padding: 8px 12px !important;
    gap: 8px;
    justify-content: space-between !important;
    flex-wrap: nowrap;
    min-width: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }

  .LangSwitcher_wrapper__ep0C5 {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 56px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .LangSwitcher_wrapper__ep0C5::-webkit-scrollbar {
    display: none;
  }

  .LangSwitcher_switcher__drQ3w {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .Hero_logoBlock__B4UY-.Hero_played__2oBF2 {
    transform: translate(-50%, -168%) scale(0.78) !important;
  }

  .Hero_circleIcon__JhnzZ.Hero_played__2oBF2 {
    transform: translate(-50%, -8%) rotate(-1turn) scale(0.36) !important;
  }

  .BlockSection_contentContainer__AkKZD {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .Benefits_number__63ecy {
    font-size: 56px !important;
  }

  /* Home footer PGP band */
  .Footer_container__jAGWN,
  .Footer_info__byCJz {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .Footer_value__pz0gl,
  .Footer_anchor__oqDJy {
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  /* Duplicate crawl panel — keep in DOM for bots, hide visual clutter on phones */
  .site-seo-crawl {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .seo-entity-glance {
    padding: 28px 16px 20px !important;
  }

  .seo-entity-glance h2 {
    font-size: 1.125rem;
    letter-spacing: 0.02em;
  }

  .seo-entity-glance p,
  .seo-entity-glance li {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .seo-entity-glance ul {
    padding-left: 1.1rem;
  }
}

@media (max-width: 425px) {
  .Hero_logoTitle1__8SN96,
  .Hero_section__rujVC.Hero_loaded__KdVBF .Hero_logoTitle1__8SN96 {
    font-size: 20px !important;
    letter-spacing: 0.14em !important;
  }

  .Hero_logoTitle2__Sa9dR,
  .Hero_section__rujVC.Hero_loaded__KdVBF .Hero_logoTitle2__Sa9dR {
    font-size: 12.5px !important;
    letter-spacing: 0.05em !important;
    line-height: 1.4 !important;
  }

  .Hero_logoBlock__B4UY-.Hero_played__2oBF2 {
    transform: translate(-50%, -185%) scale(0.72) !important;
  }

  .Hero_formTitle__BXcag {
    font-size: 14px !important;
  }

  .SectionTitle_title__dTSRB {
    font-size: 17px !important;
    letter-spacing: 0.1em !important;
  }
}

/* Landscape phones: don’t trap hero in tall empty viewport */
@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape) {
  .Hero_section__rujVC {
    min-height: auto;
    padding-bottom: 24px;
  }

  .Hero_iconWrapper__Ef\+Gg {
    min-height: 280px !important;
    position: relative !important;
  }

  .Hero_logoBlock__B4UY-.Hero_played__2oBF2 {
    transform: translate(-50%, -50%) scale(0.7) !important;
  }
}

/* —— Payment / Result —— */
@media (max-width: 1024px) {
  .ResultPage_container__BJmOx {
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .Result_container__zjPtk {
    max-width: 100% !important;
    width: 100%;
    margin: 24px auto 32px !important;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .Result_address__iVeWR {
    font-size: 15px !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }

  .Result_addressWrapper__Y2BvT {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .Result_copyButton__pZPCR {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px !important;
    font-size: 15px !important;
    cursor: pointer;
    touch-action: manipulation;
  }

  .Result_qr__6ZU3\+,
  .Result_qrWrapper__3tHvL img,
  #pay-qr {
    width: min(280px, 72vw) !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .Result_textWrapper__TNLQ0 .Result_text__g0Cfi {
    font-size: 16px !important;
  }

  .Result_btnWrapper__Rtxnc {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .Result_dowloadLink__NXS2r,
  .Result_btn__v0UsI {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    touch-action: manipulation;
  }

  .Result_titleWrapper__CvDCJ .Result_logo__tSl4M {
    width: min(120px, 36vw);
  }
}

/* —— Footer link row: plain text, not pill grid —— */
@media (max-width: 768px) {
  .site-footer-nav {
    justify-content: flex-start;
    gap: 2px 0;
    padding: 18px 12px calc(24px + env(safe-area-inset-bottom, 0px));
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
  }

  .site-footer-nav a {
    padding: 8px 10px;
    min-height: 36px;
    border-radius: 0;
    background: transparent !important;
  }

  .site-footer-nav a[aria-current="page"] {
    background: transparent !important;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .site-footer-nav .site-footer-nav__lang {
    margin-top: 6px;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .Hero_section__rujVC {
    animation: none !important;
  }

  .Hero_circleIcon__JhnzZ,
  .Hero_logoBlock__B4UY- {
    transition: none !important;
  }
}
