* {
  box-sizing: border-box;
}

/* PageSpeed stability and accessibility: reserve the client-rendered list's
   final footprint and keep text contrast readable without recoloring icons. */
@media (min-width: 761px) {
  .home-page #popularGrid {
    min-height: 704px;
  }
}

@media (max-width: 760px) {
  .home-page #popularGrid {
    min-height: 136px;
  }
}

.home-page .calc-item h3,
.home-page .related-item > span:last-child {
  color: #12325b;
}

.home-page .text-link {
  color: #006f3f;
}

.home-page .cookie-primary {
  background: #007a43;
  color: #fff;
}

.mobile-menu__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.42;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.page a {
  text-decoration: none;
}

.page a:hover,
.page a:focus-visible {
  text-decoration: none;
}

.page {
  width: 100%;
  min-width: 0;
  margin: 0;
  background: var(--color-bg);
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(6, 23, 56, .03);
}

.container {
  width: min(calc(100% - 56px), var(--container));
  margin-left: auto;
  margin-right: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-5);
  height: 62px;
}

.logo {
  width: 127px;
  height: auto;
  display: block;
}

.home-directory-brand {
  display: none;
}

.home-directory-brand,
.directory-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.brand-mark-img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: block;
  object-fit: contain;
}

.nav,
.top-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 500;
}

.nav {
  margin-left: 19px;
}

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

.nav a,
.top-actions a,
.footer a {
  color: inherit;
  text-decoration: none;
}

.nav a.dropdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav a.dropdown::after {
  content: "";
  width: 8px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' stroke='%2341636d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  opacity: .7;
}

.contact-btn,
.primary-btn,
.subscribe button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #10bd6c 0%, #00a657 100%);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 166, 87, .22);
}

.contact-btn {
  min-width: 84px;
  padding: 0 10px;
  gap: 7px;
  font-size: 12px;
}

.menu-toggle,
.menu-close {
  display: none;
}

.menu-backdrop,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  padding: 28px 0 8px;
  min-height: 300px;
  overflow: hidden;
  background:
    radial-gradient(circle at 56% 18%, rgba(190, 216, 238, .26), transparent 7%),
    radial-gradient(circle at 73% 30%, rgba(221, 240, 255, .26), transparent 15%),
    #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 144px;
  height: 144px;
  left: -72px;
  bottom: -46px;
  background: linear-gradient(130deg, #00cdf4 0%, #14d989 72%);
}

.hero::after {
  width: 112px;
  height: 112px;
  left: 64px;
  bottom: -72px;
  background: #0eca8c;
}

.hero-dot {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.hero-dot--yellow {
  width: 48px;
  height: 48px;
  right: 0;
  bottom: 0;
  background: #ffbd20;
}

.hero-dot--green {
  width: 14px;
  height: 14px;
  left: calc(100% + 8px);
  top: 6px;
  background: var(--color-green);
}

.hero-dots-grid {
  position: absolute;
  left: 388px;
  top: 52px;
  width: 50px;
  height: 62px;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, #b9d9f2 1.35px, transparent 1.35px);
  background-size: 7px 7px;
  opacity: .72;
  border-radius: 50%;
}

.hero-dots-wave {
  position: absolute;
  left: 154px;
  bottom: 0;
  width: 286px;
  height: 66px;
  pointer-events: none;
  z-index: 0;
  opacity: .48;
  background-image: radial-gradient(circle, #b8d9f2 1.25px, transparent 1.25px);
  background-size: 7px 7px;
  clip-path: ellipse(52% 33% at 36% 78%);
}

.hero-dots-wave--front {
  left: 304px;
  bottom: -1px;
  width: 130px;
  height: 58px;
  opacity: .72;
  clip-path: ellipse(58% 44% at 50% 86%);
}

.hero-dots-wave::before,
.hero-dots-wave::after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 104px;
  height: 42px;
  background: inherit;
  background-size: inherit;
  border-radius: 50% 50% 0 0;
}

.hero-dots-wave::before {
  left: 40px;
  opacity: .62;
  transform: translateY(8px);
}

.hero-dots-wave::after {
  right: -4px;
  opacity: .78;
  transform: translateY(2px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 362px;
  gap: 46px;
  align-items: start;
}

.hero h1 {
  position: relative;
  margin: 0;
  max-width: 390px;
  font-size: 42px;
  line-height: .98;
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1 .calc-line {
  position: relative;
  display: block;
  color: var(--color-green);
  font-size: 50px;
}

.hero h1 .calc-word {
  position: relative;
  display: inline-block;
}

.lead {
  margin: 9px 0 15px;
  color: var(--color-muted);
  font-size: 15px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(396px, 100%);
  max-width: 100%;
  height: 38px;
  padding: 0 8px 0 14px;
  border: 1px solid #bfcddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 92, 145, .12);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--color-muted);
}

.search button {
  width: 58px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: var(--color-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.quick-tags,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid #dce7f2;
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-muted);
  font-size: 10px;
}

.calculator-card {
  width: 100%;
  justify-self: end;
  position: relative;
  z-index: 2;
  padding: 15px 17px;
  border: 1px solid #e0e8f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.calculator-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 98% 15%, rgba(22, 136, 255, .08), transparent 28%);
  pointer-events: none;
}

.card-title,
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-weight: 800;
}

.card-title {
  justify-content: space-between;
  font-size: 18px;
}

.live {
  padding: 5px 9px;
  border-radius: 6px;
  background: #d9fff5;
  color: #00a56a;
  font-size: 10px;
  font-weight: 800;
}

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

.select-like,
.field input,
.field select {
  width: 100%;
  height: 29px;
  border: 1px solid #d8e2ed;
  border-radius: 5px;
  background: #fff;
  color: var(--color-ink);
}

.quick-select {
  position: relative;
  grid-column: 1 / -1;
  z-index: 5;
}

.quick-fields {
  display: contents;
}

.select-like {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  grid-column: 1 / -1;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
}

.select-like svg {
  flex: 0 0 auto;
  color: #355174;
  transition: transform .18s ease;
}

.quick-select.is-open .select-like {
  border-color: rgba(8, 174, 100, .65);
  box-shadow: 0 0 0 3px rgba(8, 174, 100, .11);
}

.quick-select.is-open .select-like svg {
  transform: rotate(180deg);
}

.quick-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 5px;
  max-height: 236px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(17, 40, 77, .14);
}

.quick-select-menu[hidden] {
  display: none;
}

.quick-option {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  text-align: left;
}

.quick-option:hover,
.quick-option:focus-visible,
.quick-option.is-selected {
  background: #eefaf5;
  outline: none;
}

.quick-option__icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: color-mix(in srgb, currentColor 12%, white);
  color: currentColor;
}

.quick-option__icon svg {
  width: 17px;
  height: 17px;
}

.quick-option__text {
  min-width: 0;
}

.quick-option__title,
.quick-option__meta {
  display: block;
}

.quick-option__title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.quick-option__meta {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 10px;
  line-height: 1.2;
}

.quick-option__check {
  color: var(--color-green);
  font-size: 11px;
  font-weight: 800;
}

.field label {
  display: block;
  margin-bottom: 3px;
  color: #273f62;
  font-size: 10px;
  font-weight: 600;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 8px;
}

.money,
.percent {
  position: relative;
}

.money::before {
  content: "$";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
}

.money[data-prefix]::before {
  content: attr(data-prefix);
}

.money input {
  padding-left: 28px;
}

.percent::after {
  content: "%";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.percent[data-suffix]::after {
  content: attr(data-suffix);
}

.percent input {
  padding-right: 24px;
}

.result {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(25, 192, 118, .12), rgba(12, 172, 107, .05));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

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

.result strong {
  display: block;
  color: var(--color-green);
  font-size: 25px;
  line-height: 1.1;
}

.section {
  padding: 9px 0;
  border-top: 1px solid #edf2f7;
}

.category-section {
  padding: 34px 0 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 18px;
}

.section .lead {
  margin: 0 0 8px;
  font-size: 12px;
}

.text-link {
  color: var(--color-green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
  row-gap: 15px;
}

.calc-item,
.related-item {
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  gap: 10px;
  align-items: center;
}

.calc-item {
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.calc-item:hover h3,
.calc-item:focus-visible h3 {
  color: var(--color-green);
}

.calc-item:focus-visible {
  outline: 3px solid rgba(8, 174, 100, .18);
  outline-offset: 4px;
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 7%, white);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.calc-item h3,
.category h3,
.browse-copy h3 {
  margin: 0 0 3px;
  font-size: 13px;
}

.calc-item p,
.category p,
.browse-copy p {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.45;
}

.categories {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 148px;
  padding: 22px 8px 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 8%, white);
  text-align: center;
  overflow: hidden;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: geometricPrecision;
}

.category > * {
  max-width: 100%;
  min-width: 0;
}

.category .icon-box {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0 auto 9px;
  border: 0;
  background: transparent;
}

.category .icon-box svg {
  width: 32px;
  height: 32px;
}

.category h3 {
  flex: 0 0 auto;
  width: 100%;
  margin-bottom: 4px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.18;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.category p {
  flex: 0 0 auto;
  width: 100%;
  max-width: 72px;
  max-height: 36px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 7.2px;
  line-height: 1.24;
  font-weight: 500;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.category a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 5px;
  color: currentColor;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 9.5px;
  line-height: 1.1;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.browse {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}

.subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.subhead::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 4px;
  background: var(--color-green);
}

.calc-panel {
  padding: 12px 16px;
  border: 1px solid #dde6f1;
  border-radius: 9px;
  box-shadow: var(--shadow-soft);
}

.formula {
  margin-top: 10px;
  padding-left: 20px;
  border-left: 1px solid #dfe8f1;
}

.equation {
  margin: 14px 0;
  padding: 14px 18px;
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(6, 174, 100, .08), rgba(19, 178, 132, .02));
  font-family: Georgia, serif;
  font-size: 18px;
}

.related-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr) 32px;
  gap: 8px;
}

.related-item {
  grid-template-columns: 24px 1fr;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #dfe8f2;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}

.faq-list {
  border: 1px solid #dce7f2;
  border-radius: 8px;
  overflow: hidden;
}

.faq-entry {
  background: white;
  border-bottom: 1px solid #dce7f2;
}

.faq-entry:last-child {
  border-bottom: 0;
}

.faq-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 0 16px;
  border: 0;
  background: white;
  color: var(--color-navy);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform .18s ease;
}

.faq-entry.is-open .faq-item svg {
  transform: rotate(180deg);
}

.faq-panel {
  padding: 0 16px 14px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.55;
  background: linear-gradient(180deg, white, #fbfdff);
}

.faq-panel p {
  margin: 0;
}

.newsletter,
.footer,
.bottom-bar {
  width: 100%;
}

.newsletter {
  padding: 11px 0;
  border-top: 1px solid #edf2f7;
  background: #fff;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  align-items: center;
  width: min(calc(100% - 56px), var(--container));
  margin-left: auto;
  margin-right: auto;
}

.newsletter-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.subscribe {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 8px;
}

.subscribe input {
  min-width: 0;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #d8e2ed;
  border-radius: 5px;
}

.footer {
  padding: 7px 0;
  border-top: 1px solid #edf2f7;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 34px;
  width: min(calc(100% - 56px), var(--container));
  margin-left: auto;
  margin-right: auto;
}

.footer-logo {
  width: 118px;
}

.footer p,
.footer li,
.cookie {
  color: var(--color-muted);
  font-size: 12px;
}

.footer h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.footer-toggle {
  display: none;
}

.footer ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-inner > div:nth-child(3) ul {
  grid-template-columns: repeat(2, max-content);
  column-gap: 32px;
}

.socials {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.socials span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #8aa0bc;
  border-radius: 999px;
  color: #30486c;
  font-size: 11px;
}

.bottom-bar {
  padding: 10px 0;
  border-top: 1px solid #edf2f7;
}

.bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 56px), var(--container));
  margin-left: auto;
  margin-right: auto;
}

.accent-green { color: var(--color-green); }
.accent-blue { color: var(--color-blue); }
.accent-purple { color: var(--color-purple); }
.accent-orange { color: var(--color-orange); }
.accent-pink { color: var(--color-pink); }
.accent-teal { color: var(--color-teal); }
.accent-yellow { color: var(--color-yellow); }

svg {
  width: 1.25em;
  height: 1.25em;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
    background: #f6fbff;
  }

  .container {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 60px;
    padding: 0;
    flex-wrap: nowrap;
    gap: 12px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
  }

  .logo {
    width: 124px;
  }

  .nav {
    display: none;
  }

  .top-actions {
    gap: 8px;
    margin-left: auto;
    font-size: 13px;
  }

  .language {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #e1ebf5;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(30, 92, 148, .05);
  }

  .contact-btn {
    display: none;
  }

  .menu-toggle,
  .menu-close {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dce8f2;
    border-radius: 14px;
    background: #fff;
    color: var(--color-ink);
    box-shadow: 0 8px 20px rgba(29, 86, 139, .08);
    cursor: pointer;
  }

  .menu-toggle svg,
  .menu-close svg {
    width: 18px;
    height: 18px;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    background: rgba(7, 23, 50, .38);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }

  .menu-backdrop[hidden] {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 31;
    display: flex;
    flex-direction: column;
    width: min(86vw, 340px);
    height: 100dvh;
    padding: 18px;
    border-left: 1px solid #dce8f2;
    background:
      radial-gradient(circle at 88% 8%, rgba(0, 192, 127, .12), transparent 24%),
      #fff;
    box-shadow: -24px 0 60px rgba(8, 32, 72, .18);
    transform: translateX(102%);
    transition: transform .26s ease;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open .mobile-menu {
    transform: translateX(0);
  }

  .mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf3f8;
  }

  .mobile-menu__logo {
    width: 138px;
    height: auto;
  }

  .mobile-menu__nav {
    display: grid;
    gap: 8px;
    padding: 20px 0;
  }

  .mobile-menu__nav a,
  .mobile-menu__tools :where(a, button) {
    color: var(--color-ink);
    text-decoration: none;
  }

  .mobile-menu__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #e2edf6;
    border-radius: 14px;
    background: #f8fcff;
    font-size: 15px;
    font-weight: 750;
  }

  .mobile-menu__tools {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #edf3f8;
  }

  .mobile-menu__tools :where(a, button) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-muted);
    text-align: left;
    font-size: 14px;
    font-weight: 650;
  }

  .mobile-menu__tools .primary-btn {
    min-height: 50px;
  }

  .hero {
    min-height: auto;
    padding: 20px 0 28px;
    border-top: 1px solid #eef5fb;
    background:
      radial-gradient(circle at 84% 13%, rgba(0, 195, 130, .16), transparent 14%),
      radial-gradient(circle at 14% 86%, rgba(12, 184, 242, .18), transparent 21%),
      linear-gradient(180deg, #fff 0%, #f6fbff 100%);
  }

  .hero::before {
    width: 150px;
    height: 150px;
    left: -88px;
    bottom: -58px;
  }

  .hero::after {
    width: 116px;
    height: 116px;
    left: 58px;
    bottom: -76px;
  }

  .hero-dot--yellow {
    width: 42px;
    height: 42px;
    right: -13px;
    bottom: 54px;
  }

  .hero-dot--green {
    left: auto;
    right: 10px;
    top: 8px;
  }

  .hero-dots-grid {
    left: auto;
    right: 18px;
    top: 86px;
    width: 54px;
    height: 68px;
    opacity: .54;
  }

  .hero-dots-wave,
  .hero-dots-wave--front {
    left: 64px;
    width: 250px;
    bottom: 0;
    opacity: .36;
  }

  .hero-grid,
  .browse,
  .newsletter-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 18px;
  }

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

  .newsletter-inner,
  .footer-inner,
  .bottom-inner {
    width: calc(100% - 36px);
    margin-left: 18px;
    margin-right: 18px;
  }

  .hero h1 {
    max-width: 340px;
    font-size: 36px;
    line-height: .96;
  }

  .search {
    width: 100%;
    height: 52px;
    padding: 0 8px 0 16px;
    border-color: #c8d9e8;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(12, 92, 140, .12);
  }

  .hero h1 span {
    font-size: 42px;
  }

  .lead {
    max-width: 290px;
    margin: 10px 0 16px;
    font-size: 15px;
    line-height: 1.45;
  }

  .search button {
    width: 78px;
    height: 38px;
    border-radius: 10px;
  }

  .quick-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 9px;
    width: 100%;
    padding: 2px 0 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 34px), transparent 100%);
  }

  .pill {
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 38px;
    justify-content: center;
    padding: 0 13px;
    border-radius: 10px;
    font-size: 12px;
    scroll-snap-align: start;
    box-shadow: 0 7px 16px rgba(28, 86, 143, .05);
  }

  .quick-tags::-webkit-scrollbar {
    display: none;
  }

  .trust-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .trust {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    font-size: 12px;
    box-shadow: 0 6px 16px rgba(28, 86, 143, .04);
  }

  .trust-row::-webkit-scrollbar {
    display: none;
  }

  .calculator-card {
    justify-self: stretch;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(16, 63, 107, .13);
  }

  .hero .calculator-card .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero .calculator-card .form-grid .field {
    display: none;
  }

  .card-title {
    font-size: 17px;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .select-like {
    grid-column: 1 / -1;
  }

  .select-like,
  .field input,
  .field select {
    height: 42px;
    font-size: 13px;
  }

  .field label {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 8px;
  }

  .result {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
  }

  .result strong {
    font-size: 28px;
  }

  .primary-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
  }

  .section {
    padding: 24px 0;
    border-top: 0;
  }

  .section + .section,
  .newsletter {
    border-top: 1px solid #e8f1f8;
  }

  .section-head {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
  }

  .section-title,
  .subhead {
    font-size: 18px;
    line-height: 1.2;
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 176, 96, .08);
    font-size: 11px;
    white-space: nowrap;
  }

  .popular-grid {
    display: flex;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
  }

  .popular-grid::-webkit-scrollbar {
    display: none;
  }

  .calc-item {
    position: relative;
    flex: 0 0 min(78vw, 286px);
    grid-template-columns: 50px 1fr 22px;
    align-items: start;
    min-height: 136px;
    padding: 16px 14px;
    border: 1px solid #e0ebf5;
    border-radius: 16px;
    background: #fff;
    scroll-snap-align: start;
    box-shadow: 0 10px 26px rgba(23, 82, 139, .06);
  }

  .calc-item > span:last-child {
    position: static;
    align-self: center;
    justify-self: end;
  }

  .calc-item h3 {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.2;
  }

  .calc-item p {
    display: -webkit-box;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.42;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .icon-box {
    width: 48px;
    height: 48px;
  }

  .category-section {
    padding: 36px 0 30px;
    background: linear-gradient(180deg, #fff 0%, #f7fcff 100%);
  }

  .categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
  }

  .category {
    height: 172px;
    padding: 19px 12px 15px;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(23, 82, 139, .07);
  }

  .category .icon-box {
    width: 40px;
    height: 40px;
    margin-bottom: 9px;
  }

  .category .icon-box svg {
    width: 32px;
    height: 32px;
  }

  .category h3 {
    font-size: 13px;
    line-height: 1.2;
  }

  .category p {
    max-width: 132px;
    max-height: none;
    font-size: 10px;
    line-height: 1.32;
  }

  .category a {
    font-size: 12px;
  }

  .related-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .related-item {
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
  }

  .browse {
    gap: 18px;
  }

  .browse-copy h3 {
    font-size: 16px;
  }

  .browse-copy p {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .calc-panel {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 82, 139, .06);
  }

  .browse .result,
  .calc-panel .result {
    margin-top: 14px;
  }

  .browse .result strong,
  .calc-panel .result strong {
    font-size: 30px;
  }

  .formula {
    padding: 16px;
    border: 1px solid #e0ebf5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(23, 82, 139, .05);
    padding-left: 16px;
    border-left: 0;
  }

  .formula h3 {
    margin: 0 0 10px;
    font-size: 16px;
  }

  .formula p {
    font-size: 12px;
    line-height: 1.55;
  }

  .equation {
    padding: 16px 12px;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .faq-list {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(23, 82, 139, .04);
  }

  .faq-item {
    min-height: 50px;
    padding: 0 14px;
    gap: 14px;
    text-align: left;
    font-size: 13px;
    line-height: 1.25;
  }

  .faq-item span {
    min-width: 0;
  }

  .newsletter {
    padding: 22px 0;
    background: #f7fcff;
  }

  .newsletter-copy {
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #e0ebf5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(23, 82, 139, .05);
  }

  .newsletter-copy .icon-box {
    flex: 0 0 auto;
  }

  .newsletter-copy h3 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.25;
  }

  .newsletter-copy p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .subscribe {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .subscribe input,
  .subscribe button {
    height: 44px;
    border-radius: 12px;
  }

  .footer {
    padding: 24px 0 12px;
    background: #fff;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-brand {
    padding-bottom: 18px;
    border-bottom: 1px solid #e7f0f8;
  }

  .footer-logo {
    width: 132px;
  }

  .footer p {
    max-width: 260px;
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.55;
  }

  .socials span {
    width: 30px;
    height: 30px;
  }

  .footer-group {
    border-bottom: 1px solid #e7f0f8;
  }

  .footer h3 {
    display: none;
  }

  .footer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-ink);
    font-size: 15px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
  }

  .footer-toggle svg {
    transition: transform .2s ease;
  }

  .footer-group.is-open .footer-toggle svg {
    transform: rotate(180deg);
  }

  .footer ul,
  .footer-inner > div:nth-child(3) ul {
    grid-template-columns: 1fr;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    transition: max-height .22s ease, padding-bottom .22s ease;
  }

  .footer-inner .footer-group.is-open ul {
    display: grid;
    grid-template-columns: 1fr;
    max-height: 320px;
    padding-bottom: 14px;
  }

  .footer li {
    min-height: 32px;
    font-size: 13px;
    line-height: 32px;
  }

  .bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Homepage category mosaic: matched to the approved rich category concept. */
.category-section {
  padding: 34px 0 32px;
  background: #fff;
}

.category-section .container > .section-title {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -.035em;
}

.category-section .container::after {
  content: "Find the right tool for every decision";
  display: block;
  margin-top: -1px;
  color: var(--color-muted);
  font-size: 13px;
}

.categories {
  display: grid;
  grid-template-columns: minmax(280px, 1.55fr) minmax(220px, 1.15fr) minmax(150px, .82fr) minmax(150px, .82fr);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.category {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  height: auto;
  min-height: 156px;
  padding: 18px 18px 16px;
  border: 1px solid color-mix(in srgb, currentColor 26%, #dfe7f1);
  border-radius: 15px;
  background: color-mix(in srgb, currentColor 5%, #fff);
  box-shadow: 0 8px 18px rgba(21, 44, 77, .035);
  text-align: left;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category:hover,
.category:focus-within {
  transform: translateY(-2px);
  border-color: currentColor;
  box-shadow: 0 14px 26px rgba(21, 44, 77, .1);
}

.category::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 10%, transparent);
  pointer-events: none;
}

.category-featured { grid-row: 1 / span 2; }
.category-medium { min-height: 148px; }
.category-compact { min-height: 148px; padding: 16px 15px 14px; }

.category-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.category .icon-box {
  width: 42px;
  height: 42px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  color: currentColor;
  background: color-mix(in srgb, currentColor 12%, white);
  flex: 0 0 42px;
}

.category .icon-box svg { width: 25px; height: 25px; }

.category h3 {
  min-width: 0;
  margin: 0;
  color: #071738;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 850;
  overflow-wrap: normal;
}

.category-count {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: currentColor;
  background: color-mix(in srgb, currentColor 12%, white);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.category p {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 230px;
  max-height: none;
  margin: 13px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.4;
}

.category a {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 14px;
  color: currentColor;
  font-size: 12px;
  font-weight: 850;
}

.category a svg { width: 15px; height: 15px; margin-left: 4px; }

.category-quick-tools {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.category-quick-tools span {
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, currentColor 16%, #fff);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: #163052;
  font-size: 10px;
  font-weight: 750;
}

@media (max-width: 1050px) {
  .categories { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
  .category-featured { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 700px) {
  .category-section { padding: 28px 0 24px; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  .category-featured { grid-column: 1 / -1; }
  .category, .category-medium, .category-compact { min-height: 154px; padding: 14px 13px 13px; border-radius: 13px; }
  .category .icon-box { width: 36px; height: 36px; flex-basis: 36px; }
  .category .icon-box svg { width: 22px; height: 22px; }
  .category h3 { font-size: 14px; }
  .category-count { padding: 4px 6px; font-size: 9px; }
  .category p { margin-top: 10px; font-size: 10px; line-height: 1.35; }
  .category a { padding-top: 10px; font-size: 11px; }
  .category-quick-tools span { padding: 5px 6px; font-size: 9px; }
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.topbar {
  position: relative;
  z-index: 100;
}

.language-switcher__button {
  position: relative;
  z-index: 2;
}

.language-switcher__label {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  gap: 3px;
  width: 350px;
  max-height: min(430px, calc(100vh - 90px));
  overflow: auto;
  padding: 8px;
  border: 1px solid #d9e2ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 45, 85, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: transform .12s ease;
}

.language-switcher.is-open .language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-option {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #122640;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.language-option:hover,
.language-option.is-active {
  background: #eef4ff;
  color: #1761d2;
}

.language-option small {
  color: #93a1b4;
  font-size: 9px;
  letter-spacing: .8px;
}

.language-option__flag {
  display: block;
  width: 24px;
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(12,38,70,.18);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12,38,70,.08);
}
.language-option__flag svg,
.language-current-flag svg { display:block; width:100%; height:100%; }
.language-current-flag { display:inline-block; flex:0 0 auto; width:22px; height:15px; overflow:hidden; border:1px solid rgba(12,38,70,.18); border-radius:2px; }

/* Homepage responsive finish: one stable type and icon scale after legacy rules. */
.page > .topbar [data-icon-rendered] svg,
.page > .hero [data-icon-rendered] svg,
.page > .section [data-icon-rendered] svg,
.page > .newsletter [data-icon-rendered] svg,
.page > .footer [data-icon-rendered] svg {
  display: block;
  width: 18px;
  height: 18px;
  max-width: none;
  flex: 0 0 auto;
}
.page > .topbar .menu-toggle [data-icon-rendered] svg,
.page > .topbar .menu-toggle svg { width: 22px; height: 22px; }
.page > .hero .card-title [data-icon-rendered] svg,
.page > .section .section-title [data-icon-rendered] svg { width: 24px; height: 24px; }

@media (max-width: 760px) {
  .page > .topbar {
    min-height: 60px !important;
    padding: 0 16px !important;
    gap: 10px !important;
  }
  .page > .topbar .logo { width: 108px !important; height: auto !important; }
  .page > .topbar .top-actions { gap: 8px !important; }
  .page > .topbar :where(.language, .lang-btn, .language-switcher__button) {
    min-height: 44px !important;
    padding: 0 11px !important;
    gap: 7px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }
  .page > .topbar .menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 11px !important;
  }
  .page > .topbar .language-menu {
    width: min(320px, calc(100vw - 32px)) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 8px !important;
  }
  .page > .topbar .language-option {
    grid-template-columns: 24px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 8px !important;
    font-size: 13px !important;
  }
  .page > .topbar .language-option__flag {
    width: 24px !important;
    height: 16px !important;
  }
  .page > .topbar .language-option > span:nth-child(2) {
    min-width: 0;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page > .topbar .language-option small {
    display: block !important;
    font-size: 9px !important;
    line-height: 1 !important;
  }
  .page > .hero { padding: 24px 0 28px !important; }
  .page > .hero .hero-grid { gap: 24px !important; }
  .page > .hero h1 {
    max-width: 540px;
    margin: 0 !important;
    font-size: clamp(36px, 9.6vw, 46px) !important;
    line-height: 1.02 !important;
    letter-spacing: -1.5px !important;
  }
  .page > .hero .lead {
    margin: 18px 0 16px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
  .page > .hero .search { gap: 8px !important; }
  .page > .hero .search input,
  .page > .hero .search button {
    min-height: 48px !important;
    font-size: 15px !important;
  }
  .page > .hero :where(.quick-tags, .trust-row) {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }
  .page > .hero :where(.quick-tags, .trust-row)::-webkit-scrollbar { display: none; }
  .page > .hero :where(.quick-tags, .trust-row) > * {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
  }
  .page > .hero .quick-tags { gap: 8px !important; margin-top: 12px !important; }
  .page > .hero .quick-tags a { min-height: 40px !important; padding: 0 13px !important; font-size: 13px !important; }
  .page > .hero .trust-row { gap: 18px !important; margin-top: 14px !important; font-size: 12px !important; }
  .page > .hero .calculator-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }
  .page > .hero .card-title { margin-bottom: 14px !important; font-size: 22px !important; line-height: 1.2 !important; }
  .page > .hero .calculator-card label { font-size: 12px !important; line-height: 1.35 !important; }
  .page > .hero .calculator-card :where(input, select, button) { min-height: 46px !important; font-size: 15px !important; }
  .page > .hero .result { padding: 14px !important; gap: 12px !important; }
  .page > .hero .result strong { font-size: 30px !important; line-height: 1.05 !important; }
  .page > .section { padding-block: 24px !important; }
  .page > .section :where(.section-title, .subhead) { font-size: 22px !important; line-height: 1.2 !important; }
}

.mobile-menu__tools .language-switcher {
  width: 100%;
}

.mobile-menu__tools .language-switcher__button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 8px;
}

.mobile-menu__tools .language-menu {
  top: auto;
  right: auto;
  bottom: calc(100% + 8px);
  left: 0;
  grid-template-columns: 1fr;
  width: min(320px, calc(100vw - 42px));
}

@media (min-width: 761px) and (max-width: 820px) {
  .container,
  .newsletter-inner,
  .footer-inner,
  .bottom-inner {
    width: min(calc(100% - 56px), var(--container));
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
  }

  .topbar {
    height: 66px;
  }

  .hero {
    min-height: auto;
    padding: 36px 0 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
    gap: 34px;
  }

  .hero h1 {
    max-width: 460px;
    font-size: 46px;
  }

  .hero h1 span {
    font-size: 54px;
  }

  .lead {
    font-size: 16px;
  }

  .search {
    width: min(460px, 100%);
  }

  .calculator-card {
    width: 100%;
  }

  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 20px;
  }

  .categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .category {
    min-height: 142px;
  }

  .browse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .formula {
    margin-top: 0;
    padding-left: 0;
    border-left: 0;
  }

  .related-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .newsletter-inner {
    grid-template-columns: 1fr 330px;
  }

  .footer-inner {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 16px;
  }

  .container,
  .newsletter-inner,
  .footer-inner,
  .bottom-inner {
    width: min(calc(100% - 96px), var(--container-desktop));
    margin-left: auto;
    margin-right: auto;
  }

  .topbar {
    height: 76px;
  }

  .logo {
    width: 186px;
  }

  .nav,
  .top-actions {
    gap: 44px;
    font-size: 14px;
  }

  .nav {
    margin-left: 0;
  }

  .contact-btn {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 15px;
  }

  .hero {
    min-height: 500px;
    padding: 80px 0 24px;
  }

  .hero::before {
    width: 250px;
    height: 250px;
    left: -112px;
    bottom: -72px;
  }

  .hero::after {
    width: 190px;
    height: 190px;
    left: 110px;
    bottom: -112px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 620px) minmax(480px, 1fr);
    gap: 92px;
  }

  .hero h1 {
    max-width: 620px;
    font-size: 72px;
    line-height: .98;
  }

  .hero h1 span {
    font-size: 84px;
  }

  .lead {
    margin: 18px 0 30px;
    font-size: 20px;
  }

  .search {
    width: 610px;
    height: 60px;
    padding: 0 10px 0 22px;
    border-radius: 10px;
  }

  .search input {
    font-size: 17px;
  }

  .search button {
    width: 88px;
    height: 44px;
    border-radius: 8px;
    font-size: 14px;
  }

  .quick-tags,
  .trust-row {
    gap: 16px;
    margin-top: 24px;
  }

  .pill {
    min-height: 40px;
    padding: 0 17px;
    border-radius: 8px;
    font-size: 14px;
  }

  .trust {
    gap: 9px;
    font-size: 13px;
  }

  .calculator-card {
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border-radius: 16px;
  }

  .card-title {
    font-size: 24px;
  }

  .live {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
  }

  .form-grid {
    gap: 18px;
    margin-top: 24px;
  }

  .select-like,
  .field input,
  .field select {
    height: 46px;
    border-radius: 7px;
    font-size: 16px;
  }

  .select-like {
    padding: 0 18px;
  }

  .field label {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .field-row {
    grid-template-columns: 1fr 72px;
    gap: 12px;
  }

  .money::before {
    left: 16px;
  }

  .money input {
    padding-left: 38px;
  }

  .percent input {
    padding-right: 34px;
  }

  .result {
    margin-top: 22px;
    padding: 20px;
    border-radius: 10px;
  }

  .result strong {
    font-size: 40px;
  }

  .result small {
    font-size: 14px;
  }

  .primary-btn {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 15px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-title,
  .subhead {
    font-size: 25px;
  }

  .text-link {
    font-size: 14px;
  }

  .popular-grid {
    column-gap: 72px;
    row-gap: 38px;
  }

  .calc-item {
    grid-template-columns: 64px 1fr 28px;
    gap: 18px;
  }

  .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }

  .icon-box svg {
    width: 30px;
    height: 30px;
  }

  .calc-item h3,
  .category h3,
  .browse-copy h3 {
    margin-bottom: 6px;
    font-size: 17px;
  }

  .calc-item p,
  .category p,
  .browse-copy p {
    font-size: 13px;
    line-height: 1.5;
  }

  .categories {
    gap: 28px;
  }

  .category {
    height: 260px;
    min-height: 260px;
    padding: 28px 16px 20px;
    border-radius: 12px;
  }

  .category .icon-box {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
  }

  .category .icon-box svg {
    width: 46px;
    height: 46px;
  }

  .category h3 {
    font-size: 17px;
    line-height: 1.2;
  }

  .category p {
    max-width: 128px;
    max-height: none;
    font-size: 12px;
    line-height: 1.42;
  }

  .category a {
    margin-top: auto;
    font-size: 13px;
  }

  .browse {
    grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
    gap: 72px;
  }

  .subhead::before {
    width: 4px;
    height: 25px;
  }

  .calc-panel {
    padding: 24px;
    border-radius: 12px;
  }

  .formula {
    margin-top: 42px;
    padding-left: 36px;
  }

  .formula h3 {
    font-size: 22px;
  }

  .formula p {
    font-size: 15px;
  }

  .equation {
    margin: 26px 0;
    padding: 28px;
    border-radius: 10px;
    font-size: 25px;
  }

  .section .lead {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .related-row {
    grid-template-columns: repeat(6, 1fr) 46px;
    gap: 18px;
  }

  .related-item {
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
  }

  .faq-item {
    min-height: 56px;
    padding: 0 24px;
    font-size: 16px;
  }

  .newsletter {
    padding: 36px 0;
  }

  .newsletter-inner {
    grid-template-columns: 1fr 520px;
    gap: 56px;
  }

  .newsletter-copy {
    gap: 24px;
  }

  .newsletter-copy h3 {
    margin: 0 0 6px;
    font-size: 18px;
  }

  .newsletter-copy p {
    margin: 0;
    font-size: 14px;
  }

  .subscribe {
    grid-template-columns: 1fr 130px;
    gap: 14px;
  }

  .subscribe input {
    height: 44px;
    border-radius: 7px;
    font-size: 15px;
  }

  .subscribe button {
    min-height: 44px;
    border-radius: 8px;
    font-size: 15px;
  }

  .footer {
    padding: 32px 0;
  }

  .footer-inner {
    grid-template-columns: 1.7fr repeat(4, 1fr);
    gap: 72px;
  }

  .footer-logo {
    width: 170px;
  }

  .footer p,
  .footer li,
  .cookie {
    font-size: 13px;
  }

  .footer h3 {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .footer ul {
    gap: 10px;
  }

  .socials span {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .bottom-bar {
    padding: 16px 0;
  }
}

@media (max-width: 440px) {
  .top-actions {
    width: auto;
    justify-content: flex-end;
  }

  .result,
  .subscribe,
  .related-row,
  .bottom-bar {
    grid-template-columns: 1fr;
  }

  .calculator-card .field-row {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .browse .form-grid,
  .calc-panel .form-grid {
    grid-template-columns: 1fr;
  }

  .browse .field-row,
  .calc-panel .field-row {
    grid-template-columns: minmax(0, 1fr) 62px;
  }

  .result,
  .bottom-bar {
    align-items: flex-start;
  }

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

  .category {
    height: 158px;
    padding: 16px 10px 12px;
  }

  .category p {
    max-width: 118px;
    font-size: 9px;
    line-height: 1.25;
  }
}

@media (min-width: 761px) {
  .topbar > .logo {
    display: none;
  }

  .home-directory-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
  }

  .home-directory-brand .brand-word {
    color: #061738;
    font-size: 25px;
    font-weight: 850;
    line-height: 1;
  }

  .home-directory-brand .brand-word span {
    color: var(--color-green);
  }

  .home-directory-brand .brand-planet {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 3px solid #08ae64;
    border-radius: 50%;
  }

  .home-directory-brand .brand-planet::before,
  .home-directory-brand .brand-planet::after {
    content: "";
    position: absolute;
  }

  .home-directory-brand .brand-planet::before {
    left: 9px;
    right: 9px;
    top: 3px;
    bottom: 3px;
    border: 2px solid #08ae64;
    border-radius: 50%;
  }

  .home-directory-brand .brand-planet::after {
    left: 4px;
    right: 4px;
    top: 14px;
    height: 3px;
    border-top: 3px solid #08ae64;
    box-shadow: 0 -8px 0 -2px #08ae64, 0 8px 0 -2px #08ae64;
  }

  .topbar {
    position: relative;
    width: min(100% - 96px, 1376px);
    height: 60px;
    gap: 28px;
    justify-content: space-between;
  }

  .topbar::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100vw;
    height: 1px;
    background: #dfe7f1;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .logo {
    width: 164px;
    flex: 0 0 auto;
  }

  .nav {
    justify-content: center;
    gap: 38px;
    margin-left: 36px;
    color: #061738;
    font-size: 14px;
    font-weight: 650;
  }

  .nav a,
  .top-actions a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .nav a,
  .nav a.dropdown {
    gap: 8px;
  }

  .nav a.dropdown::after {
    display: none;
  }

  .nav-chevron {
    display: inline-grid;
    place-items: center;
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
  }

  .nav svg,
  .top-actions svg {
    width: 1.1em;
    height: 1.1em;
    stroke-width: 2.2;
  }

  .top-actions {
    justify-content: flex-end;
    gap: 28px;
    margin-left: auto;
    color: #061738;
    font-size: 14px;
    font-weight: 650;
  }

  .language {
    gap: 8px;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #dce6f2;
    border-radius: 7px;
    background: #fff;
    color: #071b43;
    font-size: 16px;
    font-weight: 400;
  }

  .language::after {
    display: none;
  }

  .contact-btn {
    gap: 9px;
    min-width: 0;
    min-height: 36px;
    padding: 0 24px;
    border-radius: 7px;
    background: linear-gradient(180deg, #12bd72 0%, #009e57 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    box-shadow: 0 8px 20px rgba(0, 166, 87, .22);
  }

  .top-actions .contact-btn {
    color: #fff;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 14px;
  }

  .hero {
    min-height: 390px;
    padding: 46px 0 18px;
  }

  .hero::before {
    width: 190px;
    height: 190px;
    left: -86px;
    bottom: -58px;
  }

  .hero::after {
    width: 140px;
    height: 140px;
    left: 96px;
    bottom: -86px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 610px) 470px;
    gap: 84px;
    align-items: start;
  }

  .hero h1 {
    max-width: 530px;
    font-size: 58px;
    line-height: 1;
  }

  .hero h1 .calc-line {
    font-size: 66px;
  }

  .lead {
    margin: 14px 0 24px;
    font-size: 17px;
  }

  .search {
    width: 520px;
    height: 42px;
    padding: 0 8px 0 18px;
    border-radius: 8px;
  }

  .search input {
    font-size: 14px;
  }

  .search button {
    width: 78px;
    height: 34px;
    border-radius: 7px;
    font-size: 13px;
  }

  .quick-tags,
  .trust-row {
    gap: 10px;
    margin-top: 17px;
  }

  .pill {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
  }

  .trust {
    font-size: 12px;
  }

  .calculator-card {
    max-width: 470px;
    padding: 20px;
    border-radius: 10px;
  }

  .card-title {
    font-size: 19px;
  }

  .live {
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 11px;
  }

  .form-grid {
    gap: 12px;
    margin-top: 16px;
  }

  .select-like,
  .field input,
  .field select {
    height: 38px;
    border-radius: 6px;
    font-size: 13px;
  }

  .field label {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .field-row {
    grid-template-columns: 1fr 62px;
    gap: 9px;
  }

  .result {
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
  }

  .result strong {
    font-size: 32px;
  }

  .result small {
    font-size: 12px;
  }

  .primary-btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 7px;
    font-size: 13px;
  }

  .section {
    padding: 28px 0;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-title,
  .subhead {
    font-size: 22px;
  }

  .popular-grid {
    column-gap: 48px;
    row-gap: 26px;
  }

  .calc-item {
    grid-template-columns: 50px 1fr 22px;
    gap: 16px;
  }

  .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 8px;
  }

  .icon-box svg {
    width: 26px;
    height: 26px;
  }

  .calc-item h3,
  .category h3,
  .browse-copy h3 {
    font-size: 15px;
  }

  .calc-item p,
  .category p,
  .browse-copy p {
    font-size: 12px;
    line-height: 1.45;
  }

  .category {
    height: 218px;
    min-height: 218px;
    padding: 22px 14px 18px;
    border-radius: 8px;
  }
}

@media (min-width: 1200px) {
  .hero {
    min-height: 500px;
    padding: 80px 0 24px;
  }

  .hero::before {
    width: 250px;
    height: 250px;
    left: -112px;
    bottom: -72px;
  }

  .hero::after {
    width: 190px;
    height: 190px;
    left: 110px;
    bottom: -112px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 620px) minmax(480px, 1fr);
    gap: 92px;
    align-items: start;
  }

  .hero h1 {
    max-width: 620px;
    font-size: 72px;
    line-height: .98;
  }

  .hero h1 .calc-line {
    font-size: 84px;
  }

  .lead {
    margin: 18px 0 30px;
    font-size: 20px;
  }

  .search {
    width: 610px;
    height: 60px;
    padding: 0 10px 0 22px;
    border-radius: 10px;
  }

  .search input {
    font-size: 17px;
  }

  .search button {
    width: 88px;
    height: 44px;
    border-radius: 8px;
    font-size: 14px;
  }

  .quick-tags,
  .trust-row {
    gap: 16px;
    margin-top: 24px;
  }

  .pill {
    min-height: 40px;
    padding: 0 17px;
    border-radius: 8px;
    font-size: 14px;
  }

  .trust {
    gap: 9px;
    font-size: 13px;
  }

  .calculator-card {
    max-width: 600px;
    padding: 30px;
    border-radius: 16px;
  }

  .card-title {
    font-size: 24px;
  }

  .live {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
  }

  .form-grid {
    gap: 18px;
    margin-top: 24px;
  }

  .select-like,
  .field input,
  .field select {
    height: 46px;
    border-radius: 7px;
    font-size: 16px;
  }

  .field label {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .field-row {
    grid-template-columns: 1fr 72px;
    gap: 12px;
  }

  .result {
    margin-top: 22px;
    padding: 20px;
    border-radius: 10px;
  }

  .result strong {
    font-size: 40px;
  }

  .result small {
    font-size: 14px;
  }

  .primary-btn {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 15px;
  }

.hero .result .primary-btn {
    min-width: 0;
    white-space: nowrap;
  }

  .section {
    padding: 20px 0;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .section-title,
  .subhead {
    font-size: 21px;
  }

  .popular-grid {
    column-gap: 40px;
    row-gap: 22px;
  }

  .calc-item {
    grid-template-columns: 44px 1fr 20px;
    gap: 14px;
  }

  .icon-box {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }

  .icon-box svg {
    width: 23px;
    height: 23px;
  }

  .calc-item h3,
  .category h3,
  .browse-copy h3 {
    font-size: 14px;
  }

  .calc-item p,
  .category p,
  .browse-copy p {
    font-size: 12px;
    line-height: 1.35;
  }

  .category {
    height: 190px;
    min-height: 190px;
    padding: 18px 12px 14px;
    border-radius: 8px;
  }
}

/* Final homepage category-card sizing.
   Older responsive rules used fixed heights and hidden overflow, which clipped
   the Browse by category copy on wide screens. Keep this block last so the
   category strip stays readable without changing the rest of the homepage. */
.category-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.categories {
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
}

.category {
  height: auto;
  min-height: 210px;
  overflow: visible;
  padding: 22px 12px 18px;
  gap: 0;
}

.category .icon-box {
  width: 46px;
  height: 46px;
  margin-bottom: 11px;
}

.category .icon-box svg {
  width: 36px;
  height: 36px;
}

.category h3 {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.2;
}

.category p {
  max-width: 132px;
  max-height: none;
  overflow: visible;
  font-size: 12px;
  line-height: 1.38;
}

.category a {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12px;
}

@media (min-width: 1200px) {
  .category-section .container {
    width: min(calc(100% - 96px), var(--container-desktop));
  }

  .categories {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .hero .quick-select-menu {
    position: static;
    margin-top: 8px;
    max-height: 220px;
  }

  .category-section {
    padding-top: 32px;
    padding-bottom: 30px;
  }

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

  .category {
    min-height: 212px;
    padding: 20px 12px 16px;
  }

  .category p {
    max-width: 146px;
    font-size: 12px;
    line-height: 1.38;
  }
}

@media (max-width: 360px) {
  .categories {
    grid-template-columns: 1fr;
  }

  .category {
    min-height: 196px;
  }
}

@media (max-width: 760px) {
  body:not(.menu-open) .mobile-menu {
    display: none !important;
  }

  body.menu-open .mobile-menu {
    display: flex !important;
  }
}
