/* Force readable px text on phones/tablets. Desktop untouched.
   Min text size: 15px. Loads after mobile.css. */
@media screen and (max-width: 990px) {
  :root {
    --ta-title-size: 28px !important;
  }

  html {
    font-size: 16px !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa {
    font-size: 16px !important;
    line-height: 1.55 !important;
    --ta-title-size: 28px !important;
  }

  /* Nuclear: every text node ≥ 15px (beats leftover vw / clamp) */
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa *:not(svg):not(svg *):not(script):not(style):not(link):not(br):not(hr):not(img):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon):not(use):not(defs):not(clipPath):not(mask):not(g) {
    font-size: 15px !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa p,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa li,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa a,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa span,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa button,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa label,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa td,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa th,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa input,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa textarea,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa select,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa strong,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa em,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa b,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa small,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-btn,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa a.ry-btn,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa button.ry-btn,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-banner__cta,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa a.ry-banner__cta,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-banner__tagline,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa #ry-top .ry-banner__overlay-inner .ry-banner__tagline,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-nav__link,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-nav__menu--open .ry-nav__link,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-nav__contact,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-float a.ry-phone,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-lead,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-story__lead,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-story__text,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-story__item,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-pillar__text,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-pillar__more,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-kicker,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-legal,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-ucard__status,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-ucard__chip,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-ucard__spec strong,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-ucard__spec span,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-avail__label,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-inv-nav__links a,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .wpcf7-form-control {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa h1,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-banner__title,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa #ry-top .ry-banner__overlay-inner .ry-banner__title {
    font-size: 34px !important;
    line-height: 1.1 !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa h2,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-story__title,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-domy__title,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-gallery h2,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-lokalizacja__copy h2,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-standard h2,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-privacy h2,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-contact__meet h2,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-page-form__title {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa h3,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-pillar h3,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-ucard__id {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-avail__num,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-banner--hero .ldm-avail--side .ldm-avail__num {
    font-size: 24px !important;
    line-height: 1.1 !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-nav__link,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-nav__menu--open .ry-nav__link {
    font-size: 20px !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-btn,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa a.ry-btn,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-banner__cta,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-float a {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  /* Icon-only phone in header */
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-nav__contact.ry-phone span {
    font-size: 0 !important;
  }

  /* Float bar: email = icon only (not text) */
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-float a.ry-email {
    font-size: 0 !important;
    gap: 0 !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-float a.ry-email svg,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-float__icon--email {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
  }

  /* Header logo same size as other pages */
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-nav__brand .ldm-logo,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ry-nav__brand img {
    max-width: 120px !important;
    max-height: 62px !important;
    width: auto !important;
    height: auto !important;
    padding: 6px !important;
    background: #fff !important;
    border-radius: 0 0 8px 8px !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-ucard__btn--ghost,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-ucard__btn--ghost span {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-ucard__actions {
    grid-template-columns: 1fr 1fr !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-plan__hint,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-legend__item,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-ucard__btn,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa a.ldm-ta-ucard__btn,
  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-ucard__btn span {
    font-size: 12px !important;
  }

  html body.ry-home.ry-inner.ry-invest.ry-theme.ry-tarasowa .ldm-ta-legend {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }
}
