/*
Mobile stabilization layer.
New mobile-only fixes live here so the older header-fixed.css cleanup stack
does not keep growing with broad overrides.
*/

.kwm-shared-subpage-hero {
  display: none;
}

@media (max-width: 900px) {
  body.kw-city-template-page .site-header,
  body.kw-blog-page .site-header,
  body.kw-news-single .site-header,
  body.kw-regulamin-page .site-header {
    display: none !important;
  }

  body.kw-city-template-page .kwm-shared-subpage-hero,
  body.kw-blog-page .kwm-shared-subpage-hero,
  body.kw-news-single .kwm-shared-subpage-hero,
  body.kw-regulamin-page .kwm-shared-subpage-hero {
    --kwm-page-x: clamp(18px, 6.5vw, 28px);
    display: block !important;
    width: min(calc(100% - 24px), 406px) !important;
    margin: 10px auto 30px !important;
    box-sizing: border-box !important;
  }

  body.kw-city-template-page .kw-city-page > .kwm-shared-subpage-hero,
  body.kw-blog-page main > .kwm-shared-subpage-hero,
  body.kw-news-single main > .kwm-shared-subpage-hero,
  body.kw-regulamin-page .kw-legal-page > .kwm-shared-subpage-hero {
    margin-top: max(10px, env(safe-area-inset-top)) !important;
  }

  body.kw-city-template-page .kwm-shared-subpage-hero a,
  body.kw-blog-page .kwm-shared-subpage-hero a,
  body.kw-news-single .kwm-shared-subpage-hero a,
  body.kw-regulamin-page .kwm-shared-subpage-hero a {
    text-decoration: none !important;
  }

  body.kw-city-template-page .kwm-shared-subpage-hero .kwm-hero-brand,
  body.kw-city-template-page .kwm-shared-subpage-hero .kwm-hero-brand strong,
  body.kw-city-template-page .kwm-shared-subpage-hero .kwm-hero-brand span,
  body.kw-blog-page .kwm-shared-subpage-hero .kwm-hero-brand,
  body.kw-blog-page .kwm-shared-subpage-hero .kwm-hero-brand strong,
  body.kw-blog-page .kwm-shared-subpage-hero .kwm-hero-brand span,
  body.kw-news-single .kwm-shared-subpage-hero .kwm-hero-brand,
  body.kw-news-single .kwm-shared-subpage-hero .kwm-hero-brand strong,
  body.kw-news-single .kwm-shared-subpage-hero .kwm-hero-brand span,
  body.kw-regulamin-page .kwm-shared-subpage-hero .kwm-hero-brand,
  body.kw-regulamin-page .kwm-shared-subpage-hero .kwm-hero-brand strong,
  body.kw-regulamin-page .kwm-shared-subpage-hero .kwm-hero-brand span {
    color: #fff !important;
    text-decoration: none !important;
  }

  body.kw-city-template-page .kwm-shared-subpage-hero .kwm-primary,
  body.kw-blog-page .kwm-shared-subpage-hero .kwm-primary,
  body.kw-news-single .kwm-shared-subpage-hero .kwm-primary,
  body.kw-regulamin-page .kwm-shared-subpage-hero .kwm-primary {
    color: #fff !important;
    text-decoration: none !important;
  }

  body.kw-regulamin-page .kwm-shared-subpage-hero .kwm-hero-nav {
    padding-left: var(--kwm-page-x) !important;
    padding-right: var(--kwm-page-x) !important;
  }

  body.kw-regulamin-page .kwm-shared-subpage-hero .kwm-hero-content {
    left: var(--kwm-page-x) !important;
    right: var(--kwm-page-x) !important;
    width: auto !important;
  }

  body.kw-regulamin-page .kwm-shared-subpage-hero .kwm-hero-content h1 {
    margin: 0 0 14px !important;
    color: #fff !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-weight: 500 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
  }

  body.kw-regulamin-page .kwm-shared-subpage-hero .kwm-hero-content h1 + p,
  body.kw-regulamin-page .kwm-shared-subpage-hero .kwm-hero-content p {
    margin: 0 0 22px !important;
    color: rgba(255,255,255,.94) !important;
    text-decoration: none !important;
  }

  body.kw-city-template-page .kwm-shared-subpage-hero .kwm-hero-chips a,
  body.kw-blog-page .kwm-shared-subpage-hero .kwm-hero-chips a,
  body.kw-news-single .kwm-shared-subpage-hero .kwm-hero-chips a,
  body.kw-regulamin-page .kwm-shared-subpage-hero .kwm-hero-chips a {
    color: #24302b !important;
    text-decoration: none !important;
  }

  body.kw-blog-page .kw-news-page,
  body.kw-news-single .kw-news-page,
  body.kw-regulamin-page .kw-legal-page {
    padding-top: 0 !important;
  }

  body.kw-city-template-page .kw-city-page {
    padding-top: max(0px, env(safe-area-inset-top)) !important;
  }

  body.kw-city-template-page .kw-city-hero {
    margin: 0 0 14px !important;
    overflow: visible !important;
  }

  body.kw-city-template-page .kw-city-hero-copy {
    display: none !important;
  }

  body.kw-city-template-page .kw-city-hero .split-content,
  body.kw-city-template-page .kw-city-hero .content,
  body.kw-city-template-page .kw-city-shell {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  body.kw-city-template-page .kw-city-hero-aside,
  body.kw-city-template-page .kw-city-grid,
  body.kw-city-template-page .kw-city-location-grid,
  body.kw-city-template-page .kw-city-steps {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.kw-city-template-page .kw-city-hero-image {
    display: none !important;
  }

  body.kw-city-template-page .kw-city-card,
  body.kw-city-template-page .kw-city-card-soft,
  body.kw-city-template-page .kw-city-home-card,
  body.kw-city-template-page .kw-city-grid .kw-city-card:first-child,
  body.kw-city-template-page .kw-city-section .content,
  body.kw-city-template-page .faq-content {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.kw-city-template-page .kw-city-card *,
  body.kw-city-template-page .kw-city-section .content *,
  body.kw-city-template-page .faq-content * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body.kw-city-template-page .kw-city-card h2,
  body.kw-city-template-page .kw-city-card h3 {
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body.kw-city-template-page .kw-city-hero-aside .kw-city-card:first-of-type {
    margin-top: 0 !important;
  }

  body.kw-city-template-page .kw-city-mini-links,
  body.kw-city-template-page .kw-city-actions {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .kw-mobile-concept-home .kwm-certificates.is-expanded .kwm-cert-track {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(128px, 100%), 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
    overflow: visible !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
  }

  .kw-mobile-concept-home .kwm-certificates.is-expanded .kwm-cert-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: clamp(128px, 38vw, 162px) !important;
  }

  .kw-mobile-concept-home .kwm-cert-card a,
  .kw-mobile-concept-home .kwm-cert-card img {
    width: 100% !important;
    height: 100% !important;
  }

  .kw-mobile-concept-home .kwm-cert-card img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }

  body.kw-city-template-page .kw-city-step-number::before {
    content: none !important;
    display: none !important;
  }

  body.kw-city-template-page .kw-city-step-number .kwm-svg-icon {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  body.kw-city-template-page .kw-city-step-number .kwm-svg-icon * {
    vector-effect: non-scaling-stroke;
  }

  .kw-mobile-concept-home .kwm-location-card.kwm-contact-line,
  .kw-mobile-concept-home .kwm-contact-line .kwm-contact-direct,
  .kw-mobile-concept-home .kwm-contact-line .kwm-contact-direct strong {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .kw-mobile-concept-home .kwm-location-card.kwm-contact-line {
    align-items: center !important;
  }

  .kw-mobile-concept-home .kwm-location-card.kwm-contact-line .kwm-contact-icon {
    grid-row: auto !important;
    align-self: center !important;
    justify-self: center !important;
    margin: 0 !important;
  }

  .kw-mobile-concept-home .kwm-location-card.kwm-contact-line .kwm-contact-direct {
    align-self: center !important;
    min-height: 42px !important;
    padding: 0 !important;
  }

  .kw-mobile-concept-home .kwm-map-frame {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 17px !important;
  }

  .kw-mobile-concept-home .kwm-map-frame iframe {
    display: block !important;
    width: 100% !important;
  }

  body.kw-city-template-page .kw-city-card,
  body.kw-news-single .kw-news-single-content,
  body.kw-blog-page .kw-news-card,
  .kw-mobile-concept-home .kwm-card {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  body.kw-city-template-page .kwm-shared-subpage-hero,
  body.kw-blog-page .kwm-shared-subpage-hero,
  body.kw-news-single .kwm-shared-subpage-hero,
  body.kw-regulamin-page .kwm-shared-subpage-hero {
    --kwm-page-x: 18px;
  }

  .kw-mobile-concept-home .kwm-certificates.is-expanded .kwm-cert-track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .kw-mobile-concept-home .kwm-certificates.is-expanded .kwm-cert-card {
    height: clamp(112px, 36vw, 138px) !important;
  }
}
