:root {
  --ink: #102d38;
  --muted: #536970;
  --paper: #f8f9f7;
  --white: #fff;
  --line: #dce4df;
  --yellow: #fec50c;
  --teal: #006676;
  --mint: #e4f0e8;
  --radius: 14px;
  --display: "Manrope",sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  scroll-padding-bottom: var(--focus-bottom-inset, 16px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 var(--display);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a,button,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
}

button,input,select,textarea {
  font: inherit;
}

button,a,input,select,textarea,summary {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}

img {
  max-width: 100%;
  height: auto;
}

h1,h2,h3,p {
  margin: 0;
}

h1,h2,h3 {
  line-height: 1.2;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(36px,4vw,54px);
  font-weight: 750;
}

h2 {
  font-size: clamp(28px,3vw,42px);
  font-weight: 800;
}

h3 {
  font-size: 22px;
  font-weight: 750;
}

p+p {
  margin-top: 16px;
}

small,.small {
  font-size: 13px;
  line-height: 1.6;
}

svg.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(1200px,calc(100% - 64px));
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--yellow);
  padding: 12px 20px;
}

.skip:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-row {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 38px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  display: block;
  width: 180px;
  height: 31px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  padding-block: 14px;
  white-space: nowrap;
}

.nav a:hover,.nav a[aria-current=page] {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.languages {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #e9ede7;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.languages a {
  min-width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.languages a[aria-current=page] {
  background: #fff;
  box-shadow: 0 1px 4px #102d3810;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  transition: background .15s;
}

.btn:hover {
  transform: none;
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
}

.btn-primary:hover {
  background: #f0ba00;
}

.btn-dark {
  background: var(--ink);
  color: white;
}

.btn-dark:hover {
  background: #1c4654;
}

.btn-outline {
  background: transparent;
  border-color: #c4d2ce;
}

.btn-outline:hover {
  background: #eaf0e9;
}

.btn-small {
  min-height: 44px;
  padding: 9px 16px;
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-weight: 750;
  font-size: 14px;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
}

.hero {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr 470px;
  gap: 80px;
  align-items: start;
}

.hero-copy {
  padding-block: 28px;
}

.hero h1 {
  max-width: 630px;
}

.hero .lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 440px;
  margin-top: 22px;
  line-height: 1.7;
}

.hero-links {
  display: flex;
  gap: 24px;
  margin-top: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.calculator {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: none;
  min-width: 0;
  scroll-margin-top: 110px;
}

.calc-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.calc-heading h2 {
  font-size: 22px;
  letter-spacing: -.04em;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.calc-field {
  margin-top: 18px;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.field-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.number-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 20px;
  font-weight: 800;
}

.number-wrap input {
  width: 125px;
  max-width: 100%;
  padding: 3px 0;
  text-align: right;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  border-bottom: 1px dashed #bccdc4;
  border-radius: 0;
  -moz-appearance: textfield;
}

.number-wrap input::-webkit-inner-spin-button,.number-wrap input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.number-wrap.compact input {
  width: 54px;
}

.range {
  width: 100%;
  height: 26px;
  accent-color: var(--teal);
  cursor: pointer;
  margin: 8px 0 0;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.calc-assumptions {
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.calc-assumptions summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  color: var(--teal);
  font-weight: 750;
  list-style: none;
  min-height: 30px;
  align-items: center;
}

.calc-assumptions summary::-webkit-details-marker {
  display: none;
}

.calc-assumptions summary::after {
  content: "+";
  font-size: 20px;
}

.calc-assumptions[open] summary::after {
  content: "−";
}

.assumption-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.assumption-grid label {
  font-size: 12px;
  color: var(--muted);
}

.assumption-grid input {
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  color: var(--ink);
  background: #fff;
  min-height: 44px;
}

.receipt {
  background: #f1f5ef;
  border-radius: 8px;
  padding: 17px 18px;
  margin-top: 15px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 8px;
  align-items: baseline;
}

.receipt-row span {
  color: var(--muted);
}

.receipt-row strong {
  font-weight: 750;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.receipt-total {
  border-top: 1px dashed #c0cfc3;
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.receipt-total span {
  font-size: 13px;
  font-weight: 700;
}

.receipt-total strong {
  font-size: 29px;
  letter-spacing: -.045em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.calc-cta {
  width: 100%;
  margin-top: 16px;
}

.calc-note {
  margin-top: 11px;
  font-size: 10px;
  line-height: 1.65;
  color: var(--muted);
}

.calc-error {
  color: #a13228;
  background: #fff0e8;
  border-radius: 8px;
  font-size: 12px;
  padding: 10px;
  margin-top: 10px;
}

.reset {
  background: none;
  border: 0;
  text-decoration: underline;
  color: var(--muted);
  font-size: 11px;
  padding: 6px 0;
  min-height: 32px;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.service-strip a {
  padding: 27px 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  border-right: 1px solid var(--line);
}

.service-strip a:first-child {
  padding-left: 0;
}

.service-strip a:last-child {
  border: 0;
}

.service-strip a:hover .service-title {
  color: var(--teal);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--mint);
  border-radius: 12px;
  flex-shrink: 0;
}

.service-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.service-caption {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.service-strip .arrow {
  margin-left: auto;
  font-size: 21px;
}

.section {
  padding-block: 48px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 32px;
}

.section-head h2 {
  max-width: none;
}

.section-head p {
  max-width: 340px;
  color: var(--muted);
  font-size: 14px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
}

.faq-layout .text-link {
  margin-top: 24px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  font-size: 15px;
  font-weight: 750;
  list-style: none;
  padding: 21px 30px 21px 0;
  cursor: pointer;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:after {
  position: absolute;
  right: 0;
  content: "+";
  font-size: 22px;
  color: var(--teal);
  top: 16px;
}

.faq-item[open] summary:after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  background: #0e2832;
  color: white;
  padding: 52px 0 max(22px, var(--focus-bottom-inset, 16px));
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img {
  width: 180px;
  height: 31px;
}

.footer-brand p {
  color: #adc3c7;
  font-size: 12px;
  max-width: 290px;
  margin-top: 20px;
  line-height: 1.85;
}

.footer-col h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9db7bd;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  padding: 5px 0;
  line-height: 1.7;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-bottom {
  margin-top: 35px;
  padding-top: 24px;
  border-top: 1px solid #2b444c;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 11px;
  color: #a7bdc1;
}

.footer-legal {
  margin-top: 20px;
  font-size: 10px;
  color: #9fb7bd;
  line-height: 1.8;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding-block: 26px;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.page-heading {
  max-width: 850px;
  padding: 24px 0 38px;
}

.page-heading h1 {
  font-size: clamp(34px,4vw,52px);
}

.page-heading .lead {
  margin-top: 22px;
  font-size: 17px;
  color: var(--muted);
  max-width: 740px;
  line-height: 1.85;
}

.updated {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 22px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0,780px) 280px;
  gap: 80px;
  padding-bottom: 70px;
}

.article-section {
  margin: 0 0 32px;
}

.article-section h2 {
  font-size: 27px;
  margin-bottom: 16px;
}

.article-section p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

.content-grid aside {
  align-self: start;
  position: sticky;
  top: 120px;
  border-top: 2px solid var(--teal);
  padding-top: 18px;
}

.content-grid aside h2 {
  font-size: 15px;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.content-grid aside a {
  font-size: 13px;
  display: block;
  padding: 10px 0;
  color: var(--teal);
  border-bottom: 1px solid var(--line);
}

.content-grid aside a:hover {
  text-decoration: underline;
}

.source-box {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
}

.source-box strong {
  display: block;
  margin-bottom: 10px;
}

.source-box a {
  display: block;
  color: var(--teal);
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.notice {
  background: #fff5d4;
  border-left: 3px solid #e2b525;
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  margin: 24px 0;
  color: #584914;
}

.wide-calc {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 70px;
  padding-bottom: 70px;
  align-items: start;
}

.wide-calc h2 {
  font-size: 28px;
}

.wide-calc p {
  color: var(--muted);
  margin-top: 18px;
}

.wide-calc .calculator p {
  margin-top: 11px;
}

.formula {
  font-size: 15px;
  background: var(--mint);
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
}

.offer-review {
  border: 1px solid var(--line);
  background: white;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 30px;
}

.offer-review h2 {
  font-size: 23px;
  margin-bottom: 20px;
}

.offer-review .receipt {
  margin-bottom: 20px;
}

.checklist {
  padding: 0;
  list-style: none;
  margin: 0 0 28px;
}

.checklist li {
  padding: 12px 0 12px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--teal);
}

.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.topic-tabs a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 44px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}

.template-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: white;
  margin: 25px 0;
}

.template-box h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.template-box textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
  resize: vertical;
}

.template-box p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.copy-result {
  min-height: 22px;
  font-size: 12px;
  color: var(--teal);
  margin-top: 10px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 24px 0;
}

.legal-table th,.legal-table td {
  text-align: left;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-table th {
  width: 40%;
  font-weight: 600;
}

.legal-table td {
  color: var(--muted);
}

.mobile-bar {
  display: none;
}

.cookie-note {
  position: fixed;
  bottom: 18px;
  left: 18px;
  max-width: 380px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 8px 35px #102d3820;
  z-index: 45;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 11px;
  color: var(--muted);
}

.cookie-note a {
  text-decoration: underline;
  color: var(--teal);
}

.cookie-note button {
  border: 0;
  background: var(--mint);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  margin-top: 10px;
  min-height: 40px;
}

.empty-page {
  text-align: center;
  padding: 90px 24px;
}

.empty-page .huge {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: var(--teal);
  letter-spacing: -.09em;
}

.empty-page h1 {
  margin: 25px 0;
  font-size: 32px;
}

.empty-page p {
  color: var(--muted);
  margin-bottom: 25px;
}

.no-js {
  font-size: 12px;
  padding: 10px;
  border: 1px solid #e2b525;
  background: #fff5d4;
}

.contacts-email {
  font-size: clamp(20px,3vw,30px);
  font-weight: 800;
  color: var(--teal);
  overflow-wrap: anywhere;
}

.summary-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.article-grid {
  margin-bottom: 70px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.noscript-metrika {
  position: absolute;
  left: -9999px;
}

[hidden] {
  display: none !important;
}

@media (min-width:1600px) {
  .hero {
    padding-block: 75px;
  }
}

@media (max-width:1100px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .header-row {
    gap: 22px;
  }

  .brand img {
    width: 155px;
  }

  .nav {
    gap: 18px;
    font-size: 13px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 430px;
    gap: 38px;
  }

  .hero h1 {
    font-size: 49px;
  }

  .content-grid {
    gap: 40px;
    grid-template-columns: minmax(0,1fr) 240px;
  }

  .footer-top {
    gap: 25px;
  }

  .wide-calc {
    gap: 35px;
    grid-template-columns: 1fr 460px;
  }
}

@media (max-width:820px) {
  .header-row {
    height: 72px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    box-shadow: 0 20px 25px #102d380d;
  }

  .nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
  }

  .nav a {
    padding: 12px 0;
  }

  .hero {
    grid-template-columns: 1fr 380px;
    gap: 26px;
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero .lead {
    font-size: 14px;
  }

  .calculator {
    padding: 22px;
  }

  .hero-links {
    gap: 16px;
    margin-top: 22px;
  }

  .hero-links .text-link {
    font-size: 12px;
  }

  .service-strip a {
    padding: 22px 16px;
    gap: 12px;
  }

  .service-icon {
    display: none;
  }

  .service-title {
    font-size: 13px;
  }

  .service-caption {
    font-size: 11px;
  }

  .section {
    padding-block: 52px;
  }

  .faq-layout {
    gap: 35px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .content-grid aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }

  .content-grid aside h2 {
    grid-column: 1/-1;
  }

  .wide-calc {
    grid-template-columns: 1fr 380px;
    gap: 30px;
  }

  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1/-1;
  }

  .footer-brand p {
    max-width: 520px;
  }
}

@media (max-width:650px) {
  html {
    scroll-padding-bottom: var(--focus-bottom-inset, calc(90px + env(safe-area-inset-bottom)));
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .header-row {
    height: 68px;
    gap: 12px;
  }

  .brand img {
    width: 144px;
    height: 25px;
  }

  .languages {
    font-size: 11px;
    padding: 3px;
  }

  .languages a {
    min-width: 32px;
    min-height: 36px;
  }

  .header-actions {
    gap: 10px;
  }

  .nav {
    top: 68px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 32px 0 30px;
    gap: 28px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: 43px;
    max-width: 440px;
  }

  .hero .lead {
    font-size: 15px;
    max-width: 440px;
    line-height: 1.75;
    margin-top: 20px;
  }

  .hero-links {
    margin-top: 22px;
    gap: 22px;
  }

  .calculator {
    padding: 23px 20px;
    border-radius: 20px;
  }

  .calc-heading {
    margin-bottom: 18px;
  }

  .calc-heading h2 {
    font-size: 21px;
  }

  .service-strip {
    grid-template-columns: 1fr;
  }

  .service-strip a {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }

  .service-icon {
    display: grid;
    width: 40px;
    height: 40px;
  }

  .service-title {
    font-size: 14px;
  }

  .service-caption {
    font-size: 12px;
  }

  .section {
    padding-block: 43px;
  }

  .section-head {
    display: block;
    margin-bottom: 26px;
  }

  .section-head p {
    margin-top: 17px;
    max-width: none;
    font-size: 14px;
  }

  .section-head .text-link {
    margin-top: 18px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-layout h2 {
    max-width: 300px;
  }

  .faq-item summary {
    font-size: 14px;
    line-height: 1.6;
    padding-block: 18px;
  }

  .site-footer {
    padding-top: 36px;
    padding-bottom: max(calc(90px + env(safe-area-inset-bottom)), var(--focus-bottom-inset, 0px));
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .footer-col:last-child {
    grid-column: 1/-1;
  }

  .footer-col:last-child a {
    display: inline-block;
    margin-right: 20px;
  }

  .footer-bottom {
    display: block;
    margin-top: 25px;
    font-size: 10px;
  }

  .footer-bottom span {
    display: block;
    margin-bottom: 10px;
  }

  .footer-legal {
    font-size: 10px;
  }

  .mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 8px;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
    z-index: 35;
  }

  .mobile-bar a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 9px;
  }

  .mobile-bar a:first-child {
    background: var(--yellow);
  }

  .mobile-bar .icon {
    width: 18px;
    height: 18px;
  }

  .cookie-note {
    left: 12px;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    max-width: none;
    padding: 13px 15px;
  }

  .breadcrumbs {
    padding-block: 22px;
    font-size: 11px;
  }

  .page-heading {
    padding: 12px 0 30px;
  }

  .page-heading h1 {
    font-size: 35px;
  }

  .page-heading .lead {
    font-size: 15px;
    line-height: 1.8;
    margin-top: 19px;
  }

  .updated {
    font-size: 10px;
    gap: 12px;
  }

  .content-grid {
    padding-bottom: 45px;
  }

  .article-section {
    margin-bottom: 28px;
  }

  .article-section h2 {
    font-size: 25px;
  }

  .article-section p {
    font-size: 15px;
    line-height: 1.9;
  }

  .wide-calc {
    grid-template-columns: 1fr;
    padding-bottom: 45px;
    gap: 30px;
  }

  .wide-calc .calculator {
    grid-row: 1;
  }

  .offer-review {
    padding: 23px 20px;
  }

  .offer-review h2 {
    font-size: 24px;
  }

  .legal-table {
    font-size: 12px;
  }

  .legal-table th,.legal-table td {
    padding: 12px 5px;
  }

  .template-box {
    padding: 20px 16px;
  }

  .template-box h2 {
    font-size: 23px;
  }

  .article-grid {
    margin-bottom: 40px;
  }

  .number-wrap input {
    width: 118px;
  }

  .receipt-total strong {
    font-size: 28px;
  }
}

@media (max-width:360px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: 37px;
  }

  .brand img {
    width: 128px;
  }

  .header-actions {
    gap: 7px;
  }

  .languages a {
    min-width: 29px;
  }

  .calculator {
    padding: 20px 16px;
  }

  .receipt {
    padding: 15px;
  }

  .calc-heading h2 {
    font-size: 19px;
  }

  .receipt-total strong {
    font-size: 26px;
  }

  .service-strip .arrow {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,*:before,*:after {
    animation: none !important;
    transition: none !important;
  }

  .btn:hover {
    transform: none;
  }
}

@media print {
  .site-header,.mobile-bar,.cookie-note,.site-footer,.btn,.nav,.menu-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .wrap {
    width: 100%;
  }

  .content-grid {
    display: block;
  }

  .content-grid aside {
    display: none;
  }

  .calculator {
    box-shadow: none;
  }

  details:not([open])>*:not(summary) {
    display: block !important;
  }

  .hero {
    display: block;
  }
}

/* Keep the calculation within reach on smaller screens. */

@media (max-width:650px) {
  .hero {
    gap: 24px;
  }

  .hero .lead {
    margin-top: 18px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .calc-heading {
    align-items: flex-start;
  }

  .calc-heading h2 {
    max-width: 64%;
  }

  .calc-heading .tag {
    margin-top: 4px;
  }

  .site-header {
    background: var(--paper);
  }
}

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

.range {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 30px;
}

.range::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(to right,var(--teal) 0 var(--fill,10%),#dce4df var(--fill,10%) 100%);
  border-radius: 4px;
}

.range::-moz-range-track {
  height: 4px;
  background: #dce4df;
  border-radius: 4px;
}

.range::-moz-range-progress {
  height: 4px;
  background: var(--teal);
  border-radius: 4px;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid white;
  box-shadow: 0 0 0 1px var(--teal);
  margin-top: -7.5px;
}

.range::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: var(--teal);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--teal);
}

.footer-requisites {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #2b444c;
  max-width: 100%;
  color: #b9cdd1;
  font-size: 13px;
  line-height: 1.8;
}

.footer-requisites h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9db7bd;
  margin-bottom: 14px;
}

.footer-requisites p+p {
  margin-top: 5px;
}

.footer-requisites strong {
  font-weight: 700;
  color: white;
}

.footer-requisites a {
  color: #d8e9ec;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-requisites a:hover {
  color: var(--yellow);
}

@media (max-width:650px) {
  .footer-requisites {
    font-size: 12px;
    line-height: 1.85;
    margin-top: 28px;
    padding-top: 23px;
  }

  .footer-requisites p {
    overflow-wrap: anywhere;
  }
}

/* Editorial attribution, document requests and worked examples. */

.article-attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.article-attribution a,.source-inline a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.document-catalog ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.document-catalog li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.document-catalog li strong {
  font-size: 15px;
}

.document-catalog li a {
  flex-shrink: 0;
}

.support-request .text-link {
  margin-top: 18px;
}

.comparison-scroll {
  max-width: 100%;
  overflow: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.example-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

.example-table th,.example-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.example-table thead {
  background: var(--mint);
}

.example-table .text-link {
  font-size: 13px;
  min-height: 44px;
}

.source-inline {
  margin-top: 14px;
  color: var(--muted);
}

@media (max-width:600px) {
  .document-catalog li {
    display: block;
  }

  .document-catalog li a {
    display: flex;
    margin-top: 10px;
    min-height: 44px;
  }

  .example-table th,.example-table td {
    padding: 10px;
  }

  .article-attribution {
    font-size: 12px;
  }
}

.content-grid > * {
  min-width: 0;
}

/* Homepage and editorial lists */
.before-apply {
  margin-top: 42px;
}

.before-apply h2 {
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 750;
}

.before-apply ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.before-apply li {
  margin-top: 8px;
}

.before-apply .text-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cost-explanation {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.cost-explanation h2 {
  font-size: 27px;
  max-width: 360px;
}

.cost-explanation p {
  color: var(--muted);
  font-size: 15px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 18px;
}

.source-links a {
  font-size: 13px;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-link {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  column-gap: 64px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.article-title {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -.02em;
  font-weight: 700;
}

.article-link p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.article-link:hover .article-title {
  text-decoration: underline;
  text-underline-offset: 5px;
  color: var(--teal);
}

@media (max-width: 820px) {
  .hero {
    gap: 28px;
  }

  .hero-copy {
    padding-block: 0;
  }

  .before-apply {
    margin-top: 26px;
  }

  .cost-explanation, .article-link {
    column-gap: 32px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 32px 0;
  }

  .cost-explanation, .article-link {
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
  }

  .cost-explanation {
    padding: 32px 0;
  }

  .cost-explanation h2 {
    font-size: 25px;
  }

  .article-link {
    padding: 22px 0;
  }

  .article-title {
    font-size: 21px;
  }

  .section-head h2 {
    font-size: 28px;
  }
}

/* Price remains visible before the editable assumptions. */
.calculator .receipt { margin: 0 0 24px; display: flex; flex-direction: column; }
.calculator .receipt-total { order: -1; margin: 0 0 12px; padding: 0 0 12px; border-top: 0; border-bottom: 1px solid var(--line); }
.calc-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.calc-tools .reset { min-height: 44px; margin: 0; }
.hero + .before-apply { margin: 0 0 32px; }
.hero + .before-apply ul { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.privacy-settings { background: transparent; color: white; border: 1px solid #7e9198; border-radius: 6px; min-height: 44px; margin-top: 16px; padding: 8px 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { min-height: 44px; flex: 1; }
.search-controls { margin-bottom: 28px; }
.search-controls label { font-weight: 750; display: block; margin-bottom: 8px; }
.search-row { display: flex; gap: 12px; }
.search-row input { min-width: 0; width: 100%; border: 1px solid #8ca3a8; background: white; border-radius: 7px; min-height: 48px; padding: 10px 14px; }
.search-controls [role=status] { margin-top: 12px; }
.help-results { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.help-result { border-bottom: 1px solid var(--line); }
.help-result a { display: block; padding: 24px 0; }
.help-result h2 { font-size: 20px; color: var(--teal); }
.help-result p { margin-top: 8px; color: var(--muted); }
[aria-invalid=true] { outline: 2px solid #a32323; outline-offset: 2px; }
[hidden] { display: none !important; }
@media (max-width:650px) {
  .hero { padding-top: 24px; gap: 18px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { margin-top: 14px; }
  .hero-links { margin-top: 12px; }
  .calculator { padding: 20px 16px; border-radius: 14px; }
  .calculator .receipt { margin-bottom: 20px; }
  .calculator .receipt-total strong { font-size: 30px; }
  .calc-heading { margin-bottom: 14px; }
  .hero + .before-apply ul { display: block; }
  .help-results { grid-template-columns: 1fr; }
}
@media print {
  body:has([data-calculator]) .page-heading, body:has([data-calculator]) .breadcrumbs,
  body:has([data-calculator]) .hero-copy, body:has([data-calculator]) .before-apply,
  body:has([data-calculator]) .service-strip, body:has([data-calculator]) .cost-explanation,
  body:has([data-calculator]) .section, body:has([data-calculator]) .calc-explanation,
  .calc-tools, .privacy-settings, .cookie-note, .search-controls, .range, .range-scale,
  .calculator .calc-field, .calculator .calc-assumptions { display: none !important; }
  .hero, .wide-calc { display: block; padding: 0; }
  .calculator { border: 0; padding: 0; max-width: 680px; margin: auto; }
  .calculator .receipt { break-inside: avoid; }
  .calculator .calc-note { font-size: 12px; }
}

.print-only { display: none; }
@media print { .print-only { display: block; margin-bottom: 16px; } .wide-calc > div:first-child { display: none; } }
