/* Patch 137: samostatné mobilní CSS pro izolovanou stránku bytové kalkulačky. */

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .ap-landing-header-row {
    min-height: 64px;
    gap: 8px;
  }

  .ap-landing-logo img {
    width: min(132px, 38vw);
  }

  .ap-landing-header-actions {
    flex: 0 1 auto;
    gap: 0;
    min-width: 0;
  }

  .ap-landing-request {
    display: none !important;
  }

  .ap-landing-phone,
  .ap-landing-availability {
    min-height: 40px;
    padding: 6px 10px;
    gap: 8px;
    max-width: calc(100vw - 168px);
  }

  .ap-landing-phone-state {
    display: none !important;
  }

  .ap-landing-phone strong,
  .ap-landing-availability {
    font-size: .86rem;
    line-height: 1;
  }

  .ap-landing-status-dot {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, .13);
  }

  .ap-hero {
    padding-top: 42px;
  }

  .ap-hero h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
    line-height: .98;
  }

  .ap-hero .ap-hero-lead {
    font-size: clamp(1.24rem, 5.2vw, 1.65rem);
    line-height: 1.45;
  }

  .ap-hero-actions .ap-btn,
  .ap-hero-start {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .ap-landing-header-row {
    min-height: 62px;
    gap: 6px;
  }

  .ap-landing-logo img {
    width: min(118px, 35vw);
  }

  .ap-landing-phone,
  .ap-landing-availability {
    max-width: calc(100vw - 146px);
    min-height: 38px;
    padding: 5px 8px;
  }

  .ap-landing-phone strong,
  .ap-landing-availability {
    font-size: .78rem;
  }
}

/* Patch 138: kompaktní mobilní progress řízený mobilním JS adaptérem. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-calc-shell {
    padding-top: 14px;
  }

  body.ap-mobile-adapter-on .ap-summary-strip {
    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;
    white-space: nowrap !important;
    border: 0 !important;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress {
    display: block;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid rgba(16, 185, 129, .22);
    border-radius: 18px;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  }

  .ap-mobile-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
    color: #064e3b;
  }

  .ap-mobile-progress-head span {
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
  }

  .ap-mobile-progress-head strong {
    font-size: .95rem;
    font-weight: 950;
    text-align: right;
  }

  .ap-mobile-progress-bar {
    height: 7px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
  }

  .ap-mobile-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #10b981;
    transition: width .22s ease;
  }

  .ap-mobile-progress-chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ap-mobile-progress-chips::-webkit-scrollbar {
    display: none;
  }

  .ap-mobile-progress-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 92px;
    padding: 8px 9px;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #fff;
    color: #334155;
  }

  .ap-mobile-progress-num {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: .76rem;
    font-weight: 950;
  }

  .ap-mobile-progress-chip strong,
  .ap-mobile-progress-chip small {
    display: block;
    line-height: 1.05;
  }

  .ap-mobile-progress-chip strong {
    font-size: .78rem;
    font-weight: 950;
  }

  .ap-mobile-progress-chip small {
    margin-top: 3px;
    font-size: .68rem;
    color: #64748b;
  }

  .ap-mobile-progress-chip.is-done {
    border-color: rgba(16, 185, 129, .38);
    background: #dcfce7;
    color: #064e3b;
  }

  .ap-mobile-progress-chip.is-done .ap-mobile-progress-num {
    background: #10b981;
    color: #fff;
  }

  .ap-mobile-progress-chip.is-current {
    border-color: #0f766e;
    background: #ecfeff;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 118, 110, .12);
  }

  .ap-mobile-progress-chip.is-current .ap-mobile-progress-num {
    background: #0f766e;
    color: #fff;
  }

  body.ap-mobile-adapter-on .ap-stage {
    margin-top: 0;
  }

  body.ap-mobile-adapter-on .ap-stage h2,
  body.ap-mobile-adapter-on .ap-stage h3 {
    line-height: 1.16;
  }
}

/* Patch 139: zkompaktnění mobilního prvního kroku kalkulačky. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-calc-shell {
    padding: 10px 10px 16px;
    border-radius: 22px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 17px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-head {
    margin-bottom: 7px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-head span {
    font-size: .72rem;
    letter-spacing: .055em;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-head strong {
    font-size: .86rem;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-bar {
    height: 5px;
    margin-bottom: 8px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chips {
    gap: 6px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chip {
    min-width: 82px;
    padding: 7px 8px;
    gap: 6px;
    border-radius: 13px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-num {
    width: 20px;
    height: 20px;
    font-size: .7rem;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chip strong {
    font-size: .73rem;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chip small {
    margin-top: 2px;
    font-size: .62rem;
  }

  body.ap-mobile-adapter-on .ap-stage {
    padding-top: 16px;
  }

  body.ap-mobile-adapter-on .ap-stage-head {
    gap: 10px;
    margin-bottom: 14px;
  }

  body.ap-mobile-adapter-on .ap-stage-num {
    width: 30px;
    height: 30px;
    font-size: .95rem;
  }

  body.ap-mobile-adapter-on .ap-stage h2,
  body.ap-mobile-adapter-on .ap-stage h3,
  body.ap-mobile-adapter-on .ap-stage-title {
    font-size: clamp(1.28rem, 7.1vw, 1.72rem);
    line-height: 1.1;
  }

  body.ap-mobile-adapter-on .ap-stage-head p,
  body.ap-mobile-adapter-on .ap-stage > p,
  body.ap-mobile-adapter-on .ap-stage .ap-helper {
    font-size: .98rem;
    line-height: 1.42;
  }

  body.ap-mobile-adapter-on .ap-option-grid {
    gap: 10px;
    margin-bottom: 14px;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid {
    gap: 9px;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice {
    min-height: 82px;
    padding: 11px 12px;
    border-radius: 17px;
    gap: .18rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice.is-selected {
    box-shadow: 0 10px 24px rgba(16, 185, 129, .13);
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice .choice-icon {
    font-size: 1.28rem;
    margin-bottom: 1px;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice strong {
    font-size: 1.02rem;
    line-height: 1.12;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice small {
    font-size: .86rem;
    line-height: 1.1;
  }

  body.ap-mobile-adapter-on .ap-next {
    margin-top: 4px;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on .ap-calc-shell {
    padding: 9px 9px 14px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress {
    padding: 9px;
    border-radius: 16px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chip {
    min-width: 76px;
    padding: 6px 7px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chip small {
    display: none;
  }

  body.ap-mobile-adapter-on .ap-stage-head {
    margin-bottom: 12px;
  }

  body.ap-mobile-adapter-on .ap-stage h2,
  body.ap-mobile-adapter-on .ap-stage h3,
  body.ap-mobile-adapter-on .ap-stage-title {
    font-size: clamp(1.22rem, 6.8vw, 1.55rem);
  }

  body.ap-mobile-adapter-on .ap-stage-head p,
  body.ap-mobile-adapter-on .ap-stage > p,
  body.ap-mobile-adapter-on .ap-stage .ap-helper {
    font-size: .92rem;
    line-height: 1.36;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice {
    min-height: 76px;
    padding: 10px 11px;
    border-radius: 16px;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice .choice-icon {
    font-size: 1.18rem;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice strong {
    font-size: .96rem;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice small {
    font-size: .8rem;
  }
}

/* Patch 140: mobilní zklidnění kroku patro / přístup. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-stage[data-stage="3"] {
    padding-top: 14px;
  }

  body.ap-mobile-adapter-on .ap-stage[data-stage="3"] .ap-stage-head {
    gap: 9px;
    margin-bottom: 12px;
  }

  body.ap-mobile-adapter-on .ap-stage[data-stage="3"] .ap-stage-num {
    width: 30px;
    height: 30px;
    font-size: .92rem;
  }

  body.ap-mobile-adapter-on .ap-stage[data-stage="3"] h3 {
    font-size: clamp(1.18rem, 6.2vw, 1.52rem);
    line-height: 1.08;
    max-width: 11.5em;
  }

  body.ap-mobile-adapter-on .ap-stage[data-stage="3"] .ap-stage-head p {
    font-size: .9rem;
    line-height: 1.34;
  }

  body.ap-mobile-adapter-on .ap-access-grid,
  body.ap-mobile-adapter-on .ap-access-grid--floor-only {
    gap: 12px;
  }

  body.ap-mobile-adapter-on .ap-access-block {
    padding: 12px;
    border-radius: 18px;
  }

  body.ap-mobile-adapter-on .ap-access-block h4 {
    margin-bottom: 10px;
    font-size: 1.02rem;
    line-height: 1.12;
  }

  body.ap-mobile-adapter-on .ap-floor-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    gap: 8px !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
    margin-bottom: 10px !important;
    scroll-snap-type: none !important;
  }

  body.ap-mobile-adapter-on .ap-floor-row .ap-choice,
  body.ap-mobile-adapter-on .ap-floor-row .ap-choice--floor {
    min-width: 0 !important;
    min-height: 64px;
    padding: 8px 7px;
    border-radius: 15px;
    scroll-snap-align: none;
  }

  body.ap-mobile-adapter-on .ap-floor-row .ap-choice--floor strong {
    font-size: .9rem;
    line-height: 1.08;
  }

  body.ap-mobile-adapter-on #saveFloorBtn,
  body.ap-mobile-adapter-on #saveElevatorBtn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin-top: 4px;
    padding: 12px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: .96rem;
    line-height: 1.15;
    white-space: normal;
  }

  body.ap-mobile-adapter-on .ap-elevator-detail-block {
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  body.ap-mobile-adapter-on .ap-elevator-size-row,
  body.ap-mobile-adapter-on .ap-elevator-type-row,
  body.ap-mobile-adapter-on .ap-elevator-row {
    gap: 8px;
    margin-bottom: 10px;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on .ap-stage[data-stage="3"] h3 {
    font-size: clamp(1.1rem, 6vw, 1.38rem);
  }

  body.ap-mobile-adapter-on .ap-stage[data-stage="3"] .ap-stage-head p {
    font-size: .84rem;
    line-height: 1.3;
  }

  body.ap-mobile-adapter-on .ap-access-block {
    padding: 10px;
    border-radius: 16px;
  }

  body.ap-mobile-adapter-on .ap-floor-row {
    gap: 7px !important;
  }

  body.ap-mobile-adapter-on .ap-floor-row .ap-choice,
  body.ap-mobile-adapter-on .ap-floor-row .ap-choice--floor {
    min-height: 58px;
    padding: 7px 6px;
    border-radius: 14px;
  }

  body.ap-mobile-adapter-on .ap-floor-row .ap-choice--floor strong {
    font-size: .82rem;
  }

  body.ap-mobile-adapter-on #saveFloorBtn,
  body.ap-mobile-adapter-on #saveElevatorBtn {
    min-height: 46px;
    border-radius: 15px;
    font-size: .92rem;
  }
}

/* Patch 141: mobilní zklidnění doplňkových služeb. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-services-compact {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px;
    border-radius: 16px;
    overflow: hidden;
  }

  body.ap-mobile-adapter-on .ap-services-compact .ap-services-note {
    display: block;
    max-width: 100%;
    margin: 0 0 9px;
    font-size: .86rem;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.ap-mobile-adapter-on .ap-services-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 8px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  body.ap-mobile-adapter-on .ap-services-row .ap-choice {
    min-width: 0 !important;
    width: 100%;
    min-height: 70px;
    padding: 8px 6px;
    border-radius: 14px;
    gap: 2px;
    scroll-snap-align: none;
  }

  body.ap-mobile-adapter-on .ap-services-row .ap-choice .choice-icon {
    font-size: 1rem;
    line-height: 1;
  }

  body.ap-mobile-adapter-on .ap-services-row .ap-choice strong {
    font-size: .78rem;
    line-height: 1.05;
    letter-spacing: -.015em;
  }

  body.ap-mobile-adapter-on .ap-services-row .ap-choice small {
    font-size: .66rem;
    line-height: 1.05;
    margin-top: 1px;
  }

  body.ap-mobile-adapter-on .ap-services-row .ap-choice[data-service="no_owner"] strong {
    font-size: .62rem;
    line-height: 1.02;
  }

  body.ap-mobile-adapter-on #saveServicesBtn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    height: auto;
    margin-top: 2px;
    padding: 12px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: .96rem;
    line-height: 1.15;
    white-space: normal;
    overflow: visible;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on .ap-services-compact {
    padding: 9px;
    border-radius: 15px;
  }

  body.ap-mobile-adapter-on .ap-services-compact .ap-services-note {
    font-size: .8rem;
    line-height: 1.25;
  }

  body.ap-mobile-adapter-on .ap-services-row {
    gap: 7px !important;
  }

  body.ap-mobile-adapter-on .ap-services-row .ap-choice {
    min-height: 64px;
    padding: 7px 5px;
    border-radius: 13px;
  }

  body.ap-mobile-adapter-on .ap-services-row .ap-choice .choice-icon {
    font-size: .92rem;
  }

  body.ap-mobile-adapter-on .ap-services-row .ap-choice strong {
    font-size: .72rem;
  }

  body.ap-mobile-adapter-on .ap-services-row .ap-choice small {
    font-size: .6rem;
  }

  body.ap-mobile-adapter-on #saveServicesBtn {
    min-height: 46px;
    border-radius: 15px;
    font-size: .92rem;
  }
}


/* Patch 142: mobilní zklidnění výsledku ceny. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-result-stage {
    overflow: visible;
  }

  body.ap-mobile-adapter-on .ap-result-shell {
    margin: 0 0 22px;
    padding: 18px 12px 20px;
    border-radius: 22px;
    text-align: center;
    overflow: hidden;
  }

  body.ap-mobile-adapter-on .ap-price-main {
    max-width: 100%;
    margin: 0 auto 14px;
    font-size: clamp(2.25rem, 13.5vw, 3.9rem);
    line-height: .98;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
  }

  body.ap-mobile-adapter-on .ap-breakdown-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 18px;
    padding: 14px;
    border-radius: 18px;
    text-align: left;
  }

  body.ap-mobile-adapter-on .ap-breakdown-row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: start;
    padding: 10px 0;
    font-size: .96rem;
    line-height: 1.28;
    border-bottom: 1px solid rgba(226, 232, 240, .85);
  }

  body.ap-mobile-adapter-on .ap-breakdown-row:last-child {
    border-bottom: 0;
  }

  body.ap-mobile-adapter-on .ap-breakdown-row > * {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.ap-mobile-adapter-on .ap-breakdown-row strong {
    display: block;
    margin-top: 2px;
    font-size: .98rem;
    line-height: 1.2;
  }

  body.ap-mobile-adapter-on .ap-old-price {
    display: inline-block;
    margin-right: 8px;
    color: #9ca3af;
    font-weight: 850;
    white-space: nowrap;
  }

  body.ap-mobile-adapter-on .ap-free-badge {
    display: inline-flex;
    width: fit-content;
    margin: 5px 0 0;
    padding: .24rem .68rem;
    font-size: .78rem;
    line-height: 1;
    vertical-align: middle;
  }

  body.ap-mobile-adapter-on .ap-tech-title {
    margin: 16px 0 10px;
    font-size: clamp(1.35rem, 8vw, 2.05rem);
    line-height: 1.05;
    letter-spacing: -.025em;
  }

  body.ap-mobile-adapter-on .ap-vehicle-card {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
  }

  body.ap-mobile-adapter-on .ap-vehicle-head {
    gap: 10px;
    font-size: .98rem;
    line-height: 1.2;
  }

  body.ap-mobile-adapter-on .ap-vehicle-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1.35rem;
    flex: 0 0 auto;
  }

  body.ap-mobile-adapter-on .ap-vehicle-desc {
    margin: 9px 0;
    font-size: .86rem;
    line-height: 1.3;
  }

  body.ap-mobile-adapter-on .ap-progressbar {
    height: 9px;
  }

  body.ap-mobile-adapter-on .ap-vehicle-price {
    margin-top: 9px;
    font-size: 1rem;
    line-height: 1.2;
  }

  body.ap-mobile-adapter-on .ap-result-actions {
    margin-top: 16px;
    gap: 9px;
  }

  body.ap-mobile-adapter-on .ap-result-actions .ap-btn {
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 15px;
    font-size: .9rem;
    line-height: 1.15;
  }

  body.ap-mobile-adapter-on .ap-thanks-mini {
    margin-top: 12px;
    font-size: .86rem;
    line-height: 1.3;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on .ap-result-shell {
    padding: 16px 10px 18px;
    border-radius: 20px;
  }

  body.ap-mobile-adapter-on .ap-price-main {
    font-size: clamp(2.05rem, 12.8vw, 3.35rem);
    margin-bottom: 12px;
  }

  body.ap-mobile-adapter-on .ap-breakdown-card {
    padding: 12px;
    border-radius: 16px;
  }

  body.ap-mobile-adapter-on .ap-breakdown-row {
    padding: 9px 0;
    font-size: .9rem;
  }

  body.ap-mobile-adapter-on .ap-breakdown-row strong {
    font-size: .92rem;
  }

  body.ap-mobile-adapter-on .ap-free-badge {
    font-size: .72rem;
  }

  body.ap-mobile-adapter-on .ap-tech-title {
    font-size: clamp(1.22rem, 7.3vw, 1.75rem);
  }

  body.ap-mobile-adapter-on .ap-vehicle-card {
    padding: 12px;
    border-radius: 16px;
  }
}


/* Patch 143: další zmenšení hlavní výsledné ceny na mobilu. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-price-main {
    font-size: clamp(1.9rem, 11.2vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    margin-bottom: 10px;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on .ap-price-main {
    font-size: clamp(1.72rem, 10.2vw, 2.75rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    margin-bottom: 9px;
  }
}


/* Patch 144: další jemné snížení hlavní výsledné ceny o cca 5 % na mobilu. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-price-main {
    font-size: clamp(1.8rem, 10.65vw, 3rem);
    line-height: 1.04;
    letter-spacing: -.035em;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on .ap-price-main {
    font-size: clamp(1.63rem, 9.7vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -.03em;
  }
}


/* Patch 145: další zmenšení výsledné ceny na mobilu o cca 5 %. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-price-main {
    font-size: clamp(1.71rem, 10.1vw, 2.85rem);
    line-height: 1.05;
    letter-spacing: -.032em;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on .ap-price-main {
    font-size: clamp(1.55rem, 9.2vw, 2.47rem);
    line-height: 1.06;
    letter-spacing: -.028em;
  }
}


/* Patch 146: skrytí duplicitního základního výpočtu v mobilním výsledku. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-breakdown-card .ap-breakdown-row:first-child {
    display: none !important;
  }

  body.ap-mobile-adapter-on .ap-breakdown-card .ap-breakdown-row:nth-child(2) {
    padding-top: 0;
  }
}


/* Patch 147: zmenšení zelených hero štítků na mobilu. */
@media (max-width: 760px) {
  .ap-badges {
    gap: 8px;
    margin: 14px 0 12px;
  }

  .ap-badges span {
    min-height: 0;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .92rem;
    line-height: 1.12;
    letter-spacing: -.01em;
  }
}

@media (max-width: 420px) {
  .ap-badges {
    gap: 7px;
    margin: 12px 0 10px;
  }

  .ap-badges span {
    padding: 7px 10px;
    font-size: .82rem;
    line-height: 1.1;
  }
}


/* Patch 148: zmenšení hero H1 na mobilu o cca 10 %. */
@media (max-width: 760px) {
  .ap-hero h1 {
    font-size: clamp(2.12rem, 10.8vw, 3.6rem);
    line-height: .99;
  }
}

@media (max-width: 420px) {
  .ap-hero h1 {
    font-size: clamp(2rem, 10.2vw, 3.35rem);
  }
}


/* Patch 149: zmenšení celé hero oblasti na mobilu o cca 15 %. */
@media (max-width: 760px) {
  .ap-hero {
    padding-top: 30px;
    padding-bottom: 26px;
  }

  .ap-hero-kicker,
  .ap-kicker {
    font-size: .85rem;
    line-height: 1.15;
    letter-spacing: .09em;
    margin-bottom: 10px;
  }

  .ap-hero h1 {
    font-size: clamp(1.8rem, 9.15vw, 3.05rem);
    line-height: 1.01;
    letter-spacing: -.045em;
    margin-bottom: 14px;
  }

  .ap-hero .ap-hero-lead {
    font-size: clamp(1.05rem, 4.42vw, 1.4rem);
    line-height: 1.42;
    margin-bottom: 18px;
  }

  .ap-hero-actions {
    margin-top: 16px;
    gap: 10px;
  }

  .ap-hero-actions .ap-btn,
  .ap-hero-start {
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: .98rem;
    line-height: 1.15;
  }

  .ap-hero-note,
  .ap-hero-subnote {
    margin-top: 12px;
    font-size: .86rem;
    line-height: 1.25;
  }

  .ap-badges {
    gap: 7px;
    margin: 10px 0 9px;
  }

  .ap-badges span {
    padding: 6px 10px;
    font-size: .78rem;
    line-height: 1.08;
  }

  .ap-hero-footnote,
  .ap-hero-smallprint {
    font-size: .92rem;
    line-height: 1.38;
  }
}

@media (max-width: 420px) {
  .ap-hero {
    padding-top: 26px;
    padding-bottom: 22px;
  }

  .ap-hero-kicker,
  .ap-kicker {
    font-size: .76rem;
    letter-spacing: .08em;
    margin-bottom: 9px;
  }

  .ap-hero h1 {
    font-size: clamp(1.7rem, 8.65vw, 2.85rem);
    line-height: 1.02;
  }

  .ap-hero .ap-hero-lead {
    font-size: clamp(.98rem, 4.05vw, 1.25rem);
    line-height: 1.4;
  }

  .ap-hero-actions .ap-btn,
  .ap-hero-start {
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 17px;
    font-size: .92rem;
  }

  .ap-hero-note,
  .ap-hero-subnote {
    font-size: .8rem;
  }

  .ap-badges span {
    padding: 6px 9px;
    font-size: .7rem;
  }

  .ap-hero-footnote,
  .ap-hero-smallprint {
    font-size: .84rem;
  }
}


/* Patch 150: detailní mobilní optimalizace celé stránky. */
@media (max-width: 760px) {
  .ap-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ap-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .ap-section-head {
    margin-bottom: 18px;
  }

  .ap-section-head .ap-kicker,
  .ap-kicker {
    font-size: .72rem;
    line-height: 1.16;
    letter-spacing: .075em;
  }

  .ap-section-head h2,
  .ap-calc-intro h2,
  .ap-seo h2,
  .ap-geo h2,
  .ap-faq h2 {
    font-size: clamp(1.42rem, 6.65vw, 2rem);
    line-height: 1.1;
    letter-spacing: -.035em;
    margin-bottom: 12px;
  }

  .ap-section-head p,
  .ap-calc-intro p,
  .ap-seo .ap-section-head p,
  .ap-geo p,
  .ap-faq p {
    font-size: .93rem;
    line-height: 1.42;
  }

  .ap-hero {
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .ap-hero-grid {
    gap: 24px;
  }

  .ap-hero .ap-kicker {
    margin-bottom: 8px;
    font-size: .7rem;
    letter-spacing: .075em;
  }

  .ap-hero h1 {
    font-size: clamp(1.48rem, 7.78vw, 2.55rem);
    line-height: 1.03;
    letter-spacing: -.04em;
    margin-bottom: 12px;
  }

  .ap-hero .ap-hero-lead {
    font-size: clamp(.9rem, 3.9vw, 1.14rem);
    line-height: 1.38;
    margin-bottom: 14px;
  }

  .ap-hero-actions {
    margin-top: 13px;
    gap: 8px;
  }

  .ap-hero-actions .ap-btn,
  .ap-hero-start,
  .ap-hero-main-cta {
    min-height: 43px;
    padding: 10px 16px;
    border-radius: 15px;
    font-size: .86rem;
    line-height: 1.12;
  }

  .ap-hero-microcopy {
    font-size: .8rem;
    line-height: 1.24;
  }

  .ap-badges {
    gap: 6px;
    margin: 9px 0 8px;
  }

  .ap-badges span {
    padding: 5px 9px;
    font-size: .7rem;
    line-height: 1.08;
    border-width: 1px;
  }

  .ap-price-note {
    margin-top: 11px;
    font-size: .86rem;
    line-height: 1.36;
  }

  .ap-hero-card {
    padding: 18px;
    border-radius: 20px;
  }

  .ap-hero-card strong {
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .ap-hero-card ul {
    margin: 14px 0 16px;
    padding-left: 20px;
  }

  .ap-hero-card li {
    margin-bottom: 8px;
    font-size: .9rem;
    line-height: 1.34;
  }

  .ap-mini-cta {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 17px;
    font-size: .88rem;
    line-height: 1.12;
  }

  .ap-wizard-section {
    padding-top: 34px;
  }

  .ap-calc-intro {
    margin-bottom: 16px;
  }

  .ap-calc-intro .ap-kicker {
    margin-bottom: 5px;
  }

  body.ap-mobile-adapter-on .ap-calc-shell {
    padding: 8px 8px 12px;
    border-radius: 20px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress {
    padding: 8px;
    margin-bottom: 9px;
    border-radius: 15px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-head {
    margin-bottom: 6px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-head span {
    font-size: .66rem;
    letter-spacing: .055em;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-head strong {
    font-size: .78rem;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-bar {
    height: 4px;
    margin-bottom: 7px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chips {
    gap: 5px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chip {
    min-width: 62px;
    padding: 5px 6px;
    gap: 5px;
    border-radius: 12px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chip.is-current {
    min-width: 84px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-num {
    width: 18px;
    height: 18px;
    font-size: .62rem;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chip strong {
    font-size: .66rem;
    line-height: 1.05;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chip small {
    display: none;
  }

  body.ap-mobile-adapter-on .ap-stage {
    padding-top: 12px;
  }

  body.ap-mobile-adapter-on .ap-stage-head {
    gap: 8px;
    margin-bottom: 11px;
  }

  body.ap-mobile-adapter-on .ap-stage-num {
    width: 28px;
    height: 28px;
    font-size: .86rem;
  }

  body.ap-mobile-adapter-on .ap-stage h2,
  body.ap-mobile-adapter-on .ap-stage h3,
  body.ap-mobile-adapter-on .ap-stage-title {
    font-size: clamp(1.14rem, 5.8vw, 1.42rem);
    line-height: 1.1;
  }

  body.ap-mobile-adapter-on .ap-stage-head p,
  body.ap-mobile-adapter-on .ap-stage > p,
  body.ap-mobile-adapter-on .ap-stage .ap-helper {
    font-size: .84rem;
    line-height: 1.32;
  }

  body.ap-mobile-adapter-on .ap-option-grid,
  body.ap-mobile-adapter-on .ap-apartment-grid {
    gap: 8px;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice {
    min-height: 64px;
    padding: 8px 10px;
    border-radius: 15px;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice .choice-icon {
    font-size: 1rem;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice strong {
    font-size: .9rem;
    line-height: 1.1;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice small {
    font-size: .72rem;
  }

  body.ap-mobile-adapter-on .ap-next,
  body.ap-mobile-adapter-on #saveApartmentBtn,
  body.ap-mobile-adapter-on #saveScopeBtn,
  body.ap-mobile-adapter-on #saveFloorBtn,
  body.ap-mobile-adapter-on #saveParkingBtn,
  body.ap-mobile-adapter-on #saveServicesBtn {
    min-height: 43px;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: .88rem;
    line-height: 1.12;
  }

  .ap-seo,
  .ap-geo,
  .ap-faq {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .ap-seo-table {
    gap: 10px;
  }

  .ap-seo-table div {
    padding: 15px 16px;
    border-radius: 17px;
  }

  .ap-seo-table strong {
    font-size: .98rem;
    line-height: 1.18;
  }

  .ap-seo-table span {
    margin-top: 7px;
    font-size: .88rem;
    line-height: 1.32;
  }

  .ap-geo-grid {
    gap: 18px;
  }

  .ap-geo p {
    margin-bottom: 13px;
  }

  .ap-localities {
    gap: 7px;
  }

  .ap-localities span {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .82rem;
    line-height: 1.08;
  }

  .ap-faq-grid {
    gap: 10px;
  }

  .ap-faq details {
    padding: 15px 16px;
    border-radius: 17px;
  }

  .ap-faq summary {
    font-size: .92rem;
    line-height: 1.22;
  }

  .ap-faq details[open] summary {
    margin-bottom: 10px;
  }

  .ap-faq p {
    font-size: .86rem;
    line-height: 1.38;
  }
}

@media (max-width: 420px) {
  .ap-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ap-section,
  .ap-seo,
  .ap-geo,
  .ap-faq {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .ap-hero {
    padding-top: 19px;
    padding-bottom: 24px;
  }

  .ap-hero .ap-kicker,
  .ap-section-head .ap-kicker,
  .ap-kicker {
    font-size: .64rem;
    letter-spacing: .07em;
  }

  .ap-hero h1 {
    font-size: clamp(1.38rem, 7.15vw, 2.18rem);
    line-height: 1.04;
    margin-bottom: 10px;
  }

  .ap-hero .ap-hero-lead {
    font-size: clamp(.84rem, 3.65vw, 1.02rem);
    line-height: 1.36;
  }

  .ap-hero-actions .ap-btn,
  .ap-hero-start,
  .ap-hero-main-cta {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 14px;
    font-size: .8rem;
  }

  .ap-hero-microcopy {
    font-size: .74rem;
  }

  .ap-badges span {
    padding: 5px 8px;
    font-size: .64rem;
  }

  .ap-price-note {
    font-size: .8rem;
    line-height: 1.34;
  }

  .ap-hero-card {
    padding: 16px;
    border-radius: 18px;
  }

  .ap-hero-card strong {
    font-size: .98rem;
  }

  .ap-hero-card li {
    font-size: .84rem;
    line-height: 1.32;
  }

  .ap-mini-cta {
    min-height: 40px;
    font-size: .82rem;
  }

  .ap-section-head h2,
  .ap-calc-intro h2,
  .ap-seo h2,
  .ap-geo h2,
  .ap-faq h2 {
    font-size: clamp(1.3rem, 6.1vw, 1.75rem);
    line-height: 1.1;
  }

  .ap-section-head p,
  .ap-calc-intro p,
  .ap-seo .ap-section-head p,
  .ap-geo p,
  .ap-faq p {
    font-size: .84rem;
    line-height: 1.36;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chip {
    min-width: 48px;
    padding: 5px 6px;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chip:not(.is-current) strong {
    display: none;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chip.is-current {
    min-width: 78px;
  }

  body.ap-mobile-adapter-on .ap-stage h2,
  body.ap-mobile-adapter-on .ap-stage h3,
  body.ap-mobile-adapter-on .ap-stage-title {
    font-size: clamp(1.06rem, 5.35vw, 1.32rem);
  }

  body.ap-mobile-adapter-on .ap-stage-head p,
  body.ap-mobile-adapter-on .ap-stage > p,
  body.ap-mobile-adapter-on .ap-stage .ap-helper {
    font-size: .78rem;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice {
    min-height: 60px;
    padding: 7px 9px;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice strong {
    font-size: .84rem;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice small {
    font-size: .68rem;
  }

  body.ap-mobile-adapter-on .ap-next,
  body.ap-mobile-adapter-on #saveApartmentBtn,
  body.ap-mobile-adapter-on #saveScopeBtn,
  body.ap-mobile-adapter-on #saveFloorBtn,
  body.ap-mobile-adapter-on #saveParkingBtn,
  body.ap-mobile-adapter-on #saveServicesBtn {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: .82rem;
  }

  .ap-seo-table div,
  .ap-faq details {
    padding: 13px 14px;
    border-radius: 15px;
  }

  .ap-seo-table strong,
  .ap-faq summary {
    font-size: .86rem;
  }

  .ap-seo-table span,
  .ap-faq p {
    font-size: .78rem;
  }

  .ap-localities span {
    padding: 6px 9px;
    font-size: .76rem;
  }
}


/* Patch 151: mobilní dvousloupcový výběr velikosti bytu bez ikon. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-apartment-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice {
    min-width: 0 !important;
    width: 100%;
    min-height: 58px;
    padding: 9px 7px;
    border-radius: 14px;
    gap: 1px;
    text-align: center;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice .choice-icon {
    display: none !important;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice strong {
    font-size: .83rem;
    line-height: 1.08;
    letter-spacing: -.012em;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice small {
    margin-top: 2px;
    font-size: .68rem;
    line-height: 1.05;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice--custom-apartment {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(72%, 240px);
    min-height: 56px;
    margin-top: 2px;
    border-style: dashed;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice--custom-apartment strong {
    font-size: .82rem;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice--custom-apartment small {
    font-size: .66rem;
  }

  body.ap-mobile-adapter-on .ap-custom-apartment-panel {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 2px;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on .ap-apartment-grid {
    gap: 7px !important;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice {
    min-height: 54px;
    padding: 8px 6px;
    border-radius: 13px;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice strong {
    font-size: .78rem;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice small {
    font-size: .63rem;
  }

  body.ap-mobile-adapter-on .ap-apartment-grid .ap-choice--custom-apartment {
    width: min(76%, 220px);
    min-height: 52px;
  }
}


/* Patch 152: mobilní progress přes šířku displeje. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-calc-shell {
    overflow: visible;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    margin-left: calc(50% - 50vw + 10px);
    margin-right: calc(50% - 50vw + 10px);
    box-sizing: border-box;
  }

  body.ap-mobile-adapter-on .ap-mobile-progress-chips {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on .ap-mobile-progress {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    margin-left: calc(50% - 50vw + 8px);
    margin-right: calc(50% - 50vw + 8px);
  }
}


/* Patch 153: mobilní dvousloupcový rozsah vyklízení. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-scope-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
  }

  body.ap-mobile-adapter-on .ap-scope-grid .ap-choice {
    min-width: 0 !important;
    width: 100%;
    min-height: 58px;
    padding: 9px 7px;
    border-radius: 14px;
    gap: 1px;
    text-align: center;
  }

  body.ap-mobile-adapter-on .ap-scope-grid .ap-choice .choice-icon {
    display: none !important;
  }

  body.ap-mobile-adapter-on .ap-scope-grid .ap-choice strong {
    font-size: .83rem;
    line-height: 1.08;
    letter-spacing: -.012em;
  }

  body.ap-mobile-adapter-on .ap-scope-grid .ap-choice small {
    margin-top: 2px;
    font-size: .68rem;
    line-height: 1.05;
  }

  body.ap-mobile-adapter-on .ap-scope-grid .ap-choice[data-scope="custom"] {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(72%, 240px);
    min-height: 56px;
    margin-top: 2px;
    border-style: dashed;
  }

  body.ap-mobile-adapter-on .ap-scope-grid .ap-choice[data-scope="custom"] strong {
    font-size: .82rem;
  }

  body.ap-mobile-adapter-on .ap-scope-grid .ap-choice[data-scope="custom"] small {
    font-size: .66rem;
  }

  body.ap-mobile-adapter-on #customItemsBlock {
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on .ap-scope-grid {
    gap: 7px !important;
  }

  body.ap-mobile-adapter-on .ap-scope-grid .ap-choice {
    min-height: 54px;
    padding: 8px 6px;
    border-radius: 13px;
  }

  body.ap-mobile-adapter-on .ap-scope-grid .ap-choice strong {
    font-size: .78rem;
  }

  body.ap-mobile-adapter-on .ap-scope-grid .ap-choice small {
    font-size: .63rem;
  }

  body.ap-mobile-adapter-on .ap-scope-grid .ap-choice[data-scope="custom"] {
    width: min(76%, 220px);
    min-height: 52px;
  }
}

/* Patch 154: na mobilu po prvním kroku skrýt úvodní obsah a nechat fokus na kalkulačce. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on.ap-mobile-after-first-step .ap-hero,
  body.ap-mobile-adapter-on.ap-mobile-after-first-step .ap-calc-intro {
    display: none !important;
  }

  body.ap-mobile-adapter-on.ap-mobile-after-first-step .ap-wizard-section {
    padding-top: 8px !important;
  }

  body.ap-mobile-adapter-on.ap-mobile-after-first-step .ap-wizard-section .ap-container {
    padding-top: 0 !important;
  }

  body.ap-mobile-adapter-on.ap-mobile-after-first-step .ap-calc-shell {
    margin-top: 0 !important;
  }
}


/* Patch 157: mobilní dvousloupcové rozložení parkování. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on #parkingStepBlock .ap-parking-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    width: 100%;
    max-width: 100%;
    gap: 8px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  body.ap-mobile-adapter-on #parkingStepBlock .ap-parking-row .ap-choice {
    min-width: 0 !important;
    width: 100%;
    min-height: 58px;
    padding: 8px 7px;
    border-radius: 14px;
    gap: 2px;
    scroll-snap-align: none;
  }

  body.ap-mobile-adapter-on #parkingStepBlock .ap-parking-row .ap-choice .choice-icon {
    display: none !important;
  }

  body.ap-mobile-adapter-on #parkingStepBlock .ap-parking-row .ap-choice strong {
    font-size: .82rem;
    line-height: 1.08;
    letter-spacing: -.015em;
  }

  body.ap-mobile-adapter-on #parkingStepBlock .ap-parking-row .ap-choice small {
    margin-top: 2px;
    font-size: .68rem;
    line-height: 1.08;
  }

  body.ap-mobile-adapter-on #parkingStepBlock .ap-parking-row .ap-choice[data-parking="500plus"] {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(58%, 190px);
  }

  body.ap-mobile-adapter-on #parkingStepBlock h4 {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.12;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on #parkingStepBlock .ap-parking-row {
    gap: 7px !important;
  }

  body.ap-mobile-adapter-on #parkingStepBlock .ap-parking-row .ap-choice {
    min-height: 54px;
    padding: 7px 6px;
    border-radius: 13px;
  }

  body.ap-mobile-adapter-on #parkingStepBlock .ap-parking-row .ap-choice strong {
    font-size: .76rem;
  }

  body.ap-mobile-adapter-on #parkingStepBlock .ap-parking-row .ap-choice small {
    font-size: .62rem;
  }

  body.ap-mobile-adapter-on #parkingStepBlock .ap-parking-row .ap-choice[data-parking="500plus"] {
    width: min(62%, 180px);
  }
}


/* Patch 159: ve výsledku ceny už na mobilu nezobrazovat průběh poptávky. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on.ap-mobile-result-visible .ap-mobile-progress {
    display: none !important;
  }

  body.ap-mobile-adapter-on.ap-mobile-result-visible .ap-result-stage {
    padding-top: 0;
  }
}


/* Patch 160: po kliknutí na hero CTA na mobilu skrýt intro "Kalkulačka ceny" a nechat fokus rovnou na kalkulačce. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on.ap-hero-is-hidden .ap-calc-intro {
    display: none !important;
  }

  body.ap-mobile-adapter-on.ap-hero-is-hidden .ap-wizard-section {
    padding-top: 8px !important;
  }

  body.ap-mobile-adapter-on.ap-hero-is-hidden .ap-wizard-section .ap-container {
    padding-top: 0 !important;
  }

  body.ap-mobile-adapter-on.ap-hero-is-hidden .ap-calc-shell {
    margin-top: 0 !important;
  }
}


/* Patch 162: na mobilu během kalkulace skrýt SEO/ceník/lokality/FAQ a zobrazit je až po výpočtu. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on:not(.ap-mobile-result-visible) .ap-seo,
  body.ap-mobile-adapter-on:not(.ap-mobile-result-visible) .ap-geo,
  body.ap-mobile-adapter-on:not(.ap-mobile-result-visible) .ap-faq {
    display: none !important;
  }

  body.ap-mobile-adapter-on.ap-mobile-result-visible .ap-seo,
  body.ap-mobile-adapter-on.ap-mobile-result-visible .ap-geo,
  body.ap-mobile-adapter-on.ap-mobile-result-visible .ap-faq {
    display: block;
  }
}


/* Patch 163: hlavní cenové rozpětí ve výsledku na mobilu držet v jednom řádku. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-price-main {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    font-size: clamp(1.38rem, 7.7vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on .ap-price-main {
    font-size: clamp(1.26rem, 7.15vw, 1.92rem);
    letter-spacing: -.032em;
  }
}

@media (max-width: 360px) {
  body.ap-mobile-adapter-on .ap-price-main {
    font-size: clamp(1.18rem, 6.85vw, 1.72rem);
    letter-spacing: -.03em;
  }
}


/* Patch 164: mobilní 2sloupcové srovnání hero štítků. */
@media (max-width: 760px) {
  .ap-badges {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    max-width: 100%;
    margin: 10px 0 10px;
    align-items: stretch;
  }

  .ap-badges span {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    padding: 6px 8px;
    font-size: .72rem;
    line-height: 1.12;
  }
}

@media (max-width: 420px) {
  .ap-badges {
    gap: 6px;
    margin: 9px 0 9px;
  }

  .ap-badges span {
    min-height: 32px;
    padding: 5px 7px;
    font-size: .66rem;
    line-height: 1.1;
  }
}


/* Patch 165: mobilní zalomení prvního hero štítku na dva řádky. */
@media (max-width: 760px) {
  .ap-badges .ap-badge-price-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    line-height: 1.08;
    white-space: normal;
  }

  .ap-badges .ap-badge-price-split span {
    display: block;
  }
}


/* Patch 166: oprava prvního hero štítku - jeden štítek, dva řádky textu uvnitř. */
@media (max-width: 760px) {
  .ap-badges > span {
    display: inline-flex !important;
  }

  .ap-badges > .ap-badge-price-split {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    min-height: 38px;
    line-height: 1.08;
  }

  .ap-badges > .ap-badge-price-split > span {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
    line-height: 1.08 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 420px) {
  .ap-badges > .ap-badge-price-split {
    min-height: 36px;
  }

  .ap-badges > .ap-badge-price-split > span {
    line-height: 1.07 !important;
  }
}


/* Patch 168: udržení řádku „likvidace: ZAHRNUTO“ v mobilním výsledku. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-breakdown-card .ap-breakdown-row:nth-child(2) {
    display: block !important;
    font-size: .88rem;
    line-height: 1.28;
    padding-top: 0;
  }

  body.ap-mobile-adapter-on .ap-breakdown-card .ap-breakdown-row:nth-child(2) span {
    display: inline;
    overflow-wrap: normal;
    word-break: normal;
  }

  body.ap-mobile-adapter-on .ap-breakdown-card .ap-breakdown-row:nth-child(2) strong {
    display: inline;
    margin: 0 0 0 4px;
    font-size: .88rem;
    line-height: 1.28;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  body.ap-mobile-adapter-on .ap-breakdown-card .ap-breakdown-row:nth-child(2) {
    font-size: .82rem;
  }

  body.ap-mobile-adapter-on .ap-breakdown-card .ap-breakdown-row:nth-child(2) strong {
    font-size: .82rem;
  }
}


/* Patch 170: na mobilu ve výsledku nezobrazovat SEO/ceník/lokalita/FAQ bloky a přesunout CTA až za srovnání. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-seo,
  body.ap-mobile-adapter-on .ap-geo,
  body.ap-mobile-adapter-on .ap-faq {
    display: none !important;
  }

  body.ap-mobile-adapter-on.ap-mobile-result-visible .ap-result-shell .ap-result-actions {
    display: none !important;
  }
}


/* Patch 171: mobilní CTA mezi výsledkem ceny a srovnáním konkurence. */
.ap-mobile-between-result-compare-actions {
  display: none;
}

@media (max-width: 760px) {
  body.ap-mobile-adapter-on.ap-mobile-result-visible .ap-mobile-between-result-compare-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 12px 0 16px;
    padding: 0 2px;
  }

  body.ap-mobile-adapter-on.ap-mobile-result-visible .ap-mobile-between-result-compare-actions .ap-btn {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 15px;
    font-size: .9rem;
    line-height: 1.15;
    text-align: center;
  }
}


/* Patch 172: mobilní styl pro individuálně naceněné doplňkové služby. */
@media (max-width: 760px) {
  body.ap-mobile-adapter-on .ap-individual-badge {
    display: inline-flex;
    width: fit-content;
    margin: 5px 0 0;
    padding: .24rem .68rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: .72rem;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
  }
}


/* Patch 177: mobilní jistota pro první hero štítek se dvěma řádky uvnitř jednoho prvku. */
@media (max-width: 760px) {
  .ap-badges > .ap-badge-price-split {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    min-height: 38px;
  }

  .ap-badges > .ap-badge-price-split > em,
  .ap-badges > .ap-badge-price-split > span {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
    font-style: normal !important;
    line-height: 1.08 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 420px) {
  .ap-badges > .ap-badge-price-split {
    min-height: 36px;
  }
}
