.calculator-page { min-height: 100vh; background: #f2f5f9; }
.calculator-header {
  width: min(calc(100% - 40px), 1120px);
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calculator-header nav { display: flex; align-items: center; gap: 25px; }
.calculator-header nav a { color: #536577; text-decoration: none; font-size: 12px; font-weight: 750; }
.calculator-header nav a:last-child { padding: 10px 14px; border-radius: 9px; background: #145ff5; color: #fff; }
.calculator-main { width: min(calc(100% - 40px), 1120px); margin: auto; }
.breadcrumbs { margin: 8px 0 20px; color: #7e8d9c; font-size: 10px; }
.breadcrumbs a { color: #54718d; text-decoration: none; }
.calculator-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 72px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 93% 6%, rgba(51,130,255,.36), transparent 33%),
    linear-gradient(135deg, #061727, #0a2c49 66%, #0a3b58);
  color: #fff;
  box-shadow: 0 30px 75px rgba(7,29,51,.18);
}
.calculator-hero::after { content: ""; position: absolute; width: 230px; height: 230px; right: -65px; bottom: -120px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.018); }
.calculator-kicker { margin: 0 0 18px; color: #9fc4ff; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.calculator-hero h1 { position: relative; z-index: 1; max-width: 800px; margin: 0; font-size: clamp(42px, 6.2vw, 72px); line-height: .98; letter-spacing: -.065em; }
.calculator-hero > p:not(.calculator-kicker) { position: relative; z-index: 1; max-width: 670px; margin: 24px 0 0; color: #b9cede; font-size: 16px; line-height: 1.65; }
.hero-facts { position: relative; z-index: 1; margin-top: 27px; display: flex; flex-wrap: wrap; gap: 9px; }
.hero-facts span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #caddE9; background: rgba(255,255,255,.055); font-size: 10px; font-weight: 700; }
.calculator-layout { margin: -28px 28px 80px; position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr); gap: 18px; align-items: start; }
.calculator-card, .calculator-result { border: 1px solid #d8e1ea; border-radius: 18px; background: #fff; box-shadow: 0 20px 55px rgba(10,35,59,.1); }
.calculator-card { padding: clamp(23px, 4vw, 38px); }
.calculator-card h2, .calculator-result h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.035em; }
.calculator-card > p { margin: 0 0 25px; color: #68798a; font-size: 12px; line-height: 1.55; }
.mini-form { display: grid; gap: 18px; }
.mini-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-field-grid.three { grid-template-columns: repeat(3, 1fr); }
.mini-field { position: relative; display: block; color: #506172; font-size: 11px; font-weight: 800; }
.mini-field input, .mini-field select { margin-top: 7px; }
.mini-help { display: block; margin-top: 5px; color: #8996a2; font-size: 9px; font-weight: 500; line-height: 1.4; }
.mini-submit { width: 100%; margin-top: 4px; padding: 14px 18px; border: 0; border-radius: 10px; background: #145ff5; color: #fff; cursor: pointer; font-weight: 850; font-size: 13px; box-shadow: 0 9px 22px rgba(20,95,245,.2); }
.mini-submit:hover { background: #0b4bd1; }
.mini-submit:disabled { cursor: wait; opacity: .72; }
.result-error span { color: #b93e4b !important; background: #fdebed !important; }
.calculator-result { min-height: 320px; padding: 30px; position: sticky; top: 20px; }
.result-placeholder { height: 100%; min-height: 255px; display: grid; align-content: center; text-align: center; color: #7c8b99; }
.result-placeholder span { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 17px; border-radius: 16px; background: #e8f0ff; color: #145ff5; font-size: 23px; }
.result-placeholder h2 { color: #172c40; }
.result-placeholder p { margin: 0; font-size: 11px; line-height: 1.55; }
.mini-result-top { display: flex; align-items: center; gap: 16px; }
.mini-result-score { flex: none; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; background: conic-gradient(var(--result-color) calc(var(--result-score) * 1%), #e7edf3 0); }
.mini-result-score::before { content: ""; grid-area: 1/1; width: 64px; height: 64px; border-radius: 50%; background: #fff; }
.mini-result-score b { grid-area: 1/1; z-index: 1; font-size: 25px; }
.mini-result-copy small { color: #728394; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.mini-result-copy h2 { margin: 4px 0 0; color: var(--result-color); }
.mini-summary { margin: 20px 0; color: #586b7d; font-size: 12px; line-height: 1.58; }
.mini-metrics { display: flex; flex-wrap: wrap; gap: 7px; }
.mini-metrics span { padding: 6px 8px; border-radius: 7px; background: #eef3f8; color: #5b6c7c; font-size: 9px; font-weight: 750; }
.mini-tips { margin: 19px 0 0; padding: 17px 0 0; border-top: 1px solid #e2e8ee; list-style: none; display: grid; gap: 8px; }
.mini-tips li { position: relative; padding-left: 19px; color: #5d6e7e; font-size: 10px; line-height: 1.45; }
.mini-tips li::before { content: "→"; position: absolute; left: 0; color: #145ff5; font-weight: 900; }
.mini-full-cta { margin-top: 20px; display: block; padding: 11px; border-radius: 9px; background: #edf4ff; color: #145ff5; text-align: center; text-decoration: none; font-size: 10px; font-weight: 850; }
.mini-airport-suggestions { position: absolute; z-index: 8; left: 0; right: 0; top: calc(100% + 5px); overflow: hidden; border: 1px solid #d7e0e8; border-radius: 10px; background: #fff; box-shadow: 0 16px 35px rgba(8,31,54,.15); }
.mini-airport-suggestions button { width: 100%; padding: 9px 10px; display: grid; grid-template-columns: 40px 1fr; border: 0; border-bottom: 1px solid #edf1f4; background: #fff; text-align: left; cursor: pointer; }
.mini-airport-suggestions button:hover { background: #edf4ff; }
.mini-airport-suggestions b { color: #145ff5; font-size: 11px; }
.mini-airport-suggestions span { overflow: hidden; color: #536474; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.calculator-content { max-width: 900px; margin: 0 auto 90px; }
.content-section { padding: 45px 0; border-top: 1px solid #d8e1ea; }
.content-section h2 { max-width: 690px; margin: 0 0 18px; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.05em; }
.content-section > p { max-width: 730px; color: #607284; line-height: 1.75; font-size: 14px; }
.answer-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.answer-grid article { padding: 21px; border: 1px solid #dce4ec; border-radius: 13px; background: #fff; }
.answer-grid span { color: #145ff5; font-size: 10px; font-weight: 900; }
.answer-grid h3 { margin: 18px 0 7px; font-size: 14px; }
.answer-grid p { margin: 0; color: #68798a; font-size: 11px; line-height: 1.55; }
.faq-list { display: grid; gap: 9px; margin-top: 24px; }
.faq-list details { padding: 17px 18px; border: 1px solid #dbe3eb; border-radius: 11px; background: #fff; }
.faq-list summary { cursor: pointer; font-size: 12px; font-weight: 800; }
.faq-list p { margin: 12px 0 0; color: #657688; font-size: 11px; line-height: 1.6; }
.related-tools { margin: 0 auto 85px; }
.related-tools h2 { margin-bottom: 20px; font-size: 27px; letter-spacing: -.04em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-grid a { padding: 20px; border: 1px solid #dbe3eb; border-radius: 12px; background: #fff; text-decoration: none; }
.related-grid b { display: block; margin-bottom: 7px; font-size: 13px; }
.related-grid span { color: #145ff5; font-size: 10px; font-weight: 800; }
.calculator-footer { padding: 35px 20px; background: #061726; color: #8ca3b6; text-align: center; font-size: 10px; }
.calculator-footer a { color: #bed0de; }

.calculators-hub-hero { padding-bottom: 88px; }
.hub-grid { position: relative; z-index: 2; margin: -35px 28px 85px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.hub-card { min-height: 270px; padding: 30px; display: flex; flex-direction: column; border: 1px solid #d9e2ea; border-radius: 17px; background: #fff; box-shadow: 0 17px 42px rgba(10,35,59,.08); text-decoration: none; }
.hub-card > span { color: #145ff5; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.hub-card h2 { margin: 34px 0 10px; font-size: 25px; letter-spacing: -.04em; }
.hub-card p { max-width: 430px; margin: 0; color: #647688; font-size: 12px; line-height: 1.6; }
.hub-card b { margin-top: auto; padding-top: 22px; color: #145ff5; font-size: 11px; }

@media (max-width: 820px) {
  .calculator-layout { margin-left: 12px; margin-right: 12px; grid-template-columns: 1fr; }
  .calculator-result { position: static; }
  .hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .calculator-header { width: min(calc(100% - 24px), 1120px); height: 70px; }
  .calculator-header nav a:not(:last-child) { display: none; }
  .calculator-main { width: min(calc(100% - 16px), 1120px); }
  .calculator-hero { padding: 39px 22px 56px; border-radius: 20px; }
  .calculator-hero h1 { font-size: clamp(41px, 13vw, 57px); }
  .mini-field-grid, .mini-field-grid.three, .answer-grid, .related-grid { grid-template-columns: 1fr; }
  .calculator-layout { margin-top: -22px; margin-bottom: 60px; }
  .calculator-card, .calculator-result { padding: 22px 17px; }
  .hub-grid { margin-left: 8px; margin-right: 8px; }
}
