:root {
  color-scheme: light;
  --ink: #172942;
  --muted: #526579;
  --blue: #07305a;
  --line: #d9e5ed;
  --wash: #f3f8fb;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: #07538b; }
a:hover { color: #002b50; }
img { height: auto; max-inline-size: 100%; }
input, select, button, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.025em; }
h1 { margin: 0 0 22px; font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { margin: 40px 0 14px; font-size: clamp(1.45rem, 2.7vw, 2rem); }
h3 { margin: 26px 0 10px; font-size: 1.25rem; }
p { margin: 0 0 18px; }
ul, ol { padding-inline-start: 1.5em; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
thead { background: var(--wash); }
.table-scroll { overflow-x: auto; }
.skip-link { position: absolute; z-index: 100; inset-block-start: -80px; inset-inline-start: 14px; padding: 9px 14px; background: #fff; }
.skip-link:focus { inset-block-start: 10px; }

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 12px clamp(18px, 4vw, 64px); border-bottom: 1px solid var(--line); }
.brand { line-height: 0; }
.brand img { width: 210px; height: auto; }
.main-nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 9px 20px; }
.main-nav a, .site-footer a { color: var(--ink); text-decoration: none; font-weight: 650; }
.main-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.main-nav { align-items: center; }
.nav-dropdown { position: relative; }
.nav-dropdown summary { color: var(--ink); cursor: pointer; font-weight: 650; list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: " ▾"; color: #52718a; }
.nav-dropdown[open] summary::after { content: " ▴"; }
.nav-dropdown summary:focus-visible, .main-nav a:focus-visible { outline: 3px solid #00a89d; outline-offset: 4px; }
.nav-dropdown__panel { position: absolute; z-index: 20; top: calc(100% + 10px); left: 0; display: grid; min-width: 250px; max-height: min(70vh, 600px); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 15px 35px #17344a25; }
.nav-dropdown__panel a { display: block; padding: 9px 11px; border-radius: 7px; white-space: nowrap; }
.nav-dropdown__panel a:hover { background: var(--wash); text-decoration: none; }
.nav-dropdown:nth-last-child(-n+2) .nav-dropdown__panel { left: auto; right: 0; }
.site-main { max-width: 1000px; margin-inline: auto; padding: clamp(24px, 4vw, 48px) 18px; min-height: 65vh; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 28px clamp(18px, 4vw, 64px); background: var(--wash); }
.lead { color: var(--muted); font-size: 1.12rem; }

.hub-section { margin-block: 45px; }
.hub-section h2 { margin-bottom: 18px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 15px; }
.hub-card { display: flex; flex-direction: column; gap: 7px; min-height: 124px; padding: 21px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; text-decoration: none; box-shadow: 0 3px 14px #17344a0b; }
.hub-card:hover { border-color: #64a5c0; background: #f9fcfe; }
.hub-card strong { font-size: 1.13rem; }
.hub-card span { color: var(--muted); font-size: .94rem; }

.unit-tool { border: 1px solid #c7dce8; border-radius: 18px; background: var(--wash); padding: clamp(18px, 3vw, 32px); margin: 25px 0 35px; }
.unit-tool h2 { margin: 0 0 22px; }
.unit-tool__fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 16px; }
.unit-tool__fields label { display: grid; gap: 7px; font-weight: 700; }
.unit-tool__fields input { width: 100%; min-height: 54px; padding: 10px 14px; border: 1px solid #9fb9c8; border-radius: 9px; background: #fff; color: var(--ink); font-weight: 500; }
.unit-tool__exchange { padding-bottom: 9px; font-size: 2rem; color: #4e7d96; }
.unit-tool__hint { margin: 16px 0 0; color: var(--muted); font-size: .93rem; }
.unit-tool__error { margin: 6px 0 0; color: #a12b2b; }
.prose { line-height: 1.7; }

.wp-block-image { margin: 20px 0; }
.wp-block-image img { display: block; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 22px; }
.wp-block-column { flex: 1 1 260px; }
.wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.wp-block-button__link { display: inline-block; padding: 10px 18px; background: var(--blue); color: #fff; text-decoration: none; border-radius: 8px; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.site-main input:not([type="checkbox"]), .site-main select, .site-main textarea { color: var(--ink); }

@media (max-width: 650px) {
  body { font-size: 16px; }
  .brand img { width: 170px; }
  .main-nav { width: 100%; gap: 5px 12px; font-size: .92rem; }
  .nav-dropdown__panel { min-width: min(260px, calc(100vw - 32px)); }
  .site-main { padding: 22px 16px 40px; }
  .unit-tool__fields { grid-template-columns: 1fr; }
  .unit-tool__exchange { justify-self: center; padding: 0; line-height: .9; }
}
