/* Keep calculator shell stable on non-home pages when header state changes. */
body.public-body:not(.home-body) .aa-header,
body.public-body:not(.home-body) .aa-header.is-scrolled {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Final conflict-resolving mobile layer loaded after all public stylesheets. */
@media (max-width: 980px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body.public-body {
    min-width: 0;
    overflow-x: hidden;
  }

  body.public-body .container {
    width: min(100%, calc(100% - 24px)) !important;
  }

  body.public-body .aa-topbar,
  body.public-body .aa-strip,
  body.public-body .aa-main-nav-desktop,
  body.public-body .aa-main-nav-compact,
  body.public-body .aa-infline {
    display: none !important;
  }

  body.public-body .aa-brandbar {
    height: auto !important;
  }

  body.public-body .aa-header,
  body.public-body .aa-header.is-scrolled {
    background: #ffffff !important;
    border-bottom: 1px solid #c8d2df !important;
    box-shadow: 0 8px 18px rgba(12, 21, 33, 0.12) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  body.public-body .aa-brandbar {
    border-bottom: 0 !important;
  }

  body.public-body .aa-brandbar-inner {
    min-height: 58px !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 8px !important;
    align-items: center !important;
  }

  body.public-body .aa-brand {
    min-width: 0;
  }

  body.public-body .aa-brand-logo {
    width: min(170px, 50vw) !important;
    max-width: 100%;
  }

  body.public-body .aa-mobile-nav-wrap {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  body.public-body .aa-mobile-nav-toggle {
    width: 44px;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.public-body .aa-mobile-nav-label {
    display: none !important;
  }

  body.public-body .aa-main-nav-mobile {
    right: 0 !important;
    width: min(340px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: min(72vh, 460px) !important;
    border-radius: 12px !important;
  }

  body.public-body .aa-main-nav-mobile a {
    min-height: 44px !important;
    font-size: 15px !important;
  }

  /* Calculator positioning is normalized in a single hard-override block at file end. */

  body.public-body .aa-section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  body.public-body.home-body .aa-home-hero-rebuild > .container.aa-home-hero-shell {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.public-body.home-body .aa-home-hero-media {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 1920 / 650 !important;
  }

  body.public-body.home-body .aa-home-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(8, 16, 28, 0.28) 0%,
      rgba(8, 16, 28, 0.14) 38%,
      rgba(8, 16, 28, 0) 72%
    );
  }

  body.public-body.home-body .aa-home-hero-media img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center 50% !important;
    transform: none !important;
    transform-origin: center center !important;
    filter: saturate(1.06) contrast(1.05) !important;
    border-radius: 0 !important;
  }

  body.public-body.home-body .aa-home-brand-strip.aa-home-brand-pills {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 8px 12px 10px !important;
    border-top: 0 !important;
    background: transparent !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: auto !important;
  }

  body.public-body.home-body .aa-home-brand-pills {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    border-radius: 0 !important;
    overflow-x: hidden !important;
  }

  body.public-body.home-body .aa-home-brand-group {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 4px 12px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.public-body.home-body .aa-home-brand-group-main {
    overflow: visible !important;
    scrollbar-width: none !important;
    padding-right: 0 !important;
    justify-content: center !important;
  }

  body.public-body.home-body .aa-home-brand-group-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2px 14px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  body.public-body.home-body .aa-home-brand-divider {
    display: none !important;
  }

  body.public-body.home-body .aa-home-brand-link,
  body.public-body.home-body .aa-home-brand-link-advanced,
  body.public-body.home-body .aa-home-brand-link-more {
    flex: 0 1 auto !important;
    min-height: 28px !important;
    padding: 2px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #14253b !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
    line-height: 1.18 !important;
    max-width: 100% !important;
    text-decoration: none !important;
  }

  body.public-body.home-body .aa-home-brand-link:hover,
  body.public-body.home-body .aa-home-brand-link:focus-visible,
  body.public-body.home-body .aa-home-brand-link-advanced:hover,
  body.public-body.home-body .aa-home-brand-link-advanced:focus-visible,
  body.public-body.home-body .aa-home-brand-link-more:hover,
  body.public-body.home-body .aa-home-brand-link-more:focus-visible {
    text-decoration: none !important;
  }

  body.public-body.home-body .aa-home-brand-link::after,
  body.public-body.home-body .aa-home-brand-link-advanced::after,
  body.public-body.home-body .aa-home-brand-link-more::after {
    content: none !important;
    display: none !important;
  }

  body.public-body.home-body .aa-home-brand-link-advanced,
  body.public-body.home-body .aa-home-brand-link-more {
    width: auto !important;
    min-width: 0 !important;
    min-height: 26px !important;
    padding: 0 !important;
    background: transparent !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #2d3f57 !important;
  }

  body.public-body .aa-home-grid,
  body.public-body .aa-listing-layout,
  body.public-body .aa-detail-layout,
  body.public-body .aa-contact-v2-layout,
  body.public-body .aa-clean-hero-grid,
  body.public-body .aa-clean-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.public-body .aa-card-grid,
  body.public-body .aa-advisor-grid,
  body.public-body .aa-results-grid,
  body.public-body .aa-clean-topic-grid,
  body.public-body .aa-offer-benefits-grid,
  body.public-body .aa-steps {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .home-body #najpopularniejsze-modele .aa-top-model-grid,
  .home-body .aa-advisor-grid-alt,
  .home-body .aa-home-collection-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card,
  .home-body .aa-section-advisor .aa-unified-card,
  .home-body .aa-home-collection-grid .aa-unified-card {
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-media,
  .home-body .aa-section-advisor .aa-unified-card-media,
  .home-body .aa-home-collection-grid .aa-unified-card-media {
    height: clamp(170px, 42vw, 230px) !important;
    min-height: 170px !important;
    max-height: 230px !important;
    padding: 8px !important;
    border-bottom: 1px solid #dbe5f1 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-media img,
  .home-body .aa-section-advisor .aa-unified-card-media img,
  .home-body .aa-home-collection-grid .aa-unified-card-media img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center 56% !important;
    transform: scale(1.28) !important;
    transform-origin: center 58% !important;
    border-radius: 6px !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-body,
  .home-body .aa-section-advisor .aa-unified-card-body,
  .home-body .aa-home-collection-grid .aa-unified-card-body {
    padding: 10px 12px 12px !important;
    gap: 4px !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-head.has-lease,
  .home-body .aa-section-advisor .aa-unified-card-head.has-lease,
  .home-body .aa-home-collection-grid .aa-unified-card-head.has-lease {
    padding-right: 108px !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-lease,
  .home-body .aa-section-advisor .aa-unified-card-lease,
  .home-body .aa-home-collection-grid .aa-unified-card-lease {
    top: 0 !important;
    min-height: 18px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    border: 1px solid #d6deea !important;
    background: #f8fafd !important;
    color: #516479 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-brand,
  .home-body .aa-section-advisor .aa-unified-card-brand,
  .home-body .aa-home-collection-grid .aa-unified-card-brand {
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #6b7c91 !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-model,
  .home-body .aa-section-advisor .aa-unified-card-model,
  .home-body .aa-home-collection-grid .aa-unified-card-model {
    font-size: clamp(22px, 6.2vw, 28px) !important;
    line-height: 1.08 !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-summary,
  .home-body .aa-section-advisor .aa-unified-card-summary,
  .home-body .aa-home-collection-grid .aa-unified-card-summary {
    display: none !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-price,
  .home-body .aa-section-advisor .aa-unified-card-price,
  .home-body .aa-home-collection-grid .aa-unified-card-price {
    margin: 0 !important;
    font-size: 12px !important;
    color: #70839a !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-rate,
  .home-body .aa-section-advisor .aa-unified-card-rate,
  .home-body .aa-home-collection-grid .aa-unified-card-rate {
    margin: 0 !important;
    gap: 5px !important;
    color: #1a2d48 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    align-items: baseline !important;
    min-height: 0 !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-rate strong,
  .home-body .aa-section-advisor .aa-unified-card-rate strong,
  .home-body .aa-home-collection-grid .aa-unified-card-rate strong {
    font-size: clamp(30px, 7.4vw, 42px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.01em !important;
    color: #152842 !important;
    font-weight: 600 !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-rate span,
  .home-body .aa-section-advisor .aa-unified-card-rate span,
  .home-body .aa-home-collection-grid .aa-unified-card-rate span {
    font-size: clamp(13px, 3.8vw, 17px) !important;
    line-height: 1 !important;
    color: #111a2b !important;
    font-weight: 600 !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-cta,
  .home-body .aa-section-advisor .aa-unified-card-cta,
  .home-body .aa-home-collection-grid .aa-unified-card-cta {
    min-height: 42px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    border: 1px solid #9f2230 !important;
    background: linear-gradient(180deg, #bc3141 0%, #a62534 100%) !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-cta:hover,
  .home-body #najpopularniejsze-modele .aa-unified-card-cta:focus-visible,
  .home-body .aa-section-advisor .aa-unified-card-cta:hover,
  .home-body .aa-section-advisor .aa-unified-card-cta:focus-visible,
  .home-body .aa-home-collection-grid .aa-unified-card-cta:hover,
  .home-body .aa-home-collection-grid .aa-unified-card-cta:focus-visible {
    border-color: #8f1f2b !important;
    background: linear-gradient(180deg, #ae2e3d 0%, #951f2d 100%) !important;
    color: #ffffff !important;
  }

  body.public-body .aa-listing-page .listing-filter-card,
  body.public-body .aa-listing-page .aa-filter-card {
    position: static !important;
  }

  body.public-body .aa-filter-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.public-body .aa-filter-tabs a {
    justify-content: center;
    text-align: center;
    min-height: 40px;
  }

  body.public-body .aa-offer-card-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  body.public-body .aa-offer-card-row .aa-offer-media {
    min-height: 0 !important;
    width: 100% !important;
    padding: 6px !important;
  }

  body.public-body .aa-offer-card-row .aa-offer-media img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 8 !important;
    max-height: 156px !important;
    object-fit: contain !important;
  }

  body.public-body .aa-offer-card-row .aa-offer-copy {
    padding: 6px 8px 8px !important;
    gap: 3px !important;
  }

  body.public-body .aa-offer-card-row .aa-offer-copy h2 {
    font-size: clamp(17px, 5vw, 21px) !important;
    line-height: 1.08 !important;
  }

  body.public-body .aa-offer-card-row .aa-offer-version,
  body.public-body .aa-offer-card-row .aa-offer-specline,
  body.public-body .aa-offer-card-row .aa-offer-meta span {
    font-size: 11px !important;
  }

  body.public-body .aa-offer-card-row .aa-offer-cta {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 36px !important;
    font-size: 13px !important;
  }

  body.public-body .aa-offer-prices {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.public-body .aa-offer-card-row .aa-offer-prices strong {
    font-size: clamp(16px, 4.2vw, 20px) !important;
    line-height: 1.05 !important;
  }

  body.public-body .aa-offer-card-row .aa-offer-prices small {
    font-size: 10px !important;
  }

  body.public-body .aa-page-head-inner-offer,
  body.public-body .aa-page-head-inner-offer.has-side-note {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.public-body .aa-page-head-copy .aa-page-head-title-inline {
    display: flex;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  body.public-body .aa-page-head-copy .aa-page-head-title-inline > h1 {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.1 !important;
  }

  body.public-body .aa-page-head-copy .aa-page-head-title-inline > span {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }

  body.public-body .aa-azja-main-image img {
    height: auto !important;
    max-height: none !important;
    padding: 10px !important;
  }

  body.public-body .aa-detail-thumbs.aa-detail-thumbs-slider-wrap {
    grid-template-columns: 1fr !important;
  }

  body.public-body .aa-thumb-nav {
    display: none !important;
  }

  body.public-body .aa-detail-summary {
    position: static !important;
    top: auto !important;
  }

  body.public-body .aa-detail-actions,
  body.public-body .aa-detail-page .aa-detail-summary .aa-detail-actions {
    grid-template-columns: 1fr !important;
  }

  body.public-body .aa-summary-prices.aa-azja-price-grid {
    grid-template-columns: 1fr !important;
  }

  body.public-body .aa-azja-price-grid .aa-azja-price-item {
    border-right: 0 !important;
  }

  body.public-body .aa-detail-page #wyposazenie .aa-equip-grid > div {
    flex-direction: column;
    gap: 10px !important;
  }

  body.public-body .aa-detail-page #wyposazenie .aa-equip-grid span {
    width: auto !important;
    min-width: 0 !important;
    padding-top: 0 !important;
  }

  body.public-body .aa-inline-form,
  body.public-body .aa-detail-page #kontakt-oferta .aa-inline-form {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      'name'
      'phone'
      'email'
      'message'
      'consent-email'
      'consent-phone'
      'submit' !important;
  }

  body.public-body .aa-inline-form .aa-inline-submit,
  body.public-body .aa-detail-page #kontakt-oferta .aa-inline-form .aa-inline-submit {
    width: 100%;
  }

  body.public-body .aa-contact-v2-fields {
    grid-template-columns: 1fr !important;
  }

  body.public-body .aa-contact-v2-field-full {
    grid-column: auto !important;
  }

  body.public-body .aa-contact-v2-consents {
    grid-template-columns: 1fr !important;
  }

  body.public-body .aa-contact-v2-submit,
  body.public-body .aa-clean-actions .button-primary,
  body.public-body .aa-clean-actions .button-secondary,
  body.public-body .aa-clean-topic-card .button-secondary {
    width: 100% !important;
  }

  body.public-body .aa-clean-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.public-body .aa-footer-grid {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center;
    gap: 18px !important;
  }

  body.public-body .aa-footer-nav,
  body.public-body .aa-footer-social-icons {
    justify-content: center;
    align-items: center;
  }

  body.public-body .aa-footer-bottom-inner,
  body.public-body .aa-footer-brand {
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  body.public-body.home-body .aa-home-hero-media {
    min-height: clamp(170px, 46vw, 220px) !important;
    aspect-ratio: auto !important;
  }

  body.public-body.home-body .aa-home-hero-media img {
    min-height: clamp(170px, 46vw, 220px) !important;
    object-position: center 52% !important;
    transform: scale(1.04) !important;
  }

  body.public-body .container {
    width: min(100%, calc(100% - 16px)) !important;
  }

  body.public-body .aa-section {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
  }

  body.public-body .aa-filter-tabs {
    grid-template-columns: 1fr;
  }

  body.public-body .aa-page-head-inner h1 {
    font-size: 24px !important;
  }

  body.public-body .aa-offer-copy h2 {
    font-size: 18px !important;
  }

  body.public-body .aa-offer-prices strong {
    font-size: 17px !important;
  }

  body.public-body.home-body .aa-home-brand-strip.aa-home-brand-pills {
    padding: 8px 8px 10px !important;
    gap: 5px !important;
  }

  body.public-body.home-body .aa-home-brand-group {
    gap: 3px 10px !important;
    justify-content: center !important;
  }

  body.public-body.home-body .aa-home-brand-group-main {
    padding-right: 0 !important;
  }

  body.public-body.home-body .aa-home-brand-group-actions {
    gap: 1px 12px !important;
    justify-content: center !important;
  }

  body.public-body.home-body .aa-home-brand-link,
  body.public-body.home-body .aa-home-brand-link-advanced,
  body.public-body.home-body .aa-home-brand-link-more {
    min-height: 24px !important;
    font-size: 15px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.public-body.home-body .aa-home-brand-link-advanced,
  body.public-body.home-body .aa-home-brand-link-more {
    font-size: 14px !important;
  }

  body.public-body .aa-offer-card-row .aa-offer-media img {
    aspect-ratio: 16 / 7.8 !important;
    max-height: 138px !important;
  }

  body.public-body.home-body #najpopularniejsze-modele .aa-top-model-grid,
  body.public-body.home-body .aa-advisor-grid-alt,
  body.public-body.home-body .aa-home-collection-grid {
    grid-template-columns: 1fr !important;
  }

  body.public-body .aa-contact-v2-hero-inner h1,
  body.public-body .aa-clean-hero-copy h1 {
    font-size: clamp(22px, 8vw, 30px) !important;
  }
}

/* Final hard override for calculator placement on mobile (wins over legacy !important rules). */
@media (max-width: 980px) {
  body.public-body .aa-header,
  body.public-body .aa-header.is-scrolled {
    overflow: visible !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  body.public-body.home-body .aa-rate-shell-floating,
  body.public-body.home-body .aa-rate-shell-floating.is-stuck,
  body.public-body:not(.home-body) .aa-rate-shell {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    left: auto !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
    width: auto !important;
    margin: 0 !important;
    z-index: 520 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    pointer-events: none !important;
  }

  body.public-body.home-body .aa-rate-shell-floating .aa-rate-shell-inner,
  body.public-body:not(.home-body) .aa-rate-shell .aa-rate-shell-inner {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
    min-height: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  body.public-body.home-body .aa-rate-shell-floating .aa-rate-toggle,
  body.public-body.home-body .aa-rate-shell-floating .aa-rate-toggle:hover,
  body.public-body.home-body .aa-rate-shell-floating .aa-rate-toggle.is-open,
  body.public-body:not(.home-body) .aa-rate-shell .aa-rate-toggle,
  body.public-body:not(.home-body) .aa-rate-shell .aa-rate-toggle:hover,
  body.public-body:not(.home-body) .aa-rate-shell .aa-rate-toggle.is-open {
    position: relative !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 168px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #7b2529 !important;
    border-right: 0 !important;
    border-radius: 14px 0 0 14px !important;
    display: block !important;
    transform: none !important;
    overflow: hidden !important;
    pointer-events: auto !important;
  }

  body.public-body.home-body .aa-rate-shell-floating .aa-rate-toggle > span:first-child,
  body.public-body:not(.home-body) .aa-rate-shell .aa-rate-toggle > span:first-child {
    position: absolute !important;
    left: 50% !important;
    top: 43% !important;
    transform: translate(-50%, -50%) rotate(-90deg) !important;
    transform-origin: center center !important;
    white-space: nowrap !important;
    text-align: center !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    font-size: 17px !important;
    font-weight: 700 !important;
  }

  body.public-body.home-body .aa-rate-shell-floating .aa-rate-toggle-icon,
  body.public-body:not(.home-body) .aa-rate-shell .aa-rate-toggle-icon {
    position: absolute !important;
    left: 50% !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 9px !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    background: rgba(255, 255, 255, 0.16) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
  }

  body.public-body.home-body .aa-rate-shell-floating .rate-panel-wrap,
  body.public-body:not(.home-body) .aa-rate-shell .rate-panel-wrap {
    position: fixed !important;
    top: auto !important;
    left: 8px !important;
    right: calc(56px + 10px) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(68dvh, 620px) !important;
    padding-top: 0 !important;
    margin: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateY(0) !important;
    transform-origin: bottom center !important;
    opacity: 1 !important;
    z-index: 459 !important;
    pointer-events: auto !important;
    overscroll-behavior: contain !important;
  }

  body.public-body.home-body .aa-rate-shell-floating .rate-panel-wrap.is-collapsed,
  body.public-body:not(.home-body) .aa-rate-shell .rate-panel-wrap.is-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    transform: translateX(10px) scale(0.98) !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }

  body.public-body.home-body .aa-rate-shell-floating .rate-panel-wrap > .container,
  body.public-body:not(.home-body) .aa-rate-shell .rate-panel-wrap > .container {
    width: 100% !important;
    margin: 0 !important;
  }
}

@media (max-width: 640px) {
  body.public-body.home-body .aa-rate-shell-floating,
  body.public-body.home-body .aa-rate-shell-floating.is-stuck,
  body.public-body:not(.home-body) .aa-rate-shell {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
  }

  body.public-body.home-body .aa-rate-shell-floating .aa-rate-toggle,
  body.public-body.home-body .aa-rate-shell-floating .aa-rate-toggle:hover,
  body.public-body.home-body .aa-rate-shell-floating .aa-rate-toggle.is-open,
  body.public-body:not(.home-body) .aa-rate-shell .aa-rate-toggle,
  body.public-body:not(.home-body) .aa-rate-shell .aa-rate-toggle:hover,
  body.public-body:not(.home-body) .aa-rate-shell .aa-rate-toggle.is-open {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 156px !important;
    border-radius: 12px 0 0 12px !important;
  }

  body.public-body.home-body .aa-rate-shell-floating .aa-rate-toggle > span:first-child,
  body.public-body:not(.home-body) .aa-rate-shell .aa-rate-toggle > span:first-child {
    top: 42% !important;
    font-size: 15px !important;
  }

  body.public-body.home-body .aa-rate-shell-floating .rate-panel-wrap,
  body.public-body:not(.home-body) .aa-rate-shell .rate-panel-wrap {
    left: 6px !important;
    right: calc(52px + 8px) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
    max-height: min(70dvh, 640px) !important;
  }
}

@media (min-width: 700px) and (max-width: 980px) {
  .home-body #najpopularniejsze-modele .aa-unified-card-media,
  .home-body .aa-section-advisor .aa-unified-card-media,
  .home-body .aa-home-collection-grid .aa-unified-card-media {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
  }

  .home-body #najpopularniejsze-modele .aa-unified-card-media img,
  .home-body .aa-section-advisor .aa-unified-card-media img,
  .home-body .aa-home-collection-grid .aa-unified-card-media img {
    transform: scale(1.36) !important;
  }

  body.public-body .aa-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.public-body .aa-offer-card-row .aa-offer-media img {
    max-height: 168px !important;
  }

  body.public-body .aa-offer-card-row .aa-offer-copy h2 {
    font-size: 20px !important;
  }

  body.public-body .aa-offer-card-row .aa-offer-prices strong {
    font-size: 18px !important;
  }
}

/* Imported offer photos should fill their media area without inner gaps. */
.home-body #najpopularniejsze-modele .aa-unified-card-media,
.home-body .aa-section-advisor .aa-unified-card-media,
.home-body .aa-home-collection-grid .aa-unified-card-media,
body.public-body.home-body .aa-video-feature-media,
body.public-body.home-body .aa-video-list-thumb {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.home-body #najpopularniejsze-modele .aa-unified-card-media,
.home-body .aa-section-advisor .aa-unified-card-media,
.home-body .aa-home-collection-grid .aa-unified-card-media,
body.public-body .aa-offer-card-row .aa-offer-media {
  padding: 0 !important;
}

.home-body #najpopularniejsze-modele .aa-unified-card-media img,
.home-body .aa-section-advisor .aa-unified-card-media img,
.home-body .aa-home-collection-grid .aa-unified-card-media img,
body.public-body .aa-offer-card-row .aa-offer-media img,
body.public-body.home-body .aa-video-feature-media img,
body.public-body.home-body .aa-video-list-thumb img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  transform-origin: center center !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  mix-blend-mode: normal !important;
}

body.public-body .aa-offer-card-row .aa-offer-media {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

body.public-body .aa-offer-card-row .aa-offer-media img {
  height: 100% !important;
  aspect-ratio: auto !important;
}

/* Keep desktop offer tiles in the homepage showcase from letting the thumb overlap text. */
body.public-body.home-body .aa-video-list-item {
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr) !important;
}

body.public-body.home-body .aa-video-list-item > * ,
body.public-body.home-body .aa-video-list-body,
body.public-body.home-body .aa-video-list-body h3,
body.public-body.home-body .aa-video-list-body h3 a,
body.public-body.home-body .aa-video-list-price,
body.public-body.home-body .aa-video-list-kicker {
  min-width: 0 !important;
}

body.public-body.home-body .aa-video-list-thumb {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  justify-self: stretch !important;
  align-self: stretch !important;
}

@media (max-width: 1180px) {
  body.public-body.home-body .aa-video-list-item {
    grid-template-columns: 1fr !important;
  }

  body.public-body.home-body .aa-video-list-thumb {
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
  }
}

/* Keep desktop listing and related offer cards compact and equal in height. */
@media (min-width: 981px) {
  body.public-body .aa-listing-page .aa-results-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.public-body .aa-listing-page .aa-offer-card-row {
    grid-template-columns: clamp(260px, 31vw, 336px) minmax(0, 1fr) !important;
    min-height: 236px !important;
    max-height: none !important;
    align-items: stretch !important;
  }

  body.public-body .aa-listing-page .aa-offer-card-row .aa-offer-media {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    padding: 0 !important;
    line-height: 0 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    border-right: 1px solid #dbe5f1 !important;
    border-bottom: 0 !important;
    overflow: hidden !important;
  }

  body.public-body .aa-listing-page .aa-offer-card-row .aa-offer-media img {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.public-body .aa-listing-page .aa-offer-card-row .aa-offer-copy {
    min-height: 236px !important;
    padding: 12px 18px !important;
    max-width: 680px !important;
    display: grid !important;
    align-content: start !important;
    gap: 4px !important;
  }

  body.public-body .aa-listing-page .aa-offer-card-row .aa-offer-copy h2 {
    font-size: clamp(24px, 1.9vw, 30px) !important;
    line-height: 1.02 !important;
  }

  body.public-body .aa-listing-page .aa-offer-card-row .aa-offer-version {
    font-size: 14px !important;
  }

  body.public-body .aa-listing-page .aa-offer-card-row .aa-offer-prices strong {
    font-size: clamp(24px, 1.9vw, 30px) !important;
  }

  body.public-body .aa-listing-page .aa-offer-card-row .aa-offer-prices > div:last-child strong {
    font-size: clamp(21px, 1.5vw, 26px) !important;
  }

  body.public-body .aa-listing-page .aa-offer-card-row .aa-offer-cta {
    margin-top: auto !important;
  }

}

@media (max-width: 980px) {
  body.public-body .aa-pagination-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  body.public-body .aa-pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body.public-body .aa-pagination-pages {
    justify-content: flex-start;
  }

  body.public-body .aa-pagination-link,
  body.public-body .aa-pagination-link-nav {
    min-height: 40px;
    min-width: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}

/* Unified affordance layer for clickable surfaces across the public site. */
body.public-body a[href],
body.public-body button,
body.public-body input[type='submit'],
body.public-body input[type='button'],
body.public-body input[type='range'],
body.public-body summary,
body.public-body select,
body.public-body [role='button'],
body.public-body [role='link'],
body.public-body [data-card-link],
body.public-body [data-click-surface='true'],
body.public-body .aa-video-feature,
body.public-body .aa-video-list-item,
body.public-body .aa-offer-card {
  cursor: pointer !important;
}

body.public-body a[href],
body.public-body button,
body.public-body input[type='submit'],
body.public-body input[type='button'],
body.public-body summary,
body.public-body [role='button'],
body.public-body [role='link'],
body.public-body [data-click-surface='true'],
body.public-body .aa-video-feature,
body.public-body .aa-video-list-item,
body.public-body .aa-offer-card {
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    opacity 0.18s ease !important;
}

body.public-body .aa-offer-media img,
body.public-body .aa-video-feature-media img,
body.public-body .aa-video-list-thumb img,
body.public-body .aa-unified-card-media img {
  transition: transform 0.28s ease, filter 0.28s ease !important;
}

body.public-body [data-click-surface='true']:focus-visible,
body.public-body .aa-video-feature:focus-visible,
body.public-body .aa-video-list-item:focus-visible,
body.public-body .aa-offer-card:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(75, 168, 243, 0.2),
    0 18px 38px rgba(11, 27, 45, 0.14) !important;
  border-color: #bcd0e4 !important;
}

@media (hover: hover) and (pointer: fine) {
  body.public-body [data-click-surface='true']:hover,
  body.public-body .aa-video-feature:hover,
  body.public-body .aa-video-list-item:hover,
  body.public-body .aa-offer-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 40px rgba(11, 27, 45, 0.15) !important;
    border-color: #c0d1e3 !important;
  }

  body.public-body [data-click-surface='true']:hover .aa-offer-media img,
  body.public-body [data-click-surface='true']:hover .aa-video-feature-media img,
  body.public-body [data-click-surface='true']:hover .aa-video-list-thumb img,
  body.public-body [data-click-surface='true']:hover .aa-unified-card-media img,
  body.public-body .aa-video-feature:hover .aa-video-feature-media img,
  body.public-body .aa-video-list-item:hover .aa-video-list-thumb img,
  body.public-body .aa-offer-card:hover .aa-offer-media img {
    transform: scale(1.03) !important;
    filter: saturate(1.03);
  }

  body.public-body .button-primary:hover,
  body.public-body .button-secondary:hover,
  body.public-body .aa-offer-cta:hover,
  body.public-body .aa-video-feature-link:hover,
  body.public-body .aa-unified-card-cta:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 22px rgba(17, 33, 54, 0.12) !important;
  }

  body.public-body a[href]:not(.button-primary):not(.button-secondary):not(.aa-offer-cta):not(.aa-video-feature-link):not(.aa-unified-card-cta):hover {
    opacity: 0.88;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.public-body a[href],
  body.public-body button,
  body.public-body input[type='submit'],
  body.public-body input[type='button'],
  body.public-body summary,
  body.public-body [role='button'],
  body.public-body [role='link'],
  body.public-body [data-click-surface='true'],
  body.public-body .aa-video-feature,
  body.public-body .aa-video-list-item,
  body.public-body .aa-offer-card,
  body.public-body .aa-offer-media img,
  body.public-body .aa-video-feature-media img,
  body.public-body .aa-video-list-thumb img,
  body.public-body .aa-unified-card-media img {
    transition: none !important;
  }
}

/* Gallery arrows use typographic glyphs that sit optically off-center; replace them with centered pseudo-elements. */
body.public-body .aa-gallery-nav,
body.public-body .aa-thumb-nav {
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

body.public-body .aa-gallery-nav::before,
body.public-body .aa-thumb-nav::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid #1d2d47;
  border-right: 2.5px solid #1d2d47;
  box-sizing: border-box;
}

body.public-body .aa-gallery-nav.is-prev::before,
body.public-body .aa-thumb-nav.is-prev::before {
  transform: translateX(1px) rotate(-135deg);
}

body.public-body .aa-gallery-nav.is-next::before,
body.public-body .aa-thumb-nav.is-next::before {
  transform: translateX(-1px) rotate(45deg);
}

/* Listing badges on /oferta should match the softer homepage pill, not the legacy uppercase chip. */
body.public-body .aa-listing-page .aa-offer-media .aa-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

body.public-body .aa-listing-page .aa-offer-media .aa-badge-red,
body.public-body .aa-listing-page .aa-offer-media .aa-badge-green,
body.public-body .aa-listing-page .aa-offer-media .aa-badge-blue,
body.public-body .aa-listing-page .aa-offer-media .aa-badge-dark {
  box-shadow: none !important;
}

@media (max-width: 980px) {
  body.public-body .aa-import-calculator {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  body.public-body .aa-import-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    padding-bottom: 12px !important;
  }

  body.public-body .aa-import-head h2 {
    font-size: 28px !important;
  }

  body.public-body .aa-import-head > div > span {
    font-size: 12px !important;
  }

  body.public-body .aa-import-rates {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important;
  }

  body.public-body .aa-import-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    padding-top: 14px !important;
  }

  body.public-body .aa-import-controls,
  body.public-body .aa-import-summary {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  body.public-body .aa-import-static-field,
  body.public-body .aa-import-select {
    min-height: 46px !important;
    font-size: 15px !important;
  }

  body.public-body .aa-import-cost-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  body.public-body .aa-import-cost-row > strong {
    white-space: normal !important;
    font-size: 20px !important;
  }

  body.public-body .aa-import-cost-meta {
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  body.public-body .aa-import-cost-city {
    font-size: 12px !important;
  }

  body.public-body .aa-import-cost-meta > strong {
    font-size: 20px !important;
  }

  body.public-body .aa-import-total {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.public-body .aa-import-total strong {
    font-size: 26px !important;
  }

  body.public-body .aa-import-route p {
    gap: 6px !important;
    font-size: 13px !important;
  }

  body.public-body .aa-import-route strong {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 12px !important;
  }
}
