/* ══════════════════════════════════════════════════════════════════════════
   HejMap v2 — content pages (about-v2.html, contact-v2.html).
   Requires css/v2/base.css.
   ══════════════════════════════════════════════════════════════════════════ */

.v2-page main { display: block; }
.v2-page .v2-section { padding: 28px 0; }

/* Hero: the same sky as the maps, with floating art */
.pg2-hero {
  position: relative;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + 56px) 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.pg2-hero--short { padding-bottom: 20px; }
.pg2-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 11%, var(--canvas)) 0%, var(--canvas) 92%);
}
.pg2-sky .v2-floaters { position: absolute; inset: 0; opacity: 0.35; }
.pg2-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 40px; }
.pg2-title { margin: 12px 0 14px; font-size: clamp(38px, 5.2vw, 68px); font-weight: 760; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
.pg2-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--blue);
  padding-right: 0.06em;
}
.pg2-lead { max-width: 620px; margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.pg2-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pg2-actions .v2-btn svg { width: 15px; height: 15px; }

.pg2-logo-art { display: grid; justify-items: center; gap: 12px; margin: 0; }
.pg2-logo-art img { width: min(100%, 260px); height: auto; filter: drop-shadow(0 22px 34px rgba(37, 99, 235, 0.28)); animation: pg2-bob 5s ease-in-out infinite alternate; }
.pg2-logo-art figcaption { font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--text-2); }
@keyframes pg2-bob { to { transform: translateY(-10px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .pg2-logo-art img { animation: none; } }

/* Numbers */
.pg2-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pg2-stats li { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.pg2-stats b { font-size: 34px; font-weight: 760; letter-spacing: -0.03em; line-height: 1; color: var(--blue); }
.pg2-stats span { color: var(--text-2); font-size: 14px; }

/* Text sections */
.pg2-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; }
.pg2-h2 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); font-style: italic; font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.pg2-prose p { margin: 0 0 14px; color: var(--text-2); font-size: 16.5px; line-height: 1.7; }

.pg2-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pg2-card { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.pg2-card h3 { margin: 12px 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.pg2-card p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.pg2-card-ico { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--t) 14%, var(--surface)); color: var(--t); }
.pg2-card-ico svg { width: 20px; height: 20px; }

.pg2-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 24px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--blue) 14%, var(--surface)), color-mix(in srgb, var(--cyan) 12%, var(--surface)));
  border: 1px solid var(--line);
}
.pg2-band .pg2-h2 { margin: 0 0 6px; }
.pg2-band p { margin: 0; color: var(--text-2); }
.pg2-band .pg2-actions { margin: 0; }

/* Contact */
.pg2-contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); align-items: start; gap: 16px; }
.pg2-form { display: grid; gap: 16px; padding: 24px; }
.pg2-form h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.pg2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg2-field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pg2-field > span, .pg2-field legend { padding: 0; color: var(--text-2); font-size: 13px; font-weight: 600; }
.pg2-field input, .pg2-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pg2-field textarea { resize: vertical; min-height: 140px; }
.pg2-field input:focus, .pg2-field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.pg2-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.pg2-topics legend { margin-bottom: 8px; }
.pg2-topics label { position: relative; cursor: pointer; }
.pg2-topics input { position: absolute; opacity: 0; pointer-events: none; }
.pg2-topics span { display: inline-flex; height: 36px; align-items: center; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; transition: all 0.15s; }
.pg2-topics label:hover span { border-color: var(--blue); }
.pg2-topics input:checked + span { border-color: var(--text); background: var(--text); color: var(--surface); }
.pg2-topics input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.pg2-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pg2-form-foot p { margin: 0; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
.pg2-form-foot a { color: var(--text-2); }
.pg2-form-foot .v2-btn { flex: 0 0 auto; height: 42px; }
.pg2-form-foot svg { width: 15px; height: 15px; }

.pg2-aside { display: grid; gap: 12px; }
.pg2-email { display: block; margin: 6px 0 8px; color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.pg2-email:hover { color: var(--blue); }
.pg2-muted { margin: 0; color: var(--text-3); font-size: 13.5px; line-height: 1.5; }
.pg2-social { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.pg2-social:hover { border-color: var(--line-strong); background: var(--surface-2); }

@media (max-width: 899px) {
  .pg2-hero-grid, .pg2-split, .pg2-contact { grid-template-columns: 1fr; }
  .pg2-logo-art img { width: min(50%, 200px); }
  .pg2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg2-cards { grid-template-columns: 1fr; }
  .pg2-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .pg2-hero { padding-top: calc(var(--nav-h) + 28px); }
  .pg2-row { grid-template-columns: 1fr; }
  .pg2-form-foot { flex-direction: column; align-items: stretch; }
}

/* ── Map catalogue (maps.html) and the 404 destinations ─────────────────── */
.mc2-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; }
.mc2-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.mc2-filters button { height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--text-2); cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; }
.mc2-filters button:hover { color: var(--text); }
.mc2-filters button[aria-pressed="true"] { background: var(--text); color: var(--surface); }
.mc2-search { position: relative; display: flex; flex: 1 1 220px; max-width: 340px; align-items: center; }
.mc2-search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.mc2-search input { width: 100%; height: 44px; padding: 0 14px 0 38px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; }
.mc2-search input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.mc2-count { color: var(--text-3); font-size: 13px; font-weight: 600; }
.mc2-shelf[hidden], .mc2-card[hidden] { display: none; }
.mc2-head { max-width: 640px; margin-bottom: 16px; }
.mc2-head h2 { margin: 6px 0 4px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 760; letter-spacing: -0.03em; }
.mc2-head p { margin: 0; color: var(--text-2); font-size: 15px; }
.mc2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mc2-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.mc2-card:hover { border-color: color-mix(in srgb, var(--t) 45%, var(--line)); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mc2-ico { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 6px; border-radius: 13px; background: color-mix(in srgb, var(--t) 14%, transparent); color: var(--t); }
.mc2-ico svg { width: 21px; height: 21px; }
.mc2-tag { position: absolute; top: 18px; right: 18px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 11.5px; font-weight: 650; }
.mc2-card h3 { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -0.015em; }
.mc2-card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.mc2-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--t); font-size: 13.5px; font-weight: 650; }
.mc2-go svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.mc2-card:hover .mc2-go svg { transform: translateX(3px); }
.mc2-empty { color: var(--text-2); }

/* ── Privacy (privacy.html) ──────────────────────────────────────────────── */
.pv2-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.pv2-list { display: grid; gap: 10px; }
.pv2-row, .pv2-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pv2-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; }
.pv2-row h3, .pv2-item h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.pv2-row p, .pv2-item p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.pv2-item a, .pv2-row a { color: var(--blue); }
.pv2-switch { position: relative; display: inline-flex; width: 48px; height: 28px; grid-row: 1; grid-column: 2; }
.pv2-switch input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.pv2-switch input:disabled { cursor: default; }
.pv2-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: background 0.2s; }
.pv2-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25); transition: transform 0.2s var(--ease); }
.pv2-switch input:checked + span { background: var(--blue); }
.pv2-switch input:checked + span::after { transform: translateX(20px); }
.pv2-switch input:disabled + span { opacity: 0.6; }
.pv2-switch input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent); }
.pv2-status { grid-column: 2; justify-self: center; color: var(--text-3); font-size: 12px; font-weight: 650; white-space: nowrap; }
.pv2-status[data-state="on"] { color: var(--blue); }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.nf2-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 32px; }
.nf2-art { position: relative; display: grid; place-items: center; min-height: 240px; }
.nf2-num { display: flex; align-items: center; gap: 0.08em; color: var(--text); font-family: var(--display); font-size: clamp(110px, 14vw, 200px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.nf2-num i { display: inline-block; width: 0.72em; height: 0.72em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #93c5fd, var(--blue) 60%); box-shadow: inset -0.06em -0.08em 0 rgba(15, 23, 42, 0.18); animation: nf2-spin 6s linear infinite; }
.nf2-pin { position: absolute; top: 8%; right: 18%; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: #f59e0b; transform: rotate(-45deg); animation: nf2-hop 2.4s var(--ease) infinite; }
.nf2-pin::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
@keyframes nf2-spin { to { transform: rotate(360deg); } }
@keyframes nf2-hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

@media (max-width: 899px) {
  .pv2-grid, .nf2-grid { grid-template-columns: 1fr; }
  .nf2-art { min-height: 160px; }
  .mc2-search { max-width: none; }
}
