:root {
  --ink: #211936;
  --muted: #655f73;
  --purple: #5f27cd;
  --purple-dark: #431c91;
  --lavender: #f0eafb;
  --paper: #faf9fc;
  --white: #fff;
  --line: #e4deed;
  --green: #25674e;
  --warning: #765020;
  --radius: 22px;
  --space: clamp(64px, 7vw, 104px);
  --container: 1200px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}
body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}
a {
  color: var(--purple);
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
img,
svg {
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 750;
}
h2 {
  font-size: clamp(30px, 3.1vw, 42px);
}
h3 {
  font-size: 1.4375rem;
}
p + p {
  margin-top: 16px;
}
ul,
ol {
  padding-left: 23px;
}
li + li {
  margin-top: 10px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(var(--container), calc(100% - 64px));
  margin: auto;
}
.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 12px 20px;
  background: var(--white);
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.topline {
  background: var(--ink);
  color: #f2eef9;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}
.topline .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
}
.topline a {
  color: inherit;
}
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.4375rem;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1.625rem;
  font-weight: 400;
}
.brand strong {
  color: var(--purple);
}
.nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}
.nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--purple);
}
.languages {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.languages a {
  padding: 9px 10px;
  min-height: 40px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  border-radius: 6px;
}
.languages a[aria-current] {
  background: var(--lavender);
  color: var(--purple);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 23px;
  border-radius: 11px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.35;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: var(--purple-dark);
}
.button:active {
  transform: translateY(1px);
}
.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.button.secondary:hover {
  background: var(--lavender);
}
.button.small {
  min-height: 44px;
  padding: 10px 17px;
  font-size: 0.875rem;
}
.button.full {
  width: 100%;
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 46px;
  min-height: 46px;
  color: var(--ink);
}
.hero {
  position: relative;
  padding: 65px 0 62px;
  background: linear-gradient(115deg, #fff 0%, #f5f1fc 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: start;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 25px;
}
.eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--purple);
  border-radius: 50%;
}
.hero h1 {
  max-width: 590px;
  margin: 0 0 26px;
}
.hero h1 span {
  color: var(--purple);
}
.hero .lead {
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 485px;
  color: var(--muted);
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 34px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
}
.text-link:hover {
  text-decoration: underline;
}
.benefits {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}
.benefits li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0;
}
.check {
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
}
.hero-disclosure {
  max-width: 480px;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 26px;
}
.calculator {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 16px 48px #3216590a;
  scroll-margin-top: 105px;
}
.calc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.calc-head h2 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}
.badge {
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--lavender);
  color: var(--purple);
  font-size: 0.75rem;
  white-space: nowrap;
}
.field {
  margin-top: 23px;
}
.field-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.field label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
}
.number-wrap {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 1.3125rem;
  font-weight: 700;
}
.number-wrap input {
  width: 122px;
  text-align: right;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 3px 2px;
  color: var(--ink);
  font-size: 1.4375rem;
  font-weight: 700;
  background: transparent;
  border-radius: 0;
}
.number-wrap.days input {
  width: 65px;
}
.number-wrap small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}
input[type="range"] {
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--lavender);
  accent-color: var(--purple);
  border-radius: 4px;
  margin: 20px 0 10px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background: var(--purple);
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--purple);
}
input[type="range"]::-moz-range-thumb {
  background: var(--purple);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 3px solid #fff;
}
.range-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}
.presets {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}
.presets button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  min-height: 36px;
  padding: 5px 11px;
  color: var(--muted);
  font-size: 0.75rem;
}
.presets button[aria-pressed="true"] {
  background: var(--lavender);
  border-color: #c8b4ed;
  color: var(--purple);
}
.rate-details {
  border: 0 !important;
  margin: 15px 0 !important;
}
.rate-details summary {
  padding: 9px 0 !important;
  min-height: 40px !important;
  color: var(--muted);
  font-size: 0.8125rem !important;
}
.rate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.8125rem;
}
.rate-row input {
  width: 85px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px;
}
.result {
  background: var(--lavender);
  padding: 20px;
  border-radius: 13px;
  margin-top: 17px;
}
.result-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.result-top span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.result-top strong {
  display: block;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-top: 4px;
}
.due {
  text-align: right;
}
.due strong {
  font-size: 0.9375rem;
  letter-spacing: 0;
  margin-top: 10px;
}
.breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  border-top: 1px solid #dbcfed;
  padding-top: 13px;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--muted);
}
.breakdown b {
  color: var(--ink);
  font-weight: 600;
}
.calc-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 14px 0;
}
.calc-bottom {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}
.error {
  color: #9c2020;
  font-size: 0.8125rem;
  margin-top: 10px;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 27px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.trust-item strong {
  color: var(--ink);
  display: block;
  font-size: 0.875rem;
}
.line-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--purple);
}
.section {
  padding: var(--space) 0;
}
.section.white {
  background: #fff;
}
.section.tint {
  background: var(--lavender);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}
.section-head h2 {
  max-width: 650px;
}
.section-head p {
  max-width: 410px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.kicker {
  color: var(--purple);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.step-number {
  display: block;
  color: var(--purple);
  font-size: 0.8125rem;
  margin-bottom: 30px;
}
.step h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
}
.step p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.editorial-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}
.editorial-split h2 {
  margin-bottom: 22px;
}
.editorial-split p {
  color: var(--muted);
}
.fact-list {
  margin: 0;
}
.fact-list > div {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.fact-list > div:first-child {
  padding-top: 0;
}
.fact-list dt {
  color: var(--muted);
  font-size: 0.9375rem;
}
.fact-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  max-width: 250px;
  font-size: 0.9375rem;
}
.small-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 20px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.guide {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
}
.guide:hover {
  border-color: var(--purple);
}
.guide small {
  color: var(--purple);
  font-size: 0.75rem;
  margin-bottom: 30px;
}
.guide h3 {
  font-size: 1.4375rem;
  margin-bottom: 14px;
}
.guide p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 25px;
}
.guide .arrow {
  margin-top: auto;
  color: var(--purple);
  font-size: 1.5rem;
  line-height: 1;
}
.faq-layout {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 100px;
}
.faq-intro p {
  color: var(--muted);
  margin: 20px 0;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  min-height: 76px;
  padding: 22px 0;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--purple);
  flex-shrink: 0;
}
details[open] > summary:after {
  content: "−";
}
.faq-answer {
  padding: 0 28px 23px 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.responsible {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  border: 1px solid #d7cbee;
  background: #f4effb;
  border-radius: 18px;
  padding: 30px;
}
.responsible h2 {
  font-size: 1.625rem;
  margin-bottom: 10px;
}
.responsible p {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 710px;
}
.footer {
  background: var(--ink);
  color: #fff;
  padding: 60px 0 25px;
}
.footer a {
  color: #ede5ff;
}
.footer .brand {
  color: #fff;
}
.footer .brand strong {
  color: #cab5fb;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 35px;
  border-bottom: 1px solid #4e435f;
}
.footer-about p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #c8c1d4;
  margin-top: 20px;
  max-width: 285px;
}
.footer h3 {
  font-size: 0.8125rem;
  letter-spacing: 0;
  margin-bottom: 15px;
}
.footer nav a {
  display: block;
  font-size: 0.8125rem;
  text-decoration: none;
  padding: 6px 0;
  min-height: 32px;
}
.footer nav a:hover {
  text-decoration: underline;
}
.footer-bottom {
  font-size: 0.75rem;
  color: #c8c1d4;
  line-height: 1.75;
  padding-top: 25px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.age {
  border: 1px solid #877798;
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 0.9375rem;
  color: #fff;
  align-self: start;
}
.mobile-bar {
  display: none;
}
.breadcrumbs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 28px 0;
}
.breadcrumbs a {
  color: var(--muted);
}
.page-heading {
  padding: 25px 0 45px;
  border-bottom: 1px solid var(--line);
}
.page-heading h1 {
  max-width: 870px;
  font-size: clamp(36px, 4vw, 54px);
}
.page-heading .lead {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.125rem;
  margin-top: 22px;
}
.page-heading .updated {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 22px;
}
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 270px;
  gap: 70px;
  padding: 50px 0 80px;
  align-items: start;
}
.article {
  min-width: 0;
}
.article h2 {
  font-size: 1.8125rem;
  margin: 42px 0 20px;
}
.article h2:first-child {
  margin-top: 0;
}
.article h3 {
  font-size: 1.3125rem;
  margin: 28px 0 14px;
}
.article p,
.article li {
  color: #51485f;
}
.article .notice {
  padding: 22px 25px;
  border-left: 3px solid var(--purple);
  background: var(--lavender);
  border-radius: 0 10px 10px 0;
  margin: 25px 0;
}
.article .notice p {
  margin: 0;
}
.table-wrap {
  overflow: auto;
  margin: 25px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}
th,
td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--lavender);
  font-weight: 600;
}
tr:last-child td {
  border-bottom: 0;
}
.sidebar {
  padding: 25px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  position: sticky;
  top: 110px;
}
.sidebar h2 {
  font-size: 1.1875rem;
  margin-bottom: 15px;
}
.sidebar a:not(.button) {
  display: block;
  padding: 10px 0;
  font-size: 0.875rem;
  text-decoration: none;
}
.sidebar .button {
  margin-top: 20px;
}
.source-box {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.source-box h2 {
  font-size: 1.1875rem !important;
}
.source-box li {
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
.apply-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  margin: 25px 0;
}
.apply-summary dt {
  font-size: 0.8125rem;
  color: var(--muted);
}
.apply-summary dd {
  font-size: 1.4375rem;
  font-weight: 700;
  margin: 8px 0 0;
}
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  padding-left: 26px;
  position: relative;
}
.checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}
.apply-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.print-only {
  display: none;
}
.no-js {
  padding: 15px;
  background: #fff1d7;
  border-radius: 10px;
  font-size: 0.875rem;
  margin: 15px 0;
}
.contact-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 22px;
}
.contact-block h3 {
  margin: 0 0 12px;
}
.contact-block a {
  overflow-wrap: anywhere;
}
.formula {
  overflow-wrap: anywhere;
  background: var(--lavender);
  padding: 17px;
  border-radius: 10px;
  font-size: 0.875rem;
}
.warning {
  color: var(--warning) !important;
  background: #fff4df;
  border-radius: 9px;
  padding: 14px;
}
@media (min-width: 1700px) {
  .hero {
    padding-block: 80px;
  }
  .hero-grid {
    gap: 100px;
  }
}
@media (max-width: 1150px) {
  .header-inner {
    gap: 16px;
  }
  .nav {
    gap: 16px;
  }
  .header .button {
    display: none;
  }
  .hero-grid {
    gap: 35px;
  }
  .hero h1 {
    font-size: 3.25rem;
  }
  .editorial-split {
    gap: 50px;
  }
  .faq-layout {
    gap: 60px;
  }
  .content-layout {
    gap: 35px;
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}
@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 73px;
  }
  .languages {
    margin-left: auto;
  }
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 16px #21193608;
  }
  .nav[data-open="true"] {
    display: block;
  }
  .nav a {
    padding: 10px 0;
  }
  .hero {
    padding-top: 42px;
  }
  .hero-grid {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 2.625rem;
  }
  .hero .lead {
    font-size: 1rem;
  }
  .hero-links {
    gap: 6px;
    margin-bottom: 22px;
  }
  .hero-disclosure {
    margin-top: 20px;
  }
  .calculator {
    padding: 21px;
  }
  .calc-head {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }
  .calc-head h2 {
    font-size: 1.4375rem;
  }
  .result-top {
    display: block;
  }
  .due {
    text-align: left;
    margin-top: 10px;
  }
  .due strong {
    display: inline;
    font-size: 0.875rem;
    margin-left: 5px;
  }
  .result-top strong {
    font-size: 1.8125rem;
  }
  .result-top .due strong {
    font-size: 0.875rem;
  }
  .trust-strip {
    gap: 15px;
  }
  .trust-item {
    gap: 8px;
    font-size: 0.75rem;
  }
  .trust-item strong {
    font-size: 0.8125rem;
  }
  .trust-item svg {
    width: 30px;
  }
  .guide-grid {
    gap: 14px;
  }
  .guide {
    padding: 23px;
  }
  .guide h3 {
    font-size: 1.3125rem;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .editorial-split,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .responsible {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .responsible .button {
    justify-self: start;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
  }
  .sidebar a:not(.button) {
    display: inline-flex;
    margin-right: 16px;
  }
  .sidebar .button {
    display: flex;
    max-width: 260px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 36px);
  }
  body {
    font-size: 1rem;
  }
  .topline .wrap {
    padding-block: 7px;
    font-size: 0.6875rem;
  }
  .topline .top-extra {
    display: none;
  }
  .header-inner {
    gap: 10px;
    min-height: 68px;
  }
  .brand {
    font-size: 1.3125rem;
    gap: 8px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 1.4375rem;
    border-radius: 10px;
  }
  .languages {
    gap: 0;
  }
  .languages a {
    padding: 8px;
    min-height: 37px;
    font-size: 0.75rem;
  }
  .menu-toggle {
    font-size: 0;
    width: 40px;
    min-width: 40px;
    min-height: 42px;
  }
  .menu-toggle:after {
    content: "☰";
    font-size: 1.375rem;
  }
  .hero {
    padding: 34px 0 30px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .eyebrow {
    font-size: 0.6875rem;
    margin-bottom: 18px;
  }
  .hero h1 {
    font-size: 2.6875rem;
    line-height: 1.06;
    letter-spacing: -1.8px;
    max-width: 430px;
    margin-bottom: 18px;
  }
  .hero .lead {
    font-size: 1rem;
  }
  .hero-links {
    margin: 15px 0 19px;
    gap: 14px;
  }
  .hero-links .text-link {
    font-size: 0.875rem;
  }
  .benefits {
    gap: 9px;
    font-size: 0.8125rem;
  }
  .hero-disclosure {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-top: 18px;
  }
  .calculator {
    padding: 23px 20px;
    border-radius: 18px;
  }
  .calc-head {
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
  }
  .calc-head h2 {
    font-size: 1.3125rem;
  }
  .calc-head .badge {
    font-size: 0.6875rem;
  }
  .number-wrap input {
    font-size: 1.5625rem;
  }
  .field {
    margin-top: 22px;
  }
  .result-top {
    display: flex;
  }
  .result-top strong {
    font-size: 1.8125rem;
  }
  .due {
    text-align: right;
    margin-top: 0;
  }
  .due strong {
    display: block;
    margin: 8px 0 0;
    font-size: 0.8125rem;
  }
  .result {
    padding: 16px;
  }
  .result-top .due strong {
    font-size: 0.8125rem;
  }
  .breakdown {
    font-size: 0.75rem;
  }
  .trust-strip {
    grid-template-columns: 1fr;
    padding-block: 23px;
    gap: 18px;
  }
  .trust-item {
    gap: 14px;
    font-size: 0.8125rem;
  }
  .trust-item strong {
    font-size: 0.875rem;
  }
  .trust-item svg {
    width: 33px;
    height: 33px;
  }
  .section {
    padding: 55px 0;
  }
  .section-head {
    margin-bottom: 28px;
  }
  .section-head h2,
  h2 {
    font-size: 1.9375rem;
  }
  .steps,
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .step {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0 15px;
    padding-top: 21px;
  }
  .step-number {
    grid-row: 1/4;
    margin-top: 4px;
  }
  .step h3 {
    font-size: 1.375rem;
  }
  .step p {
    font-size: 0.9375rem;
  }
  .step .text-link {
    justify-self: start;
  }
  .guide {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 24px;
    gap: 0 16px;
  }
  .guide small {
    margin-bottom: 15px;
    grid-column: 1;
  }
  .guide h3,
  .guide p {
    grid-column: 1;
  }
  .guide p {
    margin-bottom: 0;
  }
  .guide .arrow {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin: 0;
  }
  .fact-list > div {
    gap: 16px;
  }
  .fact-list dt,
  .fact-list dd {
    font-size: 0.875rem;
  }
  .fact-list dd {
    max-width: 55%;
  }
  .faq-layout {
    gap: 25px;
  }
  summary {
    font-size: 1rem;
    min-height: 72px;
    padding-block: 20px;
  }
  .faq-answer {
    padding-right: 10px;
  }
  .responsible {
    padding: 23px;
  }
  .responsible h2 {
    font-size: 1.5625rem;
  }
  .responsible .button {
    width: 100%;
  }
  .footer {
    padding: 40px 0 110px;
  }
  .footer-top {
    gap: 30px 18px;
  }
  .footer-about {
    grid-column: 1/-1;
  }
  .footer-about p {
    max-width: 100%;
  }
  .footer nav a {
    font-size: 0.8125rem;
    padding: 8px 0;
  }
  .footer-row {
    align-items: start;
    font-size: 0.6875rem;
  }
  .mobile-bar {
    position: fixed;
    z-index: 25;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px #21193608;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
  }
  .mobile-bar .button {
    min-height: 48px;
    padding: 10px 17px;
    font-size: 0.875rem;
  }
  .mobile-bar > a:not(.button) {
    font-size: 0.8125rem;
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 0 5px;
  }
  .breadcrumbs {
    padding: 20px 0;
    font-size: 0.75rem;
  }
  .page-heading {
    padding: 15px 0 30px;
  }
  .page-heading h1 {
    font-size: 2.25rem;
  }
  .page-heading .lead {
    font-size: 1.0625rem;
  }
  .content-layout {
    padding: 35px 0 55px;
    gap: 35px;
  }
  .article h2 {
    font-size: 1.6875rem;
    margin-top: 35px;
  }
  .article h3 {
    font-size: 1.3125rem;
  }
  .article .notice {
    padding: 18px;
  }
  .table-wrap {
    margin-inline: 0;
  }
  th,
  td {
    padding: 13px;
    min-width: 120px;
  }
  .apply-summary {
    gap: 17px;
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .apply-summary > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .apply-summary dd {
    font-size: 1.3125rem;
    margin: 0;
  }
  .apply-actions > .button {
    width: 100%;
  }
  .source-box {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .brand {
    font-size: 1.1875rem;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .header-inner {
    gap: 7px;
  }
  .languages a {
    padding: 8px 7px;
  }
  .hero h1 {
    font-size: 2.4375rem;
  }
  .calc-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .result-top {
    display: block;
  }
  .due {
    text-align: left;
    margin-top: 8px;
  }
  .due strong {
    display: inline;
    margin-left: 5px;
  }
  .calculator {
    padding: 20px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media (forced-colors: active) {
  .button,
  .brand-mark,
  .badge,
  .result,
  input[type="range"] {
    border: 1px solid CanvasText;
  }
  .button {
    color: LinkText;
  }
  .check {
    color: CanvasText;
  }
}
@media print {
  .header,
  .topline,
  .footer,
  .mobile-bar,
  .sidebar,
  .hero-links,
  .button,
  .menu-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .wrap {
    width: 100%;
  }
  .hero-grid,
  .content-layout {
    display: block;
  }
  .hero {
    padding: 20px 0;
  }
  .calculator {
    box-shadow: none;
    break-inside: avoid;
  }
  .section {
    padding: 25px 0;
  }
  .print-only {
    display: block;
  }
  a {
    color: #000;
  }
  .article details > div {
    display: block !important;
  }
}
/* v3: decision-route identity and autonomous service tools. */
@font-face {
  font-family: Noto;
  src: url("/assets/fonts/noto-sans-kz.woff2") format("woff2");
  font-weight: 400 750;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: Noto, Arial, sans-serif;
  --container: 1240px;
}
body {
  font-size: 1rem;
}
h1,
h2,
h3 {
  font-weight: 700;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.brand img {
  flex: 0 0 38px;
}
.nav {
  gap: 30px;
}
.nav a {
  max-width: 150px;
  line-height: 1.35;
}
.languages a {
  min-height: 44px;
}
.header-inner {
  gap: 32px;
}
.ui-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.scene {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.hero {
  padding: 54px 0;
  background: #faf8ff;
}
.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 70px;
  align-items: start;
}
.hero-intro {
  grid-column: 1;
  grid-row: 1;
}
.hero h1 {
  font-size: clamp(2.7rem, 4.8vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.hero .lead {
  font-size: 1.2rem;
  max-width: 455px;
  line-height: 1.55;
}
.hero-disclosure {
  font-size: 0.78rem;
  max-width: 410px;
}
.hero-calculator {
  grid-column: 2;
  grid-row: 1/3;
}
.hero-art {
  grid-column: 1;
  grid-row: 2;
  max-width: 520px;
  align-self: end;
}
.hero-art img {
  aspect-ratio: 1.6;
}
.hero-art p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 0 10px;
}
.eyebrow {
  font-size: 0.72rem;
}
.calculator {
  padding: 28px;
  box-shadow: 0 8px 35px #31114f08;
}
.calc-head {
  flex-wrap: wrap;
  gap: 12px;
}
.calc-head h2 {
  font-size: 1.35rem !important;
  margin: 0 !important;
}
.badge {
  font-size: 0.66rem;
}
.field {
  margin-top: 18px;
}
.field-line {
  flex-wrap: wrap;
}
.field label {
  font-size: 0.9rem;
}
.number-wrap input {
  min-height: 44px;
  max-width: 160px;
  width: 140px;
  font-size: 1.5rem;
}
.number-wrap span {
  font-size: 0.85rem;
}
.presets button {
  min-height: 44px;
  font-size: 0.8rem;
  flex: 1;
}
input[type="range"] {
  height: 44px;
  margin: 3px 0 0;
  border-radius: 0;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: var(--lavender);
  border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
  margin-top: -9px;
}
input[type="range"]::-moz-range-track {
  height: 5px;
  background: var(--lavender);
  border-radius: 3px;
}
input[type="range"]::-moz-range-thumb {
  border: 3px solid #fff;
}
.range-bounds {
  font-size: 0.75rem;
}
.rate-details summary {
  min-height: 44px !important;
  font-size: 0.86rem !important;
  justify-content: flex-start;
  gap: 8px;
}
.rate-details summary:after {
  margin-left: auto;
}
.advanced-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 15px;
}
.input-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
}
.input-label input {
  border: 1px solid #a99ebc;
  min-height: 46px;
  width: 100%;
  min-width: 0;
  border-radius: 8px;
  padding: 9px;
  color: var(--ink);
  background: #fff;
}
input[aria-invalid="true"] {
  border-color: #a12929 !important;
}
.result {
  margin-top: 8px;
}
.result-top {
  flex-wrap: wrap;
  gap: 12px;
}
.result-top strong {
  font-size: 2rem;
}
.due strong {
  font-size: 0.95rem;
}
.calc-breakdown {
  margin: 18px 0 0;
  border-top: 1px solid #d6c8eb;
  padding-top: 12px;
  display: grid;
  gap: 6px;
}
.calc-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.78rem;
}
.calc-breakdown dt {
  color: #594e6f;
}
.calc-breakdown dd {
  font-weight: 600;
  margin: 0;
  text-align: right;
  color: var(--ink);
}
.calc-note {
  font-size: 0.75rem;
  margin: 15px 0;
}
.annual-line {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 18px !important;
  line-height: 1.7;
}
.annual-line b {
  color: var(--ink);
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 12px 0;
}
.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
  background: transparent;
  border: 0;
  text-decoration: none;
}
.tool-button:hover {
  text-decoration: underline;
}
.tool-button .ui-icon {
  width: 18px;
  height: 18px;
}
.save-note {
  font-size: 0.68rem;
  margin-top: 5px;
}
.tool-status {
  font-size: 0.8rem;
  color: var(--green);
  margin-top: 10px;
  min-height: 0;
  overflow-wrap: anywhere;
}
.tool-status:empty {
  display: none;
}
.error {
  font-size: 0.85rem;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.quick-links a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 28px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.quick-links a:nth-child(2) {
  justify-content: center;
}
.quick-links a:last-child {
  justify-content: end;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.process-card > img {
  margin-bottom: 22px;
  border-radius: 14px;
}
.process-card .step-number {
  margin: 0 0 14px;
}
.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}
.process-card p {
  font-size: 0.875rem;
  color: var(--muted);
}
.process-card .text-link {
  font-size: 0.8rem;
  margin-top: 12px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.resource-card {
  display: block;
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.resource-card:hover {
  border-color: var(--purple);
  background: #fdfbff;
}
.resource-card .ui-icon {
  margin-bottom: 22px;
}
.resource-card h3,
.resource-card h2 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 12px;
}
.resource-card p {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0;
}
.resource-card small {
  display: block;
  color: var(--purple);
  font-size: 0.75rem;
  margin-bottom: 18px;
}
.card-go {
  display: block;
  margin-top: 20px;
  color: var(--purple);
}
.club-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}
.club-promo h2 {
  margin-bottom: 25px;
}
.club-promo p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 450px;
}
.club-promo .button {
  margin-top: 26px;
}
.illustrated-guide {
  padding: 0;
  overflow: hidden;
  display: flex;
  gap: 0;
}
.illustrated-guide > img {
  width: 100%;
  height: auto;
  border-radius: 0;
}
.illustrated-guide > div {
  padding: 25px;
}
.illustrated-guide small {
  margin-bottom: 15px;
}
.illustrated-guide h3 {
  font-size: 1.35rem;
}
.illustrated-guide p {
  margin-bottom: 20px;
}
.footer-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 40px;
}
.footer-identity p {
  font-size: 0.875rem;
  color: #c8c1d4;
}
.footer-top {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.footer nav a {
  min-height: 44px;
  padding: 8px 0;
  font-size: 0.8rem;
}
.footer .brand img {
  background: #fff;
  border-radius: 12px;
}
.footer .brand {
  color: #fff;
}
.footer .brand strong {
  color: #ddccff;
}
.page-heading h1 {
  max-width: 1000px;
}
.updated a {
  font-weight: 500;
}
.hub {
  padding-bottom: 70px;
}
.hub > .guide-grid,
.hub > .resource-grid {
  margin-top: 36px;
}
.content-layout {
  grid-template-columns: minmax(0, 850px) minmax(220px, 270px);
  gap: 60px;
}
.sidebar {
  top: 108px;
}
.sidebar .scene {
  margin-bottom: 24px;
}
.sidebar a:not(.button) {
  font-size: 0.84rem;
  min-height: 44px;
}
.article .calculator {
  margin-top: 40px;
  max-width: 650px;
}
.article .calculator p {
  color: var(--muted);
}
.article .calculator .tool-status {
  color: var(--green);
}
.article .calculator .error {
  color: #9c2020;
}
.on-page {
  border-left: 2px solid var(--purple);
  padding: 2px 0 2px 22px;
  margin: 0 0 35px;
  display: grid;
  gap: 6px;
}
.on-page strong {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.on-page a {
  font-size: 0.9rem;
  min-height: 36px;
  padding: 5px 0;
}
.prose-section {
  color: #51485f;
}
.related {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-size: 1.3rem !important;
  margin: 0 0 20px !important;
}
.related-links {
  display: flex;
  gap: 12px 25px;
  flex-wrap: wrap;
}
.related-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}
.tool-page {
  padding-bottom: 70px;
}
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: 70px;
  margin-top: 40px;
  align-items: start;
}
.tool-aside h2 {
  font-size: 1.5rem;
  margin-top: 25px;
}
.tool-aside p,
.tool-aside li {
  font-size: 0.9rem;
  color: var(--muted);
}
.tool-aside .scene {
  max-width: 450px;
}
.comparison {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.comparison h3 {
  font-size: 1.2rem !important;
  margin: 0 !important;
}
.comparison .small-note {
  margin-top: 12px;
  font-size: 0.8rem;
}
.compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.compare-row strong {
  display: block;
  font-size: 1rem;
}
.compare-row span {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
}
.compare-row .button {
  font-size: 0.76rem;
  padding: 9px 12px;
}
.summary-list {
  margin: 24px 0;
}
.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 0.9rem;
}
.summary-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.summary-list dt {
  color: var(--muted);
}
.saved-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 25px;
}
.saved-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 20px;
  min-width: 0;
}
.saved-card h3 {
  font-size: 1.1rem;
  margin: 0;
}
.saved-card p {
  margin-top: 8px;
}
.saved-card .summary-list {
  margin: 10px 0;
}
.saved-card .summary-list > div {
  font-size: 0.8rem;
}
.saved-card .tool-actions {
  margin-bottom: 0;
}
.saved-comparison {
  margin: 25px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.saved-comparison h4 {
  margin: 0;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 32px 0;
}
.service-badge {
  text-align: center;
  padding: 20px 10px;
  background: var(--lavender);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
}
.service-badge img {
  width: 100px;
  height: 100px;
}
.service-badge h3 {
  font-size: 1rem;
  margin: 14px 0 !important;
}
.service-badge p {
  font-size: 0.73rem;
  margin: 0;
}
.help-search {
  padding: 30px;
  background: var(--lavender);
  border-radius: 18px;
  margin: 35px 0;
}
.help-search > label {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}
.search-row {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 12px;
}
.search-row input,
.search-row select {
  font: inherit;
  border: 1px solid #a395bd;
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
  min-height: 48px;
  background: #fff;
  color: var(--ink);
}
.help-search p {
  font-size: 0.84rem;
  margin-top: 16px;
}
.help-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.help-results h2 {
  font-size: 1.15rem;
}
.error-scene {
  width: min(100%, 500px);
  height: auto;
}
.print-report {
  display: none;
}
dialog {
  max-width: min(540px, calc(100% - 40px));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  color: var(--ink);
}
dialog::backdrop {
  background: #211936a6;
}
dialog h2 {
  font-size: 1.5rem !important;
  line-height: 1.3;
}
dialog p {
  font-size: 0.95rem;
}
.support-page .footer {
  padding-bottom: 40px;
}
.support-page .header {
  position: static;
}
section:focus,
div[tabindex="-1"]:focus {
  outline: 3px solid var(--purple);
  outline-offset: 7px;
}
main:focus {
  outline: none;
}
@media (max-width: 70em) {
  .hero-grid {
    gap: 25px 40px;
  }
  .header-inner {
    gap: 24px;
  }
  .nav {
    gap: 20px;
  }
  .nav a {
    font-size: 0.8rem;
  }
  .hero h1 {
    font-size: 3.1rem;
  }
  .content-layout {
    gap: 35px;
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .tool-layout {
    gap: 35px;
    grid-template-columns: 1.3fr 1fr;
  }
  .process-grid {
    gap: 18px;
  }
  .process-card h3 {
    font-size: 1.1rem;
  }
}
@media (max-width: 53em) {
  .header-inner {
    gap: 15px;
  }
  .nav a {
    max-width: none;
    font-size: 0.95rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-intro {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-calculator {
    grid-column: 1;
    grid-row: 2;
    max-width: 650px;
    width: 100%;
    justify-self: center;
  }
  .hero-art {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-width: 500px;
    justify-self: center;
  }
  .hero-intro {
    max-width: 650px;
    width: 100%;
    justify-self: center;
  }
  .hero h1 {
    font-size: 3rem;
    max-width: 600px;
  }
  .hero .lead {
    font-size: 1.1rem;
    max-width: 580px;
  }
  .hero h1 br {
    display: none;
  }
  .hero h1 span:before {
    content: " ";
  }
  .hero-disclosure {
    max-width: 550px;
    margin-top: 16px;
  }
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .resource-grid {
    gap: 14px;
  }
  .resource-card {
    padding: 21px;
  }
  .club-promo {
    gap: 25px;
  }
  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
  }
  .sidebar .scene {
    display: none;
  }
  .sidebar a:not(.button) {
    display: inline-flex;
  }
  .tool-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }
  .tool-layout > div {
    width: 100%;
    max-width: 650px;
    justify-self: center;
  }
  .tool-aside {
    max-width: 650px;
    width: 100%;
    justify-self: center;
  }
  .tool-aside > .scene {
    max-width: 350px;
  }
  .help-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 37.5em) {
  .brand {
    font-size: 1.15rem;
    gap: 7px;
  }
  .brand img {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .header-inner {
    min-height: 70px;
    gap: 8px;
  }
  .languages a {
    font-size: 0.7rem;
    padding: 8px 7px;
  }
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  .hero {
    padding: 28px 0 34px;
  }
  .hero h1 {
    font-size: 2.3rem;
    line-height: 1.12;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
  }
  .eyebrow {
    font-size: 0.63rem;
    margin-bottom: 18px;
  }
  .hero .lead {
    font-size: 1rem;
    line-height: 1.5;
  }
  .hero-disclosure {
    font-size: 0.7rem;
    margin-top: 14px;
    line-height: 1.6;
  }
  .hero-art {
    max-width: 400px;
  }
  .hero-art img {
    aspect-ratio: auto;
  }
  .hero-art p {
    font-size: 0.8rem;
  }
  .calculator {
    padding: 21px 18px;
  }
  .calc-head {
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
  }
  .calc-head h2 {
    font-size: 1.2rem !important;
  }
  .calc-head .badge {
    font-size: 0.65rem;
  }
  .number-wrap input {
    font-size: 1.35rem;
    width: 115px;
  }
  .field {
    margin-top: 14px;
  }
  .field label {
    font-size: 0.8rem;
  }
  .result-top {
    display: flex;
    gap: 12px;
  }
  .result-top strong {
    font-size: 1.8rem;
  }
  .due {
    text-align: left;
  }
  .due strong {
    font-size: 0.82rem;
    display: block;
    margin: 4px 0 0;
  }
  .result-top .due strong {
    font-size: 0.82rem;
  }
  .calc-breakdown > div {
    font-size: 0.73rem;
    gap: 10px;
  }
  .calc-note {
    font-size: 0.72rem;
  }
  .calc-primary .button {
    font-size: 0.84rem;
    padding-inline: 10px;
  }
  .tool-actions {
    gap: 3px 14px;
  }
  .tool-button {
    font-size: 0.73rem;
  }
  .advanced-fields {
    grid-template-columns: 1fr;
  }
  .quick-links {
    gap: 12px;
  }
  .quick-links a {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start !important;
    padding: 20px 0;
    font-size: 0.7rem;
    line-height: 1.4;
    gap: 8px;
  }
  .quick-links .ui-icon {
    width: 22px;
    height: 22px;
  }
  .process-grid {
    gap: 24px 16px;
  }
  .process-card .scene {
    border-radius: 10px;
    margin-bottom: 14px;
  }
  .process-card h3 {
    font-size: 1rem;
  }
  .process-card p {
    font-size: 0.8rem;
  }
  .process-card .text-link {
    font-size: 0.7rem;
  }
  .process-card .step-number {
    margin-bottom: 10px;
  }
  .resource-grid,
  .help-results {
    grid-template-columns: 1fr;
  }
  .resource-card {
    padding: 24px;
  }
  .resource-card .ui-icon {
    margin-bottom: 15px;
  }
  .resource-card h3 {
    font-size: 1.4rem;
  }
  .resource-card p {
    font-size: 0.88rem;
  }
  .club-promo {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .club-promo .scene {
    max-width: 450px;
    justify-self: center;
  }
  .club-promo h2 {
    font-size: 2rem;
  }
  .club-promo p {
    font-size: 0.95rem;
  }
  .illustrated-guide {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .illustrated-guide img {
    max-height: 210px;
    object-fit: cover;
  }
  .illustrated-guide > div {
    padding: 25px;
  }
  .illustrated-guide h3 {
    font-size: 1.35rem;
  }
  .footer-identity {
    flex-direction: column;
    align-items: start;
    gap: 16px;
    margin-bottom: 30px;
  }
  .footer-top {
    gap: 30px 18px;
  }
  .footer h3 {
    font-size: 0.75rem;
  }
  .footer nav a {
    font-size: 0.75rem;
  }
  .footer-row {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.65rem;
  }
  .mobile-bar {
    grid-template-columns: 1fr auto auto;
    gap: 18px;
    padding-inline: 18px;
  }
  .mobile-bar .button {
    font-size: 0.8rem;
  }
  .page-heading h1 {
    font-size: 2rem;
    overflow-wrap: break-word;
  }
  .page-heading .lead {
    font-size: 1rem;
  }
  .updated {
    line-height: 1.8;
  }
  .content-layout {
    padding-top: 30px;
  }
  .article h2 {
    font-size: 1.5rem;
  }
  .article .calculator {
    margin-inline: 0;
  }
  .article .calculator h2 {
    font-size: 1.2rem;
  }
  .on-page {
    padding-left: 18px;
  }
  .on-page a {
    font-size: 0.85rem;
  }
  .saved-grid {
    grid-template-columns: 1fr;
  }
  .badge-grid {
    grid-template-columns: 1fr;
  }
  .service-badge {
    display: grid;
    grid-template-columns: 90px 1fr;
    text-align: left;
    align-items: center;
    padding: 16px;
  }
  .service-badge img {
    grid-row: 1/3;
    width: 80px;
    height: 80px;
  }
  .service-badge h3 {
    margin: 0 0 7px !important;
  }
  .service-badge p {
    grid-column: 2;
  }
  .search-row {
    grid-template-columns: 1fr;
  }
  .help-search {
    padding: 22px;
  }
  .help-results h2 {
    font-size: 1.15rem;
  }
  .compare-row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .compare-row strong {
    font-size: 0.9rem;
  }
  .compare-row span {
    font-size: 0.7rem;
  }
  .compare-row .button {
    margin-left: auto;
  }
  .summary-list > div {
    font-size: 0.8rem;
  }
  .summary-list dt {
    max-width: 60%;
  }
  .summary-list dd {
    max-width: 45%;
    overflow-wrap: anywhere;
  }
  .hub {
    padding-bottom: 45px;
  }
  .tool-layout {
    margin-top: 28px;
  }
  .tool-page {
    padding-bottom: 50px;
  }
}
@media (max-width: 21em) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero h1 br {
    display: block;
  }
  .calc-head {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
  .result-top {
    display: block;
  }
  .result-top .due {
    margin-top: 10px;
  }
  .number-wrap input {
    width: 108px;
  }
  .hero-calculator .calculator {
    padding: 18px 14px;
  }
  .presets {
    gap: 5px;
  }
  .presets button {
    padding: 5px;
    font-size: 0.75rem;
  }
  .brand {
    font-size: 1rem;
  }
  .languages a {
    padding: 8px 6px;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-card .scene {
    max-width: 350px;
  }
  .header-inner {
    gap: 6px;
  }
}
@media (forced-colors: active) {
  .button,
  .resource-card,
  .calculator,
  .result,
  .badge,
  .service-badge,
  .languages {
    border: 1px solid CanvasText;
  }
  .button:focus-visible,
  a:focus-visible,
  input:focus-visible {
    outline: 3px solid Highlight;
  }
  .hero h1 span {
    color: CanvasText;
  }
  .ui-icon {
    forced-color-adjust: none;
  }
  .brand img {
    forced-color-adjust: none;
  }
  input[type="range"] {
    appearance: auto;
  }
  input[type="range"]::-webkit-slider-thumb {
    appearance: auto;
  }
  .compare-row {
    border-color: CanvasText;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  @page {
    size: A4;
    margin: 16mm;
  }
  html,
  body {
    background: #fff;
    color: #000;
  }
  body > * {
    display: none !important;
  }
  body > .print-report {
    display: block !important;
    font:
      11pt/1.5 Arial,
      sans-serif;
  }
  .print-report h1 {
    font-size: 22pt;
    margin: 0 0 10mm;
  }
  .print-report p {
    font-size: 10pt;
    margin: 6mm 0;
  }
  .print-report .summary-list {
    margin: 6mm 0;
  }
  .print-report .summary-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12mm;
    font-size: 10pt;
    padding: 2mm 0;
    break-inside: avoid;
    border-bottom: 1px solid #ddd;
  }
  .print-report dt,
  .print-report dd {
    color: #000;
    margin: 0;
    max-width: 65%;
  }
  .print-report:empty:after {
    content: "zhedel-aksha.kz — используйте «Печать / PDF» в калькуляторе / Калькулятордағы «Басып шығару / PDF» батырмасын қолданыңыз.";
  }
}
.hero-grid {
  grid-template-rows: auto 1fr;
}
.hero-art {
  align-self: start;
  margin-top: 14px;
}
.calc-head {
  margin-bottom: 12px;
}
.calculator .field {
  margin-top: 13px;
}
.hero .calculator .small-note {
  line-height: 1.55;
}
.mobile-bar a {
  overflow-wrap: normal;
}
@media (max-width: 53em) {
  .hero-grid {
    grid-template-rows: auto auto auto;
  }
  .hero-art {
    margin-top: 0;
  }
}
/* Reflow stays usable when the visitor doubles text size. */
.content-layout-wide {
  grid-template-columns: minmax(0, 900px);
}
@media (max-width: 53em) {
  .content-layout > .sidebar {
    display: none;
  }
}
@media (max-width: 37.5em) {
  .hero-art {
    display: none;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process-card {
    position: relative;
    padding: 22px 0 22px 52px;
    border-top: 1px solid var(--line);
  }
  .process-card > .scene {
    display: none;
  }
  .process-card .step-number {
    position: absolute;
    left: 0;
    top: 22px;
    margin: 0;
  }
  .process-card h3 {
    font-size: 1.12rem;
    margin: 0 0 8px;
  }
  .process-card p {
    margin: 0;
    font-size: 0.9rem;
  }
  .process-card .text-link {
    font-size: 0.85rem;
    margin-top: 8px;
  }
  .club-promo > .scene {
    display: none;
  }
  .home-page .resource-grid {
    gap: 0;
  }
  .home-page .resource-card {
    padding: 22px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .home-page .resource-card .ui-icon {
    display: none;
  }
  .home-page .resource-card .card-go {
    margin-top: 10px;
  }
  .home-page .illustrated-guide > img {
    display: none;
  }
  .home-page .illustrated-guide {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .home-page .illustrated-guide > div {
    padding: 22px 0;
  }
  .home-page .illustrated-guide small {
    margin-bottom: 8px;
  }
  .home-page .guide-grid {
    gap: 0;
  }
  .home-page .section {
    padding-block: 38px;
  }
  .home-page .section-head {
    margin-bottom: 22px;
  }
  .home-page .footer {
    padding-top: 36px;
  }
  .tool-page > .page-heading {
    padding-block: 28px 0;
  }
}
h1,
h2,
h3,
p,
li,
a,
dt,
dd {
  overflow-wrap: anywhere;
}
.hero-intro,
.hero-calculator,
.hero-art,
.tool-layout > *,
.calc-head > * {
  min-width: 0;
}
.presets {
  flex-wrap: wrap;
}
.rate-details summary {
  flex-wrap: wrap;
}
.number-wrap {
  max-width: 100%;
  min-width: 0;
}
.number-wrap input {
  width: 7ch;
  min-width: 0;
}
.mobile-bar {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.mobile-bar .button {
  min-width: 0;
}
.calc-breakdown > div {
  flex-wrap: wrap;
}
.calc-breakdown dd {
  margin-left: auto;
}
.summary-list > div {
  flex-wrap: wrap;
}
.summary-list dd {
  margin-left: auto;
}
@media (max-width: 53em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 37.5em) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .brand {
    max-width: 100%;
    white-space: normal;
  }
  .languages {
    flex-shrink: 0;
  }
  .hero h1 {
    max-width: 100%;
  }
  .number-wrap input {
    width: 6.5ch;
  }
  .mobile-bar {
    gap: 12px;
  }
  .mobile-bar a {
    max-width: 100%;
  }
}
