/* ==========================================================================
   tahm.ee — HOME mobile-only layout (page-id 106250)
   Goals:
   - remove side paddings: 30px -> 2px
   - keep layout stable
   - hide old footer + make reCAPTCHA invisible
   - scope strictly to mobile + page-id-106250
   ========================================================================== */

html, body { overflow-x: hidden !important; }

@media (max-width: 768px){

  /* =========================================================
     0) HARD paddings: 30px -> 2px (GeneratePress containers)
     ========================================================= */

  /* the main culprit */
  body.page-id-106250 .inside-article{
    padding: 10px !important;
  }

  /* extra GP wrappers that sometimes carry padding */
  body.page-id-106250 .content-area,
  body.page-id-106250 .site-content,
  body.page-id-106250 #primary,
  body.page-id-106250 #main,
  body.page-id-106250 article,
  body.page-id-106250 .entry-content,
  body.page-id-106250 .wp-block-group__inner-container,
  body.page-id-106250 .inside-page-header{
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* your mobile wrapper */
  body.page-id-106250 .tahm-home-mobile{
    padding: 10px !important;
    max-width: 720px;
    margin: 0 auto;
  }

  body.page-id-106250 .entry-header{ display:none !important; }
  body.page-id-106250 .entry-content{ margin:0 !important; }

  /* =========================================================
     1) Remove old footer (theme/footer-bar/back-to-top)
     ========================================================= */
  body.page-id-106250 .site-footer,
  body.page-id-106250 #colophon,
  body.page-id-106250 .footer-widgets,
  body.page-id-106250 .inside-footer-widgets,
  body.page-id-106250 .site-info,
  body.page-id-106250 .inside-site-info,
  body.page-id-106250 .footer-bar,
  body.page-id-106250 .inside-footer-bar,
  body.page-id-106250 .footer-nav,
  body.page-id-106250 .footer-navigation,
  body.page-id-106250 #footer,
  body.page-id-106250 .page-footer,
  body.page-id-106250 .site-footer-wrap,
  body.page-id-106250 .gp-footer,
  body.page-id-106250 .generate-back-to-top{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  /* If any footer-ish blocks are injected into the PAGE content, nuke them */
  body.page-id-106250 .entry-content > *:not(.tahm-home-mobile){
    display:none !important;
  }
  body.page-id-106250 .entry-content .tahm-home-mobile ~ *{
    display:none !important;
  }

  /* =========================================================
     2) reCAPTCHA invisible
     ========================================================= */
  body.page-id-106250 .grecaptcha-badge,
  body.page-id-106250 iframe[src*="recaptcha"],
  body.page-id-106250 iframe[title*="recaptcha"],
  body.page-id-106250 .g-recaptcha{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }

  /* =========================================================
     3) Mobile home styles (your current UI)
     ========================================================= */

  .tahm-mtopsp{ height: 6px; }
  .tahm-msec{ margin: 8px 0 14px; }

  .tahm-msec__head{
    display:flex;
    align-items:center;
    gap: 10px;
    margin: 6px 0 10px;
  }
  .tahm-msec__title{
    margin:0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #494949;
  }
  .tahm-msec__line{
    flex:1;
    height: 1px;
    background: #E9E9E9;
  }

  /* KAUP list */
  .tahm-mlist{
    display:flex;
    flex-direction:column;
    gap: 10px;
  }

  .tahm-mlist__row{
    display:flex;
    align-items:center;
    gap: 12px;
    padding: 12px;
    background:#F3F3F3;
    border: 1px solid #EEECEC;
    border-radius: 12px;
    text-decoration:none;
  }

  .tahm-mlist__ico svg{
    width: 22px;
    height: 22px;
    fill: #0161AE;
    display:block;
  }

  .tahm-mlist__txt{
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color:#000;
    line-height: 1.2;
  }

  .tahm-mlist__arr svg{
    width: 22px;
    height: 22px;
    color:#494949;
    display:block;
  }

  /* TEENUSED grid */
  .tahm-mgrid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .tahm-mcard{
    display:block;
    text-decoration:none;
  }

  .tahm-mcard__img{
    width:100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #E9E9E9;
    background:#FFFFFF;
    display:block;
  }

  .tahm-mcard__t{
    margin-top: 8px;
    text-align:center;
    font-size: 14px;
    font-weight: 800;
    color:#000;
    line-height: 1.25;
  }

  /* new mobile footer inside block */
  .tahm-mfoot{ margin: 14px 0 10px; }

  .tahm-mfoot__card{
    background:#F3F3F3;
    border: 1px solid #EEECEC;
    border-radius: 14px;
    padding: 14px;
  }

  .tahm-mfoot__h{
    font-size: 18px;
    font-weight: 900;
    color:#000;
    margin: 0 0 8px;
  }

  .tahm-mfoot__link{
    display:block;
    margin: 6px 0;
    color:#0161AE;
    font-weight: 800;
    text-decoration:none;
  }

  .tahm-mfoot__muted{
    font-size: 14px;
    color:#494949;
    margin-top: 6px;
  }

  .tahm-mfoot__hr{
    border: 0;
    border-top: 1px solid #E9E9E9;
    margin: 12px 0;
  }

  .tahm-mfoot__row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 10px 0;
    font-weight: 800;
    color:#0161AE;
    text-decoration:none;
    border-bottom: 1px solid #E9E9E9;
  }

  .tahm-mfoot__row:last-of-type{ border-bottom: 0; }

  .tahm-mfoot__trust{
    display:flex;
    gap: 10px;
    align-items:flex-start;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #E9E9E9;
    font-weight: 800;
    color:#494949;
  }

  .tahm-mfoot__check{
    width:22px;
    height:22px;
    border-radius:999px;
    background:#E2F4FF;
    color:#0161AE;
    font-weight: 900;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top: 2px;
    flex: 0 0 auto;
  }

  .tahm-mfoot__copy{
    margin-top: 12px;
    text-align:center;
    font-size: 13px;
    color:#494949;
  }
}
/* Move reCAPTCHA badge so it doesn't overlap important UI */
.grecaptcha-badge {
  bottom: 6px !important;
  right: 6px !important;
  transform: scale(0.85);
  transform-origin: 100% 100%;
}
/* NOT recommended (can violate Google ToS) */
.grecaptcha-badge { visibility: hidden !important; }

/* =========================================
   HOME (106250) – Finder box responsive (clean)
   ========================================= */

/* важно для grid/flex, чтобы не было “распирания” */
.page-id-106250 .tahm-finder-box,
.page-id-106250 .tahm-finder-box *{
  box-sizing: border-box;
  min-width: 0;
}

/* карточка */
.page-id-106250 .tahm-finder-box{
  padding: clamp(16px, 1.6vw, 22px);
}

/* заголовок */
.page-id-106250 .tahm-finder-box h1{
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.12;
  margin: 0 0 clamp(8px, 1vw, 12px) 0;
}

/* текст */
.page-id-106250 .tahm-finder-box p{
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.45;
  margin: 0 0 clamp(10px, 1.2vw, 14px) 0;
}

/* psf */
.page-id-106250 .tahm-finder-box .tahm-psf{
  width: 100%;
  margin-top: clamp(8px, 1vw, 12px);
  padding: 0;
}

.page-id-106250 .tahm-finder-box .tahm-psf > form{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(8px, 1vw, 10px);
  width: 100%;
  margin: 0;
}

.page-id-106250 .tahm-finder-box .tahm-psf select{
  width: 100%;
  max-width: 100%;
  height: clamp(40px, 3.2vw, 44px);

  padding: 10px 14px;
  font-size: clamp(13px, 1.05vw, 14px);
  line-height: 1.2;

  border-radius: 16px;
  border: 1px solid #D6D6D6;
  background: #fff;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* loader */
.page-id-106250 .tahm-finder-box .tahm-psf__loader{
  min-height: 0;
}
