/* ==========================================================================
   JCC System — design system
   Implementation of "JCC Design System.dc.html" (Claude Design handoff).
   Order: fonts → tokens → base → layout → type → components → sections → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted subsets: latin + latin-ext for Polish diacritics)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-latin-ext.woff2') format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-latin.woff2') format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-400-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-500-latin-ext.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — navy */
  --ink: #0C1A33;
  --navy-700: #103060; /* brand */
  --navy-600: #1C4587;
  --navy-100: #E7EEF9;

  /* Accent — azure */
  --azure-500: #2F6BFF;
  --azure-600: #1E4FE0;
  --azure-50: #EAF1FF;

  /* Signal — mint */
  --mint-500: #12B886;
  --mint-50: #E6F8F1;
  --mint-text: #0E8A66;
  --mint-text-dark: #0B6B50;
  --mint-line: #CDEFE0;

  /* Neutrals */
  --slate-600: #51607A;
  --slate-400: #8A97AD;
  --slate-300: #A6B0C2;
  --line: #E4EAF2;
  --line-soft: #F0F3F9;
  --soft: #F3F6FB;
  --white: #FFFFFF;

  /* Borders / fields */
  --border-strong: #C7D2E4;
  --border-field: #D5DEEC;
  --border-dashed: #B9C4D6;

  /* On-dark scale */
  --dark-surface: #13294D;
  --dark-line: #213A63;
  --dark-muted: #8FA6CC;
  --dark-faint: #5C7099;
  --dark-body: #E4ECF8;
  --dark-star: #5C8BF0;
  --dark-eyebrow: #7FA0E0;
  --dark-link: #9DB6E8;
  --dark-lead: #B8C8E6;
  --dark-list: #C4D2E8;

  /* Info / warn */
  --info-bg: var(--azure-50);
  --info-line: #D5E2FF;
  --info-text: #1E3A8A;
  --warn-bg: #FFF1E8;
  --warn-text: #C2570F;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --container: 1280px;
  --gutter: 40px;
  --header-h: 88px;

  /* Elevation */
  --shadow-card: 0 24px 44px -26px rgba(16, 48, 96, 0.34);
  --shadow-photo: 0 30px 60px -24px rgba(16, 48, 96, 0.4);
  --shadow-float: 0 18px 36px -18px rgba(16, 48, 96, 0.32);
  --shadow-chip: 0 5px 14px -4px rgba(16, 48, 96, 0.3);
  --shadow-chip-sm: 0 3px 10px -3px rgba(16, 48, 96, 0.2);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--azure-500); color: #fff; }

img { max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--azure-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--navy-700);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.16s;
}
.skip-link:focus { top: 12px; }

/* Icons — sprite symbols sized by font-size, coloured by currentColor */
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
  display: inline-block;
  vertical-align: -0.125em;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 72px 0; }
.section--tight { padding: 64px 0; }
.section--lg { padding: 80px 0; }
.section--hero { padding: 72px 0 40px; }
.section--page-head { padding: 80px 0 48px; }
.section--ds-intro { padding: 84px 0 40px; }
.section--service-rows { padding: 24px 0 40px; }
.section--panel-cta { padding: 48px 0 84px; }
.section--cta { padding: 0 0 84px; }
.section--flush-top { padding-top: 24px; }

.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #fff; }
.section--rule-top { border-top: 1px solid var(--line); }
.section--rule-bottom { border-bottom: 1px solid var(--line); }

.split {
  display: grid;
  gap: 56px;
  align-items: center;
}
.split--hero { grid-template-columns: 1.05fr 0.95fr; }
.split--media-left { grid-template-columns: 0.85fr 1.15fr; }
.split--text-left { grid-template-columns: 1fr 0.9fr; }
.split--contact { grid-template-columns: 0.95fr 1.05fr; align-items: start; }

/* --------------------------------------------------------------------------
   5. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure-500);
  font-weight: 500;
  margin: 0 0 12px;
}
.eyebrow--dark { color: var(--dark-eyebrow); }
.eyebrow--wide { letter-spacing: 0.2em; }
.eyebrow--muted {
  color: var(--slate-400);
  letter-spacing: 0.16em;
}

.display,
.h1, .h2 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
}

.display {
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.h1 {
  font-weight: 700;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.h1--hero { font-size: clamp(40px, 5vw, 66px); line-height: 1.02; }
.h1--contact { font-size: clamp(36px, 4.6vw, 58px); }

.h2 {
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
}
.h2--static { font-size: 34px; }
.h2--sm { font-size: 30px; }
.h2--xs { font-size: clamp(26px, 3vw, 36px); }


.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--slate-600);
  margin: 26px 0 0;
}
.lead--sm { font-size: 18px; margin-top: 24px; }

.prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate-600);
}
.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

/* Section lead paragraph used across the design-system page. */
.section-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-600);
  max-width: 54ch;
  margin: 0 0 36px;
}

/* Spacing utilities — the handful of rhythm steps the design actually uses. */
.mt-18 { margin-top: 18px; }
.mt-22 { margin-top: 22px; }
.mb-32 { margin-bottom: 32px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-34 { margin-top: 34px; }
.mt-42 { margin-top: 42px; }
.mb-8 { margin-bottom: 8px; }
.mb-18 { margin-bottom: 18px; }
.mb-24 { margin-bottom: 24px; }
.mb-36 { margin-bottom: 36px; }
.mb-40 { margin-bottom: 40px; }
.on-dark { color: #fff; }

.measure-16 { max-width: 16ch; }
.measure-18 { max-width: 18ch; }
.measure-20 { max-width: 20ch; }
.measure-22 { max-width: 22ch; }
.measure-46 { max-width: 46ch; }
.measure-50 { max-width: 50ch; }
.measure-54 { max-width: 54ch; }
.measure-58 { max-width: 58ch; }
.measure-60 { max-width: 60ch; }

.section-head { margin-bottom: 36px; }
.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  padding: 15px 26px;
  background: var(--navy-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.btn .icon { font-size: 1.08em; }
.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--azure-500); }
.btn--accent:hover { background: var(--azure-600); }

.btn--secondary {
  background: var(--white);
  color: var(--navy-700);
  border: 1px solid var(--border-strong);
  padding: 14px 25px;
}
.btn--secondary:hover { background: var(--white); border-color: var(--navy-700); }

.btn--ghost {
  background: transparent;
  color: var(--azure-500);
  padding: 13px 14px;
}
.btn--ghost:hover { background: var(--azure-50); }

.btn--light {
  background: #fff;
  color: var(--navy-700);
  font-size: 17px;
  border-radius: 13px;
  padding: 16px 30px;
}
.btn--light:hover { background: var(--azure-50); }

.btn--sm { font-size: 13px; border-radius: 9px; padding: 9px 16px; }
.btn--md { font-size: 15px; border-radius: 11px; padding: 13px 22px; }
.btn--md.btn--secondary { padding: 12px 21px; }
.btn--lg { font-size: 17px; border-radius: 13px; padding: 16px 28px; }
.btn--block { width: 100%; }

.btn:disabled,
.btn[disabled] {
  background: var(--line);
  color: var(--slate-300);
  cursor: not-allowed;
}
.btn:disabled:hover { background: var(--line); transform: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-row--tight { gap: 12px; align-items: center; }

.link-out {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--dark-link);
  text-decoration: none;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  padding: 13px 22px;
  transition: color 0.18s, border-color 0.18s;
}
.link-out:hover { color: #fff; border-color: var(--dark-star); }
.link-out .icon { font-size: 17px; }

/* --------------------------------------------------------------------------
   7. Badges, pills, tags
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--azure-50);
  color: var(--azure-600);
}
.badge .icon { font-size: 1.15em; }
.badge--navy { background: var(--navy-100); color: var(--navy-700); }
.badge--mint { background: var(--mint-50); color: var(--mint-text); }
.badge--warn { background: var(--warn-bg); color: var(--warn-text); }

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--slate-600);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag-row--tight { gap: 9px; }
.tag-row + .tag-row { margin-top: 14px; }

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure-600);
  background: var(--azure-50);
  padding: 7px 13px;
  border-radius: 999px;
  margin: 0 0 24px;
}
.eyebrow-badge .icon { font-size: 15px; }

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.input,
.select,
.textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  padding: 13px 15px;
  border: 1px solid var(--border-field);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.textarea { resize: vertical; min-height: 108px; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2351607A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--azure-500);
  box-shadow: 0 0 0 3px var(--azure-50);
}

/* Stacked spacing is opt-in via .field-block — an adjacent-sibling rule would
   also fire on the second column of .field-grid and push it out of alignment. */
.field-block { margin-top: 16px; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--slate-600);
  cursor: pointer;
}
.checkbox-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--azure-500);
  flex: none;
  margin: 0;
}
.checkbox-row--top {
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
}
.checkbox-row--top input[type='checkbox'] { margin-top: 1px; }

/* validation */
.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #C2320F;
  margin: 7px 0 0;
}
.field-error .icon { font-size: 15px; }
.field.is-invalid .field-error { display: flex; }
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea {
  border-color: #E2896F;
  background: #FFF8F5;
}
.field.is-invalid .input:focus,
.field.is-invalid .textarea:focus {
  border-color: #C2320F;
  box-shadow: 0 0 0 3px #FFE7DE;
}

/* --------------------------------------------------------------------------
   9. Alerts
   -------------------------------------------------------------------------- */
.alert {
  display: flex;
  gap: 13px;
  padding: 15px 16px;
  border-radius: 12px;
  background: var(--info-bg);
  border: 1px solid var(--info-line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--info-text);
}
.alert .icon { font-size: 20px; color: var(--azure-600); }
.alert + .alert { margin-top: 12px; }

.alert--success {
  background: var(--mint-50);
  border-color: var(--mint-line);
  color: var(--mint-text-dark);
}
.alert--success .icon { color: var(--mint-text); }

/* --------------------------------------------------------------------------
   10. Cards & tiles
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.card--inner { border-radius: 16px; padding: 24px; }

.card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin: 0 0 20px;
}

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--navy-700);
}
.icon-tile .icon { font-size: 24px; }
.icon-tile--sm { width: 48px; height: 48px; }
.icon-tile--lg { width: 50px; height: 50px; border-radius: 13px; margin-bottom: 18px; }
.icon-tile--lg .icon { font-size: 26px; }

/* Hairline dividers come from a 1px grid gap over the line colour — no
   per-item borders, so nothing dangles when the row reflows. */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 1px;
  background: var(--line);
  width: fit-content;
}
.stats .stat { background: var(--white); padding: 0 26px; }
.stats .stat:first-child { padding-left: 0; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--navy-700);
}
.stat-label {
  font-size: 13px;
  color: var(--slate-400);
  margin-top: 2px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
}
.stat-grid .stat-value { font-size: 46px; color: #fff; }
.stat-grid .stat-label { font-size: 15px; color: var(--dark-muted); margin-top: 4px; }

.check-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.check-item .icon { font-size: 20px; color: var(--mint-text); }

/* Framed photography */
.photo-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  background: var(--navy-100);
  aspect-ratio: 4 / 3.4; /* hero */
}
.photo-frame--about { border-radius: 22px; aspect-ratio: 4 / 4.6; }
.photo-frame--story { border-radius: 22px; aspect-ratio: 4 / 4.5; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cut-out portrait: the subject sits on a tinted backdrop rather than a
   floating photo card, so the drop shadow comes off. */
.photo-frame--portrait {
  position: relative;
  box-shadow: none;
  background: linear-gradient(180deg, #E7EEF9 0%, #DDE7F5 100%);
}
.photo-frame--portrait img { object-position: 50% 18%; }

.photo-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 11px 15px;
  box-shadow: 0 8px 20px -10px rgba(16, 48, 96, 0.35);
}
.photo-badge__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.1;
}
.photo-badge__role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure-500);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   11. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: none;
}
.brand img { height: 48px; width: auto; display: block; }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-400);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-radius: 9px;
  padding: 9px 15px;
  transition: background 0.18s, color 0.18s;
  background: transparent;
  color: var(--slate-600);
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.nav-link:hover { background: var(--soft); }
.nav-link[aria-current='page'] {
  font-weight: 600;
  background: var(--navy-700);
  color: var(--white);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--navy-700);
  cursor: pointer;
}
.nav-toggle .icon { font-size: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: inline-block; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid var(--dark-line);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter) 36px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.site-footer img { height: 38px; margin-bottom: 18px; display: block; }
.footer-about {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-muted);
  max-width: 38ch;
  margin: 0;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-faint);
  margin: 0 0 16px;
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
  color: var(--dark-list);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list a { text-decoration: none; transition: color 0.16s; }
.footer-list a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--dark-line); }
.footer-bottom > div {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter);
  font-size: 13px;
  color: var(--dark-faint);
}

/* --------------------------------------------------------------------------
   13. Home — hero
   -------------------------------------------------------------------------- */
.hero-media { position: relative; }

.float-card {
  position: absolute;
  left: -22px;
  bottom: -18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 13px;
}
.float-card .icon-tile {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--mint-50);
  color: var(--mint-text);
  margin-bottom: 0;
}
.float-card .icon-tile .icon { font-size: 22px; }
.float-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.float-meta { font-family: var(--font-mono); font-size: 12px; color: var(--slate-400); }

.float-chip {
  position: absolute;
  right: -18px;
  top: 30px;
  background: var(--navy-700);
  color: #fff;
  border-radius: 16px;
  padding: 15px 18px;
  box-shadow: 0 18px 36px -18px rgba(16, 48, 96, 0.5);
}
.float-chip-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-link);
}
.float-chip-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   14. Home — service cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.service-card__media {
  aspect-ratio: 16 / 10;
  background: #fff;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__media picture,
.service-row__media picture { display: contents; }
/* Fill the box and let object-fit letterbox: flex shrinking alone would
   squash the element's aspect ratio. */
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.service-card__body { padding: 26px; }
.service-card__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 8px;
  color: var(--ink);
}
.service-card__body p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0;
}

/* Services page — wide rows */
.service-row {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: stretch;
}
.service-row__media {
  background: #F8FAFD;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.service-row__media img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
}
.service-row__body { padding: 38px; }
.service-row__body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--ink);
}
.service-row__body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-600);
  margin: 0 0 18px;
  max-width: 52ch;
}
.stack-24 { display: flex; flex-direction: column; gap: 24px; }

/* --------------------------------------------------------------------------
   15. Values grid
   -------------------------------------------------------------------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.value-grid > * { background: #fff; padding: 30px; }
.value-grid .icon { font-size: 32px; color: var(--azure-500); }
.value-grid h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 18px 0 7px;
  color: var(--ink);
}
.value-grid p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0;
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.value-cards > * {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.value-cards .icon { font-size: 30px; color: var(--azure-500); }
.value-cards h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 16px 0 7px;
  color: var(--ink);
}
.value-cards p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0;
}

/* --------------------------------------------------------------------------
   16. Testimonials
   -------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.testimonial {
  background: var(--dark-surface);
  border: 1px solid var(--dark-line);
  border-radius: 20px;
  padding: 30px;
}
.testimonial blockquote {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--dark-body);
  margin: 0 0 22px;
}
.stars {
  display: flex;
  gap: 3px;
  color: var(--dark-star);
  margin-bottom: 16px;
}
.stars--light { color: var(--azure-500); margin-bottom: 14px; }

.person {
  display: flex;
  align-items: center;
  gap: 13px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--azure-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  flex: none;
}
.person-name { display: block; font-weight: 600; font-size: 15px; color: #fff; }
.person-role { display: block; font-size: 13px; color: var(--dark-muted); }
.testimonial { margin: 0; }

/* light variant (design-system sample) */
.testimonial--light {
  background: #fff;
  border-color: var(--line);
  border-radius: 16px;
  padding: 24px;
}
.testimonial--light blockquote {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 18px;
}
.testimonial--light .avatar {
  width: 40px;
  height: 40px;
  background: var(--navy-700);
}
.testimonial--light .person { gap: 12px; }
.testimonial--light .person-name { font-size: 14px; color: var(--ink); }
.testimonial--light .person-role { color: var(--slate-400); }

/* --------------------------------------------------------------------------
   17. Brands & CTA
   -------------------------------------------------------------------------- */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.brand-strip li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--slate-300);
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.brand-strip-label { text-align: center; margin-bottom: 26px; }

.cta {
  background: var(--navy-700);
  border-radius: 28px;
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.cta::before {
  top: -60px; right: -40px;
  width: 240px; height: 240px;
  background: var(--navy-600);
  opacity: 0.5;
}
.cta::after {
  bottom: -80px; left: -30px;
  width: 200px; height: 200px;
  background: var(--azure-500);
  opacity: 0.25;
}
.cta__inner { position: relative; }
.cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 auto 14px;
  color: #fff;
  max-width: 20ch;
}
.cta p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark-lead);
  max-width: 50ch;
  margin: 0 auto 30px;
}

.panel-cta {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.panel-cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.panel-cta p { font-size: 16px; color: var(--slate-600); margin: 0; }
.panel-cta .btn { flex: none; }

/* --------------------------------------------------------------------------
   18. Contact
   -------------------------------------------------------------------------- */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--white);
  transition: border-color 0.18s;
}
a.contact-item:hover { border-color: var(--navy-700); }
.contact-item .icon-tile { margin-bottom: 0; }
.contact-item .icon-tile .icon { font-size: 22px; }
.contact-label { display: block; font-size: 13px; color: var(--slate-400); }
.contact-value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}
.contact-value--text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 38px;
  background: var(--white);
  box-shadow: 0 26px 50px -34px rgba(16, 48, 96, 0.3);
}
.form-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 24px;
  color: var(--ink);
}
.form-status { margin-bottom: 22px; }
.form-status:empty { display: none; }

/* Honeypot — poza ekranem, a nie display:none, bo część botów pomija
   pola faktycznie ukryte. */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   19. Coverage map
   -------------------------------------------------------------------------- */
.coverage {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
}

.coverage__map {
  position: relative;
  background:
    radial-gradient(circle, #D9E3F3 1px, transparent 1.4px) 0 0 / 26px 26px,
    var(--soft);
  border-right: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: inline-size;
  padding: 0;
}

/* Square coordinate layer. Rings and markers share it, so a percentage means
   the same distance vertically and horizontally — the map stays a true circle
   at any panel width, and `--px` scales every label with it. */
.map-stage {
  position: relative;
  width: 580px;
  height: 580px;
  width: min(100cqi, 580px);
  height: min(100cqi, 580px);
  --px: calc(min(100cqi, 580px) / 580);
  flex: none;
}
@supports not (width: 1cqi) {
  .map-stage { width: 580px; height: 580px; --px: 1px; }
}

.map-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.map-ring--outer {
  width: 82%;
  height: 82%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.16) 0%, rgba(47, 107, 255, 0.05) 70%);
  border: 1.5px dashed rgba(47, 107, 255, 0.5);
}
.map-ring--inner {
  width: 44%;
  height: 44%;
  border: 1.5px dashed rgba(47, 107, 255, 0.28);
}
.map-ring__label {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: calc(10.5 * var(--px));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azure-500);
  background: var(--soft);
  padding: calc(2 * var(--px)) calc(9 * var(--px));
  border-radius: calc(6 * var(--px));
  white-space: nowrap;
}

/* Zero-size anchors: the dot always lands exactly on its coordinate,
   whatever the label width. */
.map-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
  z-index: 3;
}
.map-marker__dot {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  width: calc(11 * var(--px));
  height: calc(11 * var(--px));
  border-radius: 50%;
  background: var(--azure-500);
  box-shadow: 0 0 0 calc(4 * var(--px)) rgba(47, 107, 255, 0.18);
}
.map-marker__label {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  font-weight: 600;
  font-size: calc(12.5 * var(--px));
  color: var(--ink);
  background: #fff;
  padding: calc(3 * var(--px)) calc(9 * var(--px));
  border-radius: calc(8 * var(--px));
  box-shadow: var(--shadow-chip-sm);
  white-space: nowrap;
}
.map-marker--left  .map-marker__label { right: calc(14 * var(--px)); }
.map-marker--right .map-marker__label { left: calc(14 * var(--px)); }
.map-marker--above .map-marker__label {
  left: 0;
  top: auto;
  bottom: calc(14 * var(--px));
  transform: translateX(-50%);
}

/* Warszawa — centre */
.map-marker--capital { z-index: 4; }
.map-marker--capital .map-marker__dot {
  width: calc(34 * var(--px));
  height: calc(34 * var(--px));
  background: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 calc(7 * var(--px)) rgba(16, 48, 96, 0.15),
              0 calc(8 * var(--px)) calc(18 * var(--px)) calc(-6 * var(--px)) rgba(16, 48, 96, 0.5);
}
.map-marker--capital .map-marker__dot .icon { font-size: calc(17 * var(--px)); }
.map-marker--capital .map-marker__label {
  left: calc(28 * var(--px));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(17 * var(--px));
  padding: calc(6 * var(--px)) calc(13 * var(--px));
  border-radius: calc(9 * var(--px));
  box-shadow: var(--shadow-chip);
}

/* Otwock — siedziba */
.map-marker--hq { z-index: 5; }
.map-marker--hq .map-marker__dot {
  width: calc(30 * var(--px));
  height: calc(30 * var(--px));
  background: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 calc(6 * var(--px)) rgba(16, 48, 96, 0.16),
              0 calc(8 * var(--px)) calc(18 * var(--px)) calc(-6 * var(--px)) rgba(16, 48, 96, 0.5);
}
.map-marker--hq .map-marker__dot .icon { font-size: calc(16 * var(--px)); }
.map-marker--hq .map-marker__label {
  left: calc(26 * var(--px));
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--px));
  padding: calc(6 * var(--px)) calc(11 * var(--px));
  border-radius: calc(9 * var(--px));
  box-shadow: var(--shadow-chip);
}
.map-marker--hq .map-marker__label b {
  font-weight: 600;
  font-size: calc(13.5 * var(--px));
  color: var(--ink);
  line-height: 1;
}
.map-marker--hq .map-marker__label span {
  font-family: var(--font-mono);
  font-size: calc(10 * var(--px));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure-500);
  line-height: 1;
}

.map-title {
  position: absolute;
  left: 22px;
  top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  box-shadow: 0 4px 14px -6px rgba(16, 48, 96, 0.25);
  z-index: 6;
}
.map-title .icon { font-size: 15px; color: var(--azure-500); }
.map-title span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
  font-weight: 500;
}

.map-legend {
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 13px;
  z-index: 6;
}
.map-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--slate-600);
}
.map-legend i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}
.map-legend .dot-navy { background: var(--navy-700); }
.map-legend .dot-azure { background: var(--azure-500); }

.coverage__info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.coverage__info .eyebrow { letter-spacing: 0.16em; margin-bottom: 14px; }
.coverage__info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
}
.coverage__copy {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--slate-600);
  margin: 0 0 22px;
}

.place-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}
.place-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.place-list .icon { font-size: 17px; color: var(--navy-700); }
.place-list em {
  margin-left: auto;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--azure-500);
  padding: 3px 8px;
  border-radius: 6px;
}
.place-list .tag-hq { background: var(--navy-700); }

/* Flexible chips — they wrap to the panel instead of a rigid grid. */
.place-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.place-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
}
.place-chips .icon { font-size: 14px; color: var(--azure-500); }
.place-chips .is-more {
  color: var(--slate-600);
  background: var(--soft);
}

/* --------------------------------------------------------------------------
   20. Design-system page
   -------------------------------------------------------------------------- */
.ds-intro-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.ds-intro-stats > div { min-width: 130px; }
.ds-intro-stats .stat-value {
  font-weight: 600;
  font-size: 30px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.logo-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.logo-box img { height: 64px; width: auto; }
.logo-box--dark { border-color: var(--navy-700); background: var(--navy-700); }
.logo-box--clearance { background: var(--soft); }
.logo-box--clearance img { height: 48px; position: relative; }
.logo-box__guide {
  position: absolute;
  inset: 22px;
  border: 1px dashed var(--border-dashed);
  border-radius: 10px;
}
.logo-box__note {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-400);
}

.swatch-group { margin-bottom: 30px; }
.swatch-group__name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin: 0 0 12px;
}
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.swatch {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.swatch__chip { height: 96px; background: var(--chip); }
.swatch__chip--white { box-shadow: inset 0 0 0 1px #EEF1F6; }
.swatch__meta { padding: 12px 14px 14px; }
.swatch__name { font-weight: 600; font-size: 14px; color: var(--ink); }
.swatch__hex {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 3px;
}

.type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.type-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.type-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azure-500);
  margin-bottom: 18px;
}
.type-card__sample {
  font-size: 60px;
  line-height: 1;
  color: var(--ink);
}
.type-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-top: 18px;
  color: var(--navy-700);
}
.type-card__weights {
  font-size: 14px;
  color: var(--slate-400);
  margin-top: 4px;
}
.type-card--display .type-card__sample { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.type-card--body .type-card__sample { font-family: var(--font-body); font-weight: 400; }
.type-card--mono .type-card__sample { font-family: var(--font-mono); font-weight: 400; font-size: 56px; }
.type-card--mono .type-card__name { margin-top: 22px; }

.type-scale {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.type-scale__row {
  padding: 26px 28px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.type-scale__row:last-child { border-bottom: none; }
.type-scale__key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-400);
  width: 110px;
  flex: none;
}
.type-scale__val { color: var(--ink); }
.type-scale__val--display { font-family: var(--font-display); font-weight: 700; font-size: 56px; letter-spacing: -0.03em; line-height: 1; }
.type-scale__val--h2 { font-family: var(--font-display); font-weight: 600; font-size: 34px; letter-spacing: -0.02em; }
.type-scale__val--h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--navy-700); }
.type-scale__val--body { font-size: 17px; line-height: 1.6; color: var(--slate-600); max-width: 52ch; }
.type-scale__val--mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--navy-700); }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.icon-grid li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #fff;
}
.icon-grid .icon { font-size: 34px; color: var(--navy-700); }
.icon-grid span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-400);
}

.ds-sample-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--ink);
}
.ds-sample-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .value-grid,
  .value-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1180px) {
  .brand-tag { display: none; }
}

@media (max-width: 1080px) {
  .split--hero,
  .split--media-left,
  .split--text-left,
  .split--contact { grid-template-columns: 1fr; gap: 44px; }

  .split--media-left > .photo-frame,
  .split--text-left > .photo-frame {
    max-width: 460px;
    width: 100%;
  }
  .split--media-left > .photo-frame { order: 2; }

  .hero-media { max-width: 520px; width: 100%; }

  .service-row { grid-template-columns: 1fr; }
  .service-row__media { min-height: 220px; }
  .service-row__body { padding: 32px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(16, 48, 96, 0.4);
    padding: 12px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav-link { font-size: 16px; padding: 13px 16px; border-radius: 11px; }
  .header-inner { position: relative; }
  .site-header { position: sticky; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  .coverage { grid-template-columns: 1fr; }
  .coverage__map { border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 780px) {
  :root { --gutter: 24px; --header-h: 76px; }


  .brand img { height: 40px; }

  .section { padding: 56px 0; }
  .section--page-head { padding: 56px 0 36px; }

  .float-card { left: 12px; bottom: -14px; padding: 13px 15px; }
  .float-chip { right: 10px; top: 16px; padding: 13px 15px; }

  .cta { padding: 48px 28px; border-radius: 22px; }
  .panel-cta { padding: 32px; }
  .panel-cta .btn { width: 100%; }

  .coverage__info { padding: 28px; }
  .coverage__map { min-height: 340px; }

  .form-card { padding: 26px; border-radius: 20px; }
  .field-grid { grid-template-columns: 1fr; }

  .type-scale__key { width: auto; }
  .type-scale__val--display { font-size: 38px; }
  .type-scale__val--h2 { font-size: 28px; }


  .service-row__body { padding: 26px; }
  .value-grid > * { padding: 24px; }
  .testimonial { padding: 24px; }
  .card { padding: 22px; }
}

/* Below this the square map shrinks under 580px and its ring label would slide
   up behind the title chip — pad the panel so the two clear each other. */
@media (max-width: 700px) {
  .coverage__map { padding: 46px 0 42px; }
}

@media (max-width: 640px) {
  /* Three auto columns no longer fit — stack them; the 1px gap becomes a rule. */
  .stats { grid-template-columns: 1fr; width: 100%; }
  .stats .stat { padding: 14px 0; }
  .stats .stat:first-child { padding: 0 0 14px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-strip li { font-size: 20px; padding: 11px 20px; }
  .map-legend { gap: 10px; padding: 8px 11px; }
  .map-legend span { font-size: 11px; }
  .map-title { left: 14px; top: 14px; }
  .map-legend { left: 14px; bottom: 12px; }
}

@media print {
  .site-header, .nav-toggle, .skip-link { display: none; }
  body { background: #fff; }
}
