/* v2.6: mobile-first presentation for price guides and city comparison. */
@media (max-width: 700px) {
  body[data-page="prices"] .page-hero.compact,
  body[data-page="guide"] .page-hero.compact,
  body[data-page="guide-city"] .page-hero.compact,
  body[data-page="city-hub"] .page-hero.compact,
  body[data-page="city-compare"] .page-hero.compact { padding: 38px 0 30px; }

  body[data-page="prices"] .hero-lead,
  body[data-page="guide"] .hero-lead,
  body[data-page="guide-city"] .hero-lead,
  body[data-page="city-hub"] .hero-lead,
  body[data-page="city-compare"] .hero-lead { font-size: 16px; line-height: 1.55; }

  .breadcrumbs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    margin-right: -14px;
    scrollbar-width: none;
  }
  .breadcrumbs::-webkit-scrollbar { display: none; }

  .price-data-card { padding: 18px 14px; border-radius: 18px; }
  .price-data-card > h2 { font-size: 27px; }
  .price-snapshot { gap: 9px; margin: 14px 0 16px; }
  .price-snapshot > div { padding: 13px 14px; border-radius: 12px; }
  .price-snapshot strong { font-size: 1.12rem; overflow-wrap: anywhere; }
  .city-snapshot.price-health-snapshot { grid-template-columns: 1fr; }

  .city-price-health { padding: 12px 13px; border-radius: 12px; }
  .city-price-health small { font-size: 12px; }
  .price-scope-box { margin: 14px 0; padding: 14px 14px 14px 15px; }
  .price-scope-box p { font-size: 14px; }
  .source-count-note { margin: -2px 0 14px; font-size: 12px; }

  /* Source table becomes readable cards instead of a horizontally scrolling sheet. */
  .price-table-wrap { overflow: visible; margin: 16px 0; }
  .price-source-table { display: block; min-width: 0; width: 100%; }
  .price-source-table thead { display: none; }
  .price-source-table tbody { display: grid; gap: 10px; }
  .price-source-table tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    padding: 8px 0;
    overflow: hidden;
  }
  .price-source-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    padding: 7px 11px;
    border: 0;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .price-source-table td::before {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
  }
  .price-source-table td:nth-child(1)::before { content: "Робота"; }
  .price-source-table td:nth-child(2)::before { content: "Ціна"; }
  .price-source-table td:nth-child(3)::before { content: "Джерело"; }
  .price-source-table td:nth-child(4)::before { content: "Дата"; }
  .price-source-table td strong { font-size: 14px; }
  .price-source-table td a { display: inline; overflow-wrap: anywhere; }

  .method-box { padding: 14px; border-radius: 12px; }
  .method-box p { font-size: 13px; line-height: 1.55; }
  .price-warning { font-size: 12px; line-height: 1.5; }

  .city-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }
  .city-switch > span { grid-column: 1 / -1; }
  .city-switch a { justify-content: center; text-align: center; padding: 9px 8px; }

  .city-guide-grid,
  .verified-grid { grid-template-columns: 1fr; gap: 10px; }
  .city-guide-card,
  .verified-card { padding: 16px; border-radius: 14px; }
  .city-guide-card strong { font-size: 1.25rem; overflow-wrap: anywhere; }
  .verified-card > strong { font-size: 1.08rem; overflow-wrap: anywhere; }
  .verified-card p { font-size: 13px; }
  .city-index-head { margin: 25px 0 10px; }
  .city-index-head h3 { font-size: 1.22rem; }
  .city-index-head span { font-size: 12px; }
  .city-hub-stats { gap: 9px; }
  .city-hub-stats > div { padding: 14px; }

  .compare-summary { gap: 9px; margin-bottom: 16px; }
  .compare-summary > div { padding: 14px; border-radius: 14px; }
  .compare-summary strong { font-size: 24px; }
  .compare-notice { font-size: 13px; line-height: 1.5; }

  /* City comparison becomes one card per service, with city labels inside. */
  .city-compare-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .city-compare-table { display: block; min-width: 0; width: 100%; }
  .city-compare-table thead { display: none; }
  .city-compare-table tbody { display: grid; gap: 12px; }
  .city-compare-table tr {
    display: block;
    border: 1px solid var(--border, var(--line));
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
  }
  .city-compare-table tbody th {
    display: block;
    width: auto;
    padding: 13px 13px 10px;
    border: 0;
    background: #f8fafc;
    font-size: 14px;
  }
  .city-compare-table tbody th a { display: block; }
  .city-compare-table td {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    padding: 10px 13px;
    border: 0;
    border-top: 1px solid var(--border, var(--line));
    align-items: start;
  }
  .city-compare-table td::before {
    content: attr(data-city);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    padding-top: 1px;
  }
  .compare-price { min-width: 0; gap: 3px; overflow-wrap: anywhere; }
  .compare-price strong { font-size: 13px; }
  .compare-price small { font-size: 10.5px; }
  .compare-empty { font-size: 12px; }

  .seo-links { display: grid; gap: 8px; }
  .seo-links a { overflow-wrap: anywhere; }
}

@media (max-width: 390px) {
  .city-switch { grid-template-columns: 1fr; }
  .price-source-table td { grid-template-columns: 72px minmax(0, 1fr); }
  .city-compare-table td { grid-template-columns: 62px minmax(0, 1fr); }
}
