.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 76px;
  align-items: center;
  padding-block: 82px 88px;
}

.pricing-hero h1 {
  max-width: 730px;
  margin: 18px 0 24px;
}

.pricing-hero-copy > p {
  max-width: 650px;
  font-size: 18px;
}

.market-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, #f0f8f4, #fff);
  box-shadow: var(--shadow);
}

.market-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.market-card-header h2 {
  margin: 7px 0 0;
  font-size: 30px;
}

.market-badge {
  padding: 8px 11px;
  border-radius: 99px;
  background: var(--dark);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-rows {
  display: grid;
  gap: 10px;
}

.market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border: 1px solid rgba(219, 232, 227, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
}

.market-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.market-row strong {
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}

.market-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.pricing-calculator-section {
  padding-block: 108px;
  border-block: 1px solid #edf1ec;
  background: var(--paper);
}

.calculator-heading {
  max-width: 760px;
  margin-bottom: 45px;
}

.calculator-heading h2 {
  margin: 16px 0 19px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  gap: 28px;
  align-items: start;
}

.calculator-form,
.calculator-result {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(5, 46, 45, 0.065);
}

.calculator-form {
  display: grid;
  gap: 25px;
  padding: 34px;
}

.calculator-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.calculator-form legend,
.calculator-form label > span:first-child {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.calculator-form select {
  width: 100%;
  min-height: 53px;
  padding: 0 43px 0 15px;
  border: 1px solid #cbded8;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.calculator-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.extra-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 60px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf9;
  cursor: pointer;
}

.extra-option:has(input:checked) {
  border-color: #88c7b5;
  background: var(--sea-soft);
}

.extra-option input {
  margin-top: 3px;
  accent-color: var(--ink);
}

.extra-option strong,
.extra-option small {
  display: block;
}

.extra-option strong {
  color: var(--ink);
  font-size: 12px;
}

.extra-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.calculator-result {
  position: sticky;
  top: 128px;
  overflow: hidden;
}

.estimate-panel {
  padding: 35px;
  background: var(--dark);
  color: #fff;
}

.estimate-panel > span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.estimate-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 13px 0 7px;
}

.estimate-price strong {
  font-size: clamp(53px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.065em;
}

.estimate-price small {
  color: #bed4ce;
  font-size: 12px;
}

.estimate-range {
  margin: 0;
  color: #bed4ce;
  font-size: 12px;
}

.estimate-details {
  padding: 27px 30px 30px;
}

.estimate-details h3 {
  margin: 0 0 16px;
  font-size: 17px;
}

.estimate-breakdown {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.estimate-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf1ec;
  color: var(--muted);
  font-size: 11px;
}

.estimate-breakdown strong {
  color: var(--ink);
  text-align: right;
}

.estimate-disclaimer {
  margin: 0 0 20px;
  font-size: 10px;
  line-height: 1.65;
}

.estimate-details .button {
  width: 100%;
}

.price-guide-section {
  padding-block: 108px;
}

.price-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 43px;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 335px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(5, 46, 45, 0.055);
}

.price-card.featured {
  border-color: #98d0c0;
  background: linear-gradient(145deg, #edf8f4, #fff);
}

.price-card .service-icon {
  margin-bottom: 24px;
}

.price-card h3 {
  margin: 0;
  font-size: 21px;
}

.price-from {
  margin: 16px 0 12px;
  color: var(--ink);
}

.price-from small,
.price-from strong {
  display: block;
}

.price-from small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-from strong {
  margin-top: 2px;
  font-size: 36px;
  letter-spacing: -0.055em;
}

.price-card p {
  font-size: 12px;
}

.price-card .text-link {
  margin-top: auto;
}

.comparison-section {
  padding-block: 108px;
  border-block: 1px solid #edf1ec;
  background: var(--paper);
}

.comparison-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.comparison-table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 21px;
  border-bottom: 1px solid #e9f0ed;
  text-align: left;
  font-size: 12px;
}

.comparison-table th {
  background: #edf6f2;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table td:first-child {
  color: var(--ink);
  font-weight: 780;
}

.comparison-source-note {
  margin-top: 18px;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .price-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .pricing-hero,
  .calculator-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .pricing-hero { padding-block: 66px 76px; }
  .calculator-result { position: static; }
}

@media (max-width: 760px) {
  .pricing-hero,
  .pricing-calculator-section,
  .price-guide-section,
  .comparison-section { padding-block: 72px; }
  .pricing-hero-copy > p { font-size: 16px; }
  .market-card,
  .calculator-form { padding: 23px; border-radius: 23px; }
  .calculator-grid,
  .calculator-grid.two,
  .extras-grid,
  .price-card-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 0; }
  .estimate-panel { padding: 28px 24px; }
  .estimate-details { padding: 24px; }
}
