.wrapper > .footer { margin-top: 0; height: auto; }
.price-zone, .service-tools { color: #263d53; }
.price-zone { padding: 40px 0 32px; background: #fff; }
.price-zone h2, .service-tools h2 { margin: 0; color: #294461; font-size: clamp(27px, 3vw, 36px); line-height: 1.12; }
.price-zone h2::before, .service-tools h2::before {
  content: ""; display: block; width: 44px; height: 4px; margin-bottom: 12px; background: #ffcc29;
}
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-language, .tool-cards a, .service-tools .text-link { color: #365a80; text-decoration: underline; text-underline-offset: 3px; }
.section-language { flex: none; font-size: 15px; }
.price-intro { margin: 12px 0 16px; line-height: 1.45; }
.price-links { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.price-links a { padding: 8px 12px; border: 1px solid #c4d4e3; background: #f4f8fc; color: #294461; border-radius: 4px; font-weight: 700; text-decoration: none; }
.price-links a:hover, .price-links a:focus-visible { background: #294461; color: #fff; }
.rate-group { padding: 23px 0 0; }
.rate-group h3, .service-tools h3 { color: #294461; margin: 0; font-size: clamp(20px, 2.4vw, 25px); line-height: 1.2; text-transform: none; }
.rate-group > .section-heading { margin-bottom: 12px; }
.price-zone [id], .price-zone { scroll-margin-top: 52px; }
.price-zone .tariff-grid { margin: 0; width: 100%; max-width: none; overflow: visible; }
.tariff-grid table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0; table-layout: auto; font-variant-numeric: tabular-nums; }
.tariff-grid.table table thead tr th, .tariff-grid.table table tbody tr td {
  padding: 10px 14px; border: 0; height: auto; text-align: right; line-height: 1.35; background-image: none;
}
.tariff-grid.table table thead tr th { background: #365a80; color: #fff; font-size: 15px; font-weight: 700; }
.tariff-grid.table th > div { position: static; color: inherit; background: transparent; margin: 0; padding: 0; }
.tariff-grid.table table tbody tr td { border-bottom: 1px solid #d4dfe9; color: #263d53; background-color: #fff; }
.tariff-grid.table table tbody tr:nth-child(even) td { background-color: #f4f7fa; }
.tariff-grid.table table tr > :first-child { text-align: left; }
.tariff-grid.table table tr:target td { background-color: #fff1b8; }
.table-note, .price-zone .conditions p { margin: 9px 0 0; color: #40566a; line-height: 1.4; }
.category-guide { margin: 0 0 14px; background: #f3f7fb; border-left: 3px solid #4778ab; }
.category-guide summary { display: list-item; cursor: pointer; padding: 12px 14px; font-weight: 700; color: #294461; }
.category-guide summary::marker { color: #4778ab; }
.category-guide dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 22px; margin: 0; padding: 0 15px 14px; }
.category-guide dt { font-weight: 700; }
.category-guide dd { margin: 3px 0 0; line-height: 1.4; }
.price-zone .conditions { margin: 18px 0 0; }
.price-zone .conditions p { padding: 0 14px 14px; margin: 0; }
.fee-layout { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: 18px; }
.cost-example { color: #294461; background: #fff7d7; border-left: 4px solid #ffcc29; padding: 18px 20px; }
.cost-example h4 { color: #294461; font-size: 21px; line-height: 1.2; margin: 0; text-transform: none; text-align: left; }
.cost-example p { margin: 7px 0 14px; line-height: 1.35; }
.cost-example dl { margin: 0; }
.cost-example dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 0; }
.cost-example dt, .cost-example dd { font-weight: 400; margin: 0; }
.cost-example dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-example dl .cost-total { border-top: 1px solid #dfcc83; padding-top: 8px; margin-top: 5px; }
.cost-total dt, .cost-total dd { font-weight: 700; }
.cost-total dd { font-size: 24px; }
.service-tools { background: #f3f6f9; padding: 32px 0 38px; }
.tool-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin: 18px 0 24px; }
.tool-cards article { border-top: 2px solid #92acc4; padding-top: 12px; }
.tool-cards h3 { font-size: 21px; }
.tool-cards p, .test-offer p { line-height: 1.45; margin: 6px 0; }
.test-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; color: white; background: #294461; }
.test-offer > div { flex: 1 1 18rem; }
.test-offer p { text-wrap: pretty; }
.test-offer h3 { color: #fff; }
.test-offer .btn { flex: none; max-width: 100%; white-space: normal; }
.service-tools .text-link { display: inline-block; margin-top: 14px; }
.price-zone a:focus-visible, .price-zone summary:focus-visible, .service-tools a:focus-visible { outline: 2px solid #4778ab; outline-offset: 3px; }
@media (min-width: 768px) and (max-width: 1099px) {
  /* Leave room beside the phone numbers for the floating back-to-top button. */
  .footer { padding-inline: 32px; }
  html[lang="kk"] .nav-main-in > ul > li { width: 50%; }
  html[lang="kk"] .nav-main-in > ul > li:nth-child(even) > ul { left: auto; right: 0; }
}
@media (max-width: 767px) {
  .price-zone { padding: 24px 0; }
  .price-zone [id], .price-zone { scroll-margin-top: 4px; }
  .fee-layout, .category-guide dl, .tool-cards { grid-template-columns: 1fr; }
  .fee-layout { gap: 4px; }
  .category-guide dl { gap: 9px; }
  .section-language { padding-block: 9px; }
  .price-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; }
  .tariff-grid.table table tbody tr td { background-color: #fff; padding: 9px 12px; text-align: left; }
  .tariff-grid.table table tbody tr:nth-child(even) td { background-color: #fff; }
  .tariff-grid.table table tbody tr td:first-child { background-color: #365a80; color: #fff; }
  .tariff-grid.table table tbody tr:target { outline: 3px solid #ffcc29; }
  .tariff-grid.table td[data-label] .tariff-value { text-align: right; }
  .tariff-grid.table td:first-child::after { margin-top: 3px; }
  .test-offer { display: block; }
  .test-offer .btn { margin-top: 10px; min-height: 44px; align-content: center; padding-inline: 14px; }
}
