:root {
  --bg: #fafbfd;
  --card: #ffffff;
  --tint: #f1f4f9;
  --ink: #12151c;
  --soft: #343a46;
  --muted: #6a6f7a;
  --line: rgba(30, 57, 121, 0.14);
  --line-strong: rgba(30, 57, 121, 0.32);
  --accent: #1e3979;
  --link: #1e3979;
  --focus: #1e3979;
  --btn-bg: #1e3979;
  --btn-ink: #ffffff;
  --radius: 14px;
  --radius-card: 18px;
  --shadow: 0 2px 12px rgba(30, 57, 121, 0.07);
  --nav-bg: rgba(250, 251, 253, 0.88);
  --media-bg: radial-gradient(closest-side, rgba(30, 57, 121, 0.14), rgba(30, 57, 121, 0.03) 70%, transparent);
  --band-bg: #ffffff;
  --phone-shadow: rgba(30, 57, 121, 0.26);
  --header-bg: #e8f0f8;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}
.text-link { text-decoration-color: #88b58e; }
.cta-band { background: #1e3979; color: #fff; border: 0; }
.cta-band p { color: rgba(255, 255, 255, 0.84); }

.calc { display: grid; gap: 12px; margin-top: 22px; padding: 18px; max-width: 32em; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 34px rgba(30, 57, 121, 0.09); }
.intro-grid .calc { margin-top: 0; justify-self: end; width: 100%; }
.calc { min-width: 0; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.calc input[type="date"] { min-width: 0; padding: 8px 6px; font-size: 14px; }
.calc-line input[type="date"] { width: auto; }
.calc-row--head { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.calc input, .calc select { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
.calc-x { appearance: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); font-size: 18px; cursor: pointer; }
.calc-add { appearance: none; justify-self: start; padding: 8px 16px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.calc-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--soft); }
.calc-card { display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; background: #1e3979; color: #fff; }
.calc-card small { font-size: 12px; opacity: 0.8; }
.calc-card strong { font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-card span { font-size: 14.5px; opacity: 0.92; }
.calc-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.calc-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 99px; }
.calc-card.is-over { background: #c0392b; }
.calc-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-three label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.visa-answer { display: grid; gap: 6px; margin-top: 22px; padding: 18px 20px; max-width: 32em; border-radius: 18px; background: #1e3979; color: #fff; }
.visa-answer.is-visa { background: #9f6800; }
.visa-answer strong { font-size: 26px; line-height: 1.15; }
.visa-answer span { font-size: 15.5px; opacity: 0.94; }
.vtable { width: 100%; border-collapse: collapse; margin: 14px 0 28px; font-size: 16px; background: var(--card); border-radius: 16px; overflow: hidden; }
.vtable th, .vtable td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.vtable thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.vtable a { color: var(--link); font-weight: 600; text-decoration-color: #88b58e; text-underline-offset: 3px; }
.vtable td.is-best { font-weight: 700; color: #327848; }
.tablewrap { overflow-x: auto; }
