/*
 * Pricing page responsive layout — 14 August 2026
 * All visual changes are limited to widths below 1024px so the established
 * desktop layout remains unchanged.
 */

@media (max-width: 1023px) {
  .hero {
    padding: 42px 0 36px;
  }

  .hero h1 {
    max-width: 760px;
    margin-bottom: 16px;
    font-size: clamp(42px, 6.2vw, 60px);
    line-height: 1;
    letter-spacing: -0.045em;
    text-wrap: balance;
  }

  .hero .lead {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: 18px;
    line-height: 1.55;
  }

  .hero .eyebrow {
    max-width: 100%;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.28;
    letter-spacing: 0.035em;
  }

  .price-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 24px 0 0;
  }

  .price-tile {
    min-width: 0;
    padding: 14px 9px;
    border-radius: 16px;
  }

  .price-tile strong {
    font-size: clamp(20px, 3.1vw, 28px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    white-space: nowrap;
  }

  .price-tile span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.25;
  }

  .section {
    padding: 48px 0;
  }

  .section > .container.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
  }

  .card,
  .price-card {
    min-width: 0;
    padding: 22px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(4, 47, 88, 0.08);
  }

  .price-card h3,
  .card h3 {
    line-height: 1.2;
    text-wrap: balance;
  }

  .price-card .estimate-price {
    margin: 9px 0;
    font-size: clamp(27px, 3.7vw, 32px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-header h2,
  .faq > h2 {
    font-size: clamp(30px, 5.2vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }

  .section-header .lead {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.55;
  }

  .table-wrap {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 20px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
    touch-action: pan-x;
  }

  .table-wrap table {
    min-width: 720px;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 15px 16px;
    line-height: 1.45;
    vertical-align: top;
  }

  .table-wrap th {
    white-space: nowrap;
  }

  .estimate-note {
    margin-top: 16px;
    line-height: 1.5;
  }

  .faq details {
    padding: 17px 19px;
    border-radius: 18px;
  }

  .faq summary {
    padding-right: 6px;
    line-height: 1.35;
  }

  .faq details p {
    margin-top: 12px;
    line-height: 1.58;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .hero .container,
  .section > .container {
    width: min(calc(100% - 48px), 1080px);
  }

  .section > .container.grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-card .estimate-price {
    font-size: clamp(26px, 3.5vw, 31px);
  }
}

@media (max-width: 599px) {
  .hero {
    padding: 34px 0 30px;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 11.4vw, 50px);
    line-height: 1;
  }

  .hero .lead {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.55;
  }

  .price-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }

  .price-tile {
    padding: 13px 7px;
    border-radius: 15px;
  }

  .price-tile strong {
    font-size: clamp(19px, 5.8vw, 24px);
  }

  .price-tile span {
    margin-top: 5px;
    font-size: 10.5px;
  }

  .section {
    padding: 40px 0;
  }

  .section > .container.grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card,
  .price-card {
    padding: 20px;
    border-radius: 18px;
  }

  .price-card .estimate-price {
    font-size: 30px;
    overflow-wrap: normal;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-header h2,
  .faq > h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .section-header .lead {
    font-size: 16px;
  }

  .table-wrap {
    border-radius: 18px;
  }

  .table-wrap table {
    min-width: 680px;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 14px;
  }

  .faq details {
    padding: 16px 17px;
    margin-bottom: 10px;
  }
}

@media (max-width: 374px) {
  .hero h1 {
    font-size: 36px;
  }

  .price-tile strong {
    font-size: 18px;
  }

  .price-tile span {
    font-size: 10px;
  }

  .card,
  .price-card {
    padding: 18px;
  }
}