/* Sztuka Harmonii — "Plan Trójmiasta"
   Colour roles: paper bg, map-blue surface, navy ink, slate muted,
   cobalt route (accent), yellow only for pins / markers. */
:root {
  --bg: #fafaf7;
  --surface: #e8eef6;
  --ink: #0b1b2e;
  --muted: #4c5a6b;
  --accent: #1c4fd6;
  --accent-deep: #1440b2;
  --yellow: #f2c230;
  --rule: #cfd8e4;
  --grid: #e4e9f0;
  --white: #ffffff;
  --f-head: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(56px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--f-body);
  overflow-x: hidden;
  padding-bottom: 64px; /* room for the mobile call bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--yellow); }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem); line-height: 1; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); letter-spacing: -.025em; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.5; max-width: 40ch; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 14px; }
.skip:focus { left: 12px; }

/* ---------- Icons ---------- */
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .7em 1.3em;
  font: 600 1.0625rem/1.2 var(--f-head); letter-spacing: -.005em;
  border: 2px solid var(--accent); border-radius: 6px;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: var(--bg); color: var(--accent); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { min-height: 42px; padding: .5em 1em; font-size: .9375rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.head-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand svg { height: 34px; width: auto; }
.head-tel {
  display: none; align-items: center; gap: .45em;
  font: 600 1rem var(--f-head); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.head-tel .ic { color: var(--accent); }
.head-tel:hover { color: var(--accent); }
.head-cta { display: none; }
.menu-btn {
  display: none; align-items: center; gap: .5em;
  min-height: 44px; padding: 0 .9em;
  background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 6px;
  font: 600 .9375rem var(--f-head); cursor: pointer;
}
.js .menu-btn { display: inline-flex; }
.menu-btn .bars { width: 18px; height: 12px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s;
}
.menu-btn .bars::before { top: 2px; }
.menu-btn .bars::after { bottom: 2px; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-3px) rotate(-45deg); }

.nav { width: 100%; }
.nav ul { list-style: none; display: grid; }
.nav a {
  display: flex; align-items: center; gap: .75em;
  padding: .85em 0; border-top: 1px solid var(--rule);
  font: 500 1.0625rem var(--f-head); color: var(--ink); text-decoration: none;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--ink);
}

/* Mobile: nav sits under the row; hidden only when JS can open it */
.head-row { flex-wrap: wrap; }
.nav { order: 3; padding-bottom: 8px; }
.js .nav { display: none; }
.js .nav.is-open { display: block; }

@media (min-width: 560px) {
  .head-tel { display: inline-flex; }
}
@media (min-width: 900px) {
  .head-cta { display: inline-flex; }
}
@media (min-width: 1240px) {
  .head-row { flex-wrap: nowrap; min-height: 76px; gap: 20px; }
  .brand svg { height: 36px; }
  .js .menu-btn { display: none; }
  .nav, .js .nav { display: block; order: 0; width: auto; padding: 0; }
  .nav ul { display: flex; gap: 4px; }
  .nav a {
    position: relative; border: 0; padding: .5em .55em;
    font-size: .9375rem; white-space: nowrap;
  }
  .nav a[aria-current="page"]::after {
    position: absolute; left: .55em; right: .55em; bottom: -2px; width: auto; height: 4px;
    border: 0; border-radius: 0; background: var(--yellow);
  }
  .head-cta { display: inline-flex; order: 3; }
  .brand { margin-right: 8px; }
  .nav, .js .nav { order: 1; margin-right: auto; }
  .head-tel { order: 2; }
}

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1.25fr 1fr;
  background: var(--bg); border-top: 1px solid var(--ink);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 64px; padding: 0 12px;
  font: 600 1rem var(--f-head); text-decoration: none; white-space: nowrap;
}
.callbar .cb-call { background: var(--accent); color: var(--white); line-height: 1.15; }
.callbar small { display: block; font: 500 .8125rem var(--f-body); opacity: .92; }
.callbar .cb-book { color: var(--ink); }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- Sections ---------- */
.sec { padding: var(--sec) 0; border-top: 1px solid var(--rule); }
.sec-tint { background: var(--surface); border-top-color: transparent; }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { color: var(--muted); }
.sec-head h2 { max-width: 20ch; }
@media (min-width: 960px) {
  .split { display: grid; grid-template-columns: 4fr 8fr; gap: 0 clamp(32px, 5vw, 80px); align-items: start; }
  .split > .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
}
.more { display: inline-flex; align-items: center; gap: .5em; margin-top: 28px; font: 600 1.0625rem var(--f-head); }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); max-width: 16ch; }
.page-head .lead { max-width: 52ch; color: var(--ink); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 28px; }
.jump a {
  display: inline-flex; align-items: center; gap: .5em; min-height: 40px; padding: .35em .9em;
  border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none;
  font: 500 .9375rem var(--f-head); background: var(--bg);
}
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.jump .count { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 72px) 0 0; }
.hero-grid { display: grid; gap: 36px; }
.hero h1 { max-width: 11ch; margin-bottom: .35em; }
.hero .lead { margin-bottom: 28px; }
.hero .cta-row .btn { flex: 1 1 220px; }
.hero-note { margin-top: 20px; font-size: .9688rem; color: var(--muted); max-width: 44ch; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 5fr 6fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
  .hero .cta-row .btn { flex: 0 0 auto; }
}

/* Drafting-grid panel holding the route diagram */
.plan {
  margin: 0; position: relative;
  border: 1.5px solid var(--ink);
  background-color: var(--white);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.plan figcaption {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-top: 1.5px solid var(--ink); background: var(--bg);
  font-size: .875rem; color: var(--muted);
}
.route-map { width: 100%; height: auto; display: block; }
.route-map .sea { fill: var(--surface); }
.route-map .sea-label { font: 500 15px var(--f-body); fill: var(--muted); letter-spacing: .06em; }
.route-map .line { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.route-map .online { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: .1 13; }
.route-map .end { fill: var(--white); stroke: var(--accent); stroke-width: 4; }
.route-map .pin circle { fill: var(--yellow); stroke: var(--ink); stroke-width: 2.5; }
.route-map .pin text { font: 700 17px var(--f-head); fill: var(--ink); text-anchor: middle; }
.route-map .st { font: 500 20px var(--f-body); fill: var(--ink); }
.route-map .city { font: 700 28px var(--f-head); fill: var(--ink); letter-spacing: -.02em; }
.route-map .note { font: 400 17px var(--f-body); fill: var(--muted); }
.route-map a { cursor: pointer; }
.route-map a:hover .pin circle, .route-map a:focus .pin circle { fill: var(--white); stroke: var(--accent); stroke-width: 4; }
.route-map a:hover .st, .route-map a:focus .st { fill: var(--accent); text-decoration: underline; }
.route-map a:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
  .route-map .line { stroke-dasharray: 620; animation: draw 1.4s cubic-bezier(.6,.05,.3,1) both .15s; }
  .route-map .pin { animation: pop .35s ease-out both; transform-box: fill-box; transform-origin: center; }
  .route-map .p1 { animation-delay: .35s; } .route-map .p2 { animation-delay: .45s; }
  .route-map .p3 { animation-delay: .55s; } .route-map .p4 { animation-delay: .8s; }
  .route-map .p5 { animation-delay: 1.05s; } .route-map .p6 { animation-delay: 1.15s; }
  .route-map .p7 { animation-delay: 1.25s; }
  @keyframes draw { from { stroke-dashoffset: 620; } to { stroke-dashoffset: 0; } }
  @keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
}

/* Facts strip */
.facts {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr;
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.facts li { padding: 18px 16px 20px 0; border-bottom: 1px solid var(--rule); }
.facts li:nth-child(odd) { border-right: 1px solid var(--rule); }
.facts li:nth-child(even) { padding-left: 16px; }
.facts li:nth-last-child(-n+2) { border-bottom: 0; }
.facts strong { display: block; font: 700 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.1 var(--f-head); letter-spacing: -.02em; margin-bottom: 6px; }
.facts span { display: block; font-size: .9375rem; color: var(--muted); line-height: 1.45; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li, .facts li:nth-child(even) { padding: 22px 24px 24px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .facts li:first-child { padding-left: 0; }
  .facts li:last-child { border-right: 0; }
}

/* ---------- Steps (real sequences only) ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 28px 64px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); border: 2px solid var(--ink);
  font: 700 1.0625rem var(--f-head);
}
.steps li::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 4px; background: var(--accent); }
.steps li:last-child::after { display: none; }
.steps li:last-child { padding-bottom: 0; }
.steps h3, .steps h4 { font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: .3em; padding-top: 6px; }
.steps-title { margin: 56px 0 28px; }
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .steps.row { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .steps.row li { padding: 64px 0 0; }
  .steps.row li::after { left: 40px; right: -32px; top: 18px; bottom: auto; width: auto; height: 4px; }
  .steps.row li:last-child::after { display: none; }
  .steps.row.four { grid-template-columns: repeat(4, 1fr); }
}

/* Free call block */
.free {
  display: grid; gap: 24px; padding: clamp(24px, 4vw, 40px);
  background: var(--bg); border: 1.5px solid var(--ink);
}
.free .price-tag { font: 700 clamp(2.5rem, 2rem + 2.5vw, 3.75rem)/1 var(--f-head); letter-spacing: -.04em; }
.free .price-tag small { display: block; font: 500 1rem var(--f-body); letter-spacing: 0; color: var(--muted); margin-top: 8px; }
.free h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
@media (min-width: 760px) { .free { grid-template-columns: 200px 1fr; align-items: start; } }

/* ---------- Timetable price lists ---------- */
.tt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tt caption { text-align: left; font: 600 1.375rem/1.2 var(--f-head); letter-spacing: -.015em; padding-bottom: 12px; }
.tt th { text-align: left; font: 500 .875rem var(--f-body); color: var(--muted); padding: 8px 16px 8px 0; border-bottom: 2px solid var(--ink); }
.tt th:last-child, .tt td.p { text-align: right; padding-right: 0; }
.tt td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.tt td.n { font-weight: 500; }
.tt td.n small { display: block; font-weight: 400; color: var(--muted); font-size: .9063rem; line-height: 1.45; margin-top: 4px; max-width: 58ch; }
.tt td.t { color: var(--muted); white-space: nowrap; }
.tt td.p { font: 600 1.0625rem var(--f-head); white-space: nowrap; }
.tt td.p.tbc { font: 400 .9375rem var(--f-body); color: var(--muted); white-space: normal; }
.tt .zero { background: var(--yellow); padding: .05em .4em; }
.tt + .tt { margin-top: 48px; }
.tt-note { margin-top: 16px; font-size: .9375rem; color: var(--muted); }
@media (max-width: 599px) {
  .tt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tt tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .tt tbody tr:first-child { border-top: 2px solid var(--ink); }
  .tt td { padding: 0; border: 0; }
  .tt td.n { grid-column: 1 / -1; }
  .tt td.t:empty::before { content: "–"; }
  .tt td.p { grid-column: 2; grid-row: 2; }
  .tt td.p.tbc { max-width: 20ch; }
}

/* ---------- Generic grids & lists ---------- */
.ruled { list-style: none; display: grid; border-top: 2px solid var(--ink); }
.ruled > li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.ruled h3 { margin-bottom: .3em; }
.ruled p { margin: 0; color: var(--muted); }
@media (min-width: 700px) {
  .ruled.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .ruled.cols-3 { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 1100px) { .ruled.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.areas { list-style: none; display: grid; border-top: 2px solid var(--ink); }
.areas li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.areas h3 { font-size: 1.0625rem; margin-bottom: .25em; }
.areas p { margin: 0; font-size: .9688rem; color: var(--muted); }
@media (min-width: 700px) { .areas { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1100px) { .areas { grid-template-columns: repeat(3, 1fr); } }

.cat { padding-top: clamp(40px, 6vw, 72px); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-head h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); }
.cat-head span { color: var(--muted); font-size: .9375rem; }

/* Legend-style category links on home */
.legend { list-style: none; display: grid; border-top: 2px solid var(--ink); }
.legend a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none; font: 500 1.125rem var(--f-head);
}
.legend a span { color: var(--muted); font: 400 .9375rem var(--f-body); white-space: nowrap; }
.legend a:hover { color: var(--accent); }
@media (min-width: 700px) { .legend { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* ---------- Crisis box ---------- */
.crisis { border: 2px solid var(--ink); background: var(--white); padding: clamp(20px, 3vw, 28px); }
.crisis h2, .crisis h3 { font-size: 1.25rem; margin-bottom: .4em; }
.crisis p { font-size: .9688rem; }
.crisis ul { list-style: none; display: grid; gap: 0; }
.crisis li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); font-size: .9688rem; }
.crisis li a { font: 700 1.125rem var(--f-head); color: inherit; text-decoration: none; white-space: nowrap; }
.crisis li a:hover { text-decoration: underline; }
.crisis-flag { display: inline-block; width: 14px; height: 14px; background: var(--yellow); border: 2px solid var(--ink); margin-right: 8px; vertical-align: -1px; }

/* ---------- Portrait grid (B/W, cobalt on hover) ---------- */
.faces { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.faces li { margin: 0; position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.faces img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.faces li::after { content: ""; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: multiply; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.faces li:hover::after { opacity: .9; }
.faces .tag { position: absolute; left: 0; bottom: 0; z-index: 1; background: var(--yellow); color: var(--ink); font: 600 .8125rem/1.25 var(--f-head); padding: 5px 8px; }
@media (min-width: 1100px) { .faces.wide { grid-template-columns: repeat(9, 1fr); } }

/* ---------- Reviews ---------- */
.reviews { list-style: none; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.reviews li { background: var(--bg); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; }
.reviews blockquote { margin: 0 0 20px; font-size: 1.0313rem; line-height: 1.6; }
.reviews blockquote p { margin: 0; }
.reviews .who { margin-top: auto; padding-top: 14px; border-top: 2px solid var(--ink); font-size: .9375rem; }
.reviews .who strong { display: block; font: 600 1.0625rem var(--f-head); }
.reviews .who span { display: block; color: var(--muted); }
.stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--ink); }
.stars svg { width: 16px; height: 16px; fill: var(--yellow); stroke: var(--ink); stroke-width: 1.2; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 8px; }
.rating b { font: 700 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--f-head); letter-spacing: -.04em; }

/* ---------- Offices ---------- */
.offices { list-style: none; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.office { background: var(--bg); padding: 24px clamp(18px, 2.5vw, 28px) 28px; display: flex; flex-direction: column; gap: 8px; }
.office-top { display: flex; align-items: center; gap: 12px; }
.office h3 { margin: 0; font-size: 1.25rem; }
.office .city { color: var(--muted); font-size: .9375rem; }
.office address { font-style: normal; font-weight: 500; }
.office p { margin: 0; color: var(--muted); font-size: .9688rem; }
.office .hq { align-self: flex-start; font: 600 .8125rem var(--f-head); background: var(--ink); color: var(--white); padding: 3px 8px; }
@media (min-width: 700px) { .offices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .offices { grid-template-columns: repeat(3, 1fr); } }
.office.online { background: var(--surface); }

.pin {
  display: inline-grid; place-items: center; flex: none;
  width: 2.125rem; height: 2.125rem; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--ink); color: var(--ink);
  font: 700 1rem/1 var(--f-head);
}
.pin.ring { background: var(--white); border: 3px dotted var(--accent); }

.office-list { list-style: none; display: grid; border-top: 2px solid var(--ink); }
.office-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.office-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.office-list a:hover { color: var(--accent); text-decoration: underline; }
.office-list span { display: block; font-size: .9063rem; color: var(--muted); font-weight: 400; }

/* ---------- Hours table ---------- */
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.hours td { text-align: right; font: 600 1.125rem var(--f-head); }
.hours tr:first-child th, .hours tr:first-child td { border-top: 2px solid var(--ink); }

/* ---------- Two-column helpers ---------- */
.duo { display: grid; gap: 40px; }
@media (min-width: 960px) { .duo { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); } .duo.wide-left { grid-template-columns: 7fr 5fr; } }

/* ---------- Contact panel ---------- */
.contact-lines { list-style: none; display: grid; border-top: 2px solid var(--ink); }
.contact-lines li { border-bottom: 1px solid var(--rule); }
.contact-lines a, .contact-lines div {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center;
  padding: 16px 0; color: var(--ink); text-decoration: none;
}
.contact-lines .ic { color: var(--accent); width: 24px; height: 24px; }
.contact-lines strong { display: block; font: 600 1.1875rem var(--f-head); overflow-wrap: anywhere; }
.contact-lines span { display: block; font-size: .9375rem; color: var(--muted); }
.contact-lines a:hover strong { color: var(--accent); text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 0; font: 600 1.125rem/1.3 var(--f-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }
.faq details > div p { margin-bottom: .6em; }

/* ---------- Values ---------- */
.values { list-style: none; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.values li { background: var(--bg); padding: 24px; }
.values svg { width: 32px; height: 32px; color: var(--accent); margin-bottom: 14px; }
.values h3 { margin-bottom: .35em; }
.values p { margin: 0; color: var(--muted); font-size: .9688rem; }
@media (min-width: 700px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Specialist cards ---------- */
.people { list-style: none; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.person { background: var(--bg); padding: 22px 22px 24px; }
.person h3 { font-size: 1.125rem; margin-bottom: .2em; }
.person .role { color: var(--accent); font-weight: 500; font-size: .9375rem; margin-bottom: 12px; }
.person dl { margin: 0; display: grid; gap: 8px; font-size: .9375rem; }
.person dt { font-weight: 600; font-family: var(--f-head); }
.person dd { margin: 0; color: var(--muted); }
.person .owner { display: inline-block; font: 600 .8125rem var(--f-head); background: var(--yellow); padding: 2px 8px; margin-bottom: 10px; }
@media (min-width: 700px) { .people { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .people { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Media / feature photo ---------- */
.photo { margin: 0; border: 1.5px solid var(--ink); background: var(--surface); }
.photo img { width: 100%; height: auto; }
.photo figcaption { padding: 10px 14px; font-size: .875rem; color: var(--muted); border-top: 1.5px solid var(--ink); background: var(--bg); }
.photo.small { max-width: 420px; }

.groups { display: grid; gap: 32px; }
@media (min-width: 900px) { .groups { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.groups h3 { padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.groups ul { list-style: none; }
.groups li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.groups li b { display: block; font: 600 1rem var(--f-head); }
.groups li span { display: block; color: var(--muted); font-size: .9375rem; }

.press { list-style: none; display: grid; border-top: 2px solid var(--ink); }
.press li { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
@media (min-width: 800px) { .press li { grid-template-columns: 14em 1fr; gap: 24px; } }
.press .src { font: 600 1rem var(--f-head); }
.press .src span { display: block; font: 400 .9063rem var(--f-body); color: var(--muted); }
.press h3 { font-size: 1.125rem; margin-bottom: .3em; }
.press p { margin: 0; color: var(--muted); font-size: .9688rem; }

/* Callout band */
.band { background: var(--accent); color: var(--white); padding: clamp(40px, 6vw, 72px) 0; }
.band h2 { color: var(--white); max-width: 22ch; }
.band p { max-width: 56ch; }
.band .btn-primary { background: var(--white); color: var(--accent); border-color: var(--white); }
.band .btn-primary:hover { background: var(--surface); border-color: var(--surface); }
.band .btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.band .btn-ghost:hover { background: var(--accent-deep); }
.band :focus-visible { outline-color: var(--yellow); }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #dfe6ef; padding: clamp(48px, 7vw, 88px) 0 28px; font-size: .9688rem; }
.site-foot a { color: var(--white); }
.foot-grid { display: grid; gap: 40px; }
.foot-brand svg { height: 40px; width: auto; color: var(--white); margin-bottom: 16px; }
.foot-h { font: 600 1.0625rem var(--f-head); color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.foot-list { list-style: none; display: grid; gap: 8px; }
.foot-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.foot-list .pin { width: 22px; height: 22px; font-size: .75rem; border-width: 1.5px; }
.foot-contact { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.foot-contact a { display: inline-flex; gap: .55em; align-items: center; text-decoration: none; font: 600 1.0625rem var(--f-head); }
.foot-contact a:hover { text-decoration: underline; }
.foot-contact .ic { color: var(--yellow); }
.site-foot .crisis { background: transparent; border-color: var(--yellow); color: #dfe6ef; }
.site-foot .crisis h2 { color: var(--white); }
.site-foot .crisis li { border-top-color: #2a3d55; }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2a3d55; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot-base ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-base a { text-decoration: none; }
.foot-base a:hover { text-decoration: underline; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.1fr 1fr 1.1fr 1.4fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
