/* MTB MARKET — "Tablica budowy" in brand green. Tokens first; every component is a board of ruled fields. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  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: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  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; }

:root {
  --green: #80b529;
  --green-hi: #8fc532;
  --green-ink: #1d2a08;      /* secondary text on green, tinted from the hue */
  --ink: #111;
  --ink-2: #2a2c2e;
  --board: #f2f2ee;
  --white: #fff;
  --steel: #7c858c;
  --muted: #4d5357;          /* secondary text on light */
  --on-ink-muted: #b9bfc3;   /* secondary text on ink */
  --yellow: #ffe718;
  --rule: 2px solid var(--ink);
  --gut: clamp(20px, 5.6vw, 80px);
  --hdr: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-h1: clamp(2.5rem, 1.3rem + 4.1vw, 4.75rem);
  --t-h2: clamp(2.3rem, 1.4rem + 3vw, 3.9rem);
  --t-h3: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --t-lead: clamp(1.125rem, 1.05rem + .3vw, 1.3rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr); }
body { margin: 0; font: 400 1.125rem/1.55 "Archivo", system-ui, sans-serif; color: var(--ink); background: var(--board);
  font-kerning: normal; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; background: var(--yellow); color: var(--ink); font-weight: 700;
  transform: translateY(-200%); }
.skip:focus { transform: none; }
html { scrollbar-color: var(--steel) var(--board); }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2 { font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: -.005em; line-height: .98; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.2; }
.lbl { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.2; }
p { max-width: 68ch; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn { --bg: var(--ink); --fg: var(--white); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 0 24px; border: var(--rule); background: var(--bg); color: var(--fg); font: 700 1.0625rem/1 "Archivo", sans-serif;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background-color .16s var(--ease), box-shadow .16s var(--ease); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--green { --bg: var(--green); --fg: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: var(--white); }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.1875rem; }
.sec--ink .btn, .f--ink .btn, .hdr .btn { border-color: var(--green); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgb(0 0 0 / .45); }
  .btn--green:hover { --bg: var(--green-hi); }
}
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .08s; }

/* ---------- the board: ruled fields with corner screws ---------- */
.board { position: relative; border: var(--rule); background: var(--board);
  background-image: radial-gradient(circle at 12px 12px, #c9ccce 3px, #6d7377 3.5px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 12px) 12px, #c9ccce 3px, #6d7377 3.5px, transparent 4.5px),
    radial-gradient(circle at 12px calc(100% - 12px), #c9ccce 3px, #6d7377 3.5px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #c9ccce 3px, #6d7377 3.5px, transparent 4.5px); }
.f { position: relative; padding: 20px 24px; border-right: var(--rule); border-bottom: var(--rule); background-clip: padding-box; }
.f .lbl { margin-bottom: 8px; color: var(--muted); }
.f p { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
.f--green { background: var(--green); }
.f--green .lbl { color: var(--green-ink); }
.f--ink { background: var(--ink); color: var(--white); }
.f--ink .lbl { color: var(--green); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); background: var(--ink); color: var(--white); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px 0 12px; background: var(--green); color: var(--ink); text-decoration: none; }
.logo__mark { width: 52px; height: 18px; }
.logo__word { font-weight: 800; font-size: .95rem; line-height: .95; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 10px 12px; white-space: nowrap; font-weight: 600; font-size: 1rem; text-decoration: none; color: #e6e8e9; background-image: linear-gradient(var(--green), var(--green));
  background-size: 0 3px; background-repeat: no-repeat; background-position: 12px calc(100% - 4px); transition: background-size .24s var(--ease), color .16s; }
.nav a:hover, .nav a.is-on { color: var(--white); background-size: calc(100% - 24px) 3px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--on-ink-muted); white-space: nowrap; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--steel); }
.status.is-open { color: var(--white); }
.status.is-open i { background: var(--yellow); box-shadow: 0 0 0 4px rgb(255 231 24 / .18); }
.f .status--board { display: flex; margin-top: 10px; white-space: normal; color: var(--ink); font-size: .9375rem; }
.f .status--board.is-open { color: var(--ink); }
.status--board.is-open i { box-shadow: 0 0 0 3px var(--ink); }
.hdr__call { min-height: 46px; padding: 0 18px; font-size: 1rem; }
.burger { display: none; width: 48px; height: 48px; border: 0; background: none; color: var(--white); cursor: pointer; }
.burger i, .burger i::before, .burger i::after { display: block; width: 26px; height: 3px; background: currentColor; margin: auto; position: relative; transition: transform .2s var(--ease), opacity .2s; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; }
.burger i::before { top: -8px; } .burger i::after { top: 8px; }
.burger[aria-expanded="true"] i { background: transparent; }
.burger[aria-expanded="true"] i::before { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] i::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec--green { background: var(--green); }
.sec--white { background: var(--white); }
.sec--ink { background: var(--ink); color: var(--white); }
.sec--ink .board { border-color: var(--ink); }
.sec__head { display: grid; gap: 18px; margin-bottom: 48px; max-width: 880px; }
.sec__head p { font-size: var(--t-lead); color: var(--muted); }
.sec--green .sec__head p { color: var(--green-ink); }
.sec--ink .sec__head p { color: var(--on-ink-muted); }
.sec__head--row { max-width: none; grid-template-columns: minmax(0, 880px) auto; align-items: end; justify-content: space-between; gap: 32px; }
.sec__head--row > div { display: grid; gap: 18px; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding: calc(var(--hdr) + 28px) 0 28px; display: flex; align-items: center; }
.hero__board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero__title { grid-column: 1 / 3; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 26px 36px 26px; }
.hero__title h1 { max-width: 16ch; font-size: clamp(2.9rem, 1.5rem + 3.6vw, 4.5rem); }
.hero__lead { font-size: var(--t-lead) !important; font-weight: 500 !important; line-height: 1.45 !important; color: var(--green-ink); max-width: 48ch; }
.hero__photo { grid-column: 3 / 5; padding: 0; border-right: 0; background: var(--ink); }
.hero__board > .f:nth-child(6) { border-right: 0; }
.hero__tel { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 28px 20px 24px; border-bottom: 0; border-right: 0; }
.hero__num { display: block; font-size: clamp(2.4rem, 1.3rem + 2.8vw, 3.9rem); font-weight: 800; font-stretch: 75%; letter-spacing: -.01em; line-height: 1.05; color: var(--white); text-decoration: none; font-variant-numeric: tabular-nums; }
.hero__num:hover { color: var(--green); }

/* annotated photograph: the signature moment */
.annot { position: relative; aspect-ratio: 933 / 700; overflow: hidden; }
.annot img { width: 100%; height: 100%; object-fit: cover; }
.annot__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.annot__lines path { fill: none; stroke: var(--white); stroke-width: .4; stroke-linecap: square; }
.annot__lines path { filter: drop-shadow(0 0 .6px #000) drop-shadow(0 0 .6px #000) drop-shadow(0 0 2px rgb(0 0 0 / .6)); }   /* dark outline: reads on white tiles and dark kit */
.annot__dot { position: absolute; left: var(--x); top: var(--y); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); }
.annot__tag { position: absolute; left: var(--x); top: var(--y); transform: translateY(-50%); padding: 7px 11px; background: var(--white); border: var(--rule);
  font-size: .875rem; font-weight: 700; line-height: 1.2; width: max-content; max-width: 62%; }
.annot__tag--r { left: auto; right: calc(100% - var(--x)); }

/* ---------- services ---------- */
.board--grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.board--grid3 > .f:nth-child(3n) { border-right: 0; }
.board--grid3 > .f:nth-last-child(-n + 3) { border-bottom: 0; }
.svc { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 28px 28px 26px; min-height: 280px; text-decoration: none; background: var(--board);
  transition: background-color .2s var(--ease); }
.ico { width: 64px; height: 64px; padding: 11px; margin-bottom: 8px; background: var(--green); border: var(--rule); fill: var(--ink); stroke: none; }   /* black pictogram on a green field */
.svc__name { font-size: 1.75rem; font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: 1; letter-spacing: -.005em; }
.svc__short { font-size: 1.0625rem; line-height: 1.45; color: var(--muted); }
.svc__brands { font-size: .9375rem; font-weight: 600; }
.svc__go { position: absolute; right: 24px; top: 28px; width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2.5; transition: transform .2s var(--ease); }
@media (hover: hover) {
  .svc:hover { background: var(--white); }
  .svc:hover .svc__go { transform: translateX(5px); }
}

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.steps__list { counter-reset: s; }
.steps__list .f { display: grid; grid-template-columns: 64px 1fr; gap: 20px; border-right: 0; padding: 24px 28px; }
.steps__list .f:last-child { border-bottom: 0; }
.step__n { display: grid; place-items: center; width: 56px; height: 56px; background: var(--green); border: var(--rule); font-size: 1.6rem; font-weight: 800; font-stretch: 75%; }
.steps__list h3 { margin-bottom: 6px; text-transform: uppercase; }
.steps__list p { font-size: 1.0625rem; font-weight: 400; color: var(--muted); }
.steps__photo { overflow: hidden; }
.steps__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- project plates ---------- */
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plate { display: flex; flex-direction: column; border: var(--rule); border-color: var(--board); background: var(--board); color: var(--ink); text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.plate__img { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: var(--rule); }
.plate__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.plate__body { display: grid; gap: 6px; padding: 18px 20px 20px; }
.plate__body .lbl { color: var(--muted); }
.plate__title { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.plate__meta { font-weight: 600; color: var(--muted); }
@media (hover: hover) {
  .plate:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgb(0 0 0 / .6); }
  .plate:hover .plate__img img { transform: scale(1.03); }
}
.sec--ink .plate { border-color: var(--board); }

/* ---------- czyste powietrze ---------- */
.cp { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cp__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cp__table th, .cp__table td { padding: 22px 26px; text-align: left; border-bottom: var(--rule); border-right: var(--rule); }
.cp__table th:last-child, .cp__table td:last-child { border-right: 0; }
.cp__table tbody tr:last-child > * { border-bottom: 0; }
.cp__table thead th { font-size: .8125rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.cp__table tbody th { font-size: 1.25rem; }
.cp__table td { font-size: 1.1875rem; font-weight: 600; }
.cp__pct { font-size: clamp(2rem, 1.3rem + 1.8vw, 3.1rem) !important; font-weight: 800 !important; font-stretch: 75%; white-space: nowrap; }
.cp__side { display: grid; gap: 28px; justify-items: start; }
.cp__steps { counter-reset: c; display: grid; gap: 14px; }
.cp__steps li { counter-increment: c; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px; font-size: 1.1875rem; font-weight: 600; }
.cp__steps li::before { content: counter(c); display: grid; place-items: center; width: 44px; height: 44px; border: var(--rule); background: var(--board); font-weight: 800; }
.cp__note { font-size: .9375rem; color: var(--green-ink); }

/* ---------- market ---------- */
.mkt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.mkt__photos { display: grid; grid-template-rows: 1fr 1fr; overflow: hidden; }
.mkt__photos img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.mkt__photos img + img { border-top: var(--rule); }
.mkt__list { display: grid; grid-template-rows: 1fr auto; }
.mkt__list ul.f { border-right: 0; display: grid; align-content: start; padding: 8px 24px; }
.mkt__list li { padding: 14px 0; border-bottom: 1px solid #c9ccce; font-size: 1rem; color: var(--muted); }
.mkt__list li:last-child { border-bottom: 0; }
.mkt__list li b { display: block; font-size: 1.1875rem; color: var(--ink); }
.mkt__fuel { border-right: 0; border-bottom: 0; display: grid; gap: 14px; justify-items: start; padding: 24px; }
.mkt__fuel p { font-weight: 500; }

/* ---------- about + partners ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 64px; }
.about__text { display: grid; gap: 20px; }
.about__text p { font-size: var(--t-lead); color: var(--muted); }
.about__text p:first-of-type { color: var(--ink); }
.about__photo { overflow: hidden; }
.logos__h { margin: 32px 0 14px; font-size: .8125rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: var(--rule); border-left: var(--rule); }
.logos li { display: grid; place-items: center; height: 96px; padding: 14px 18px; border-right: var(--rule); border-bottom: var(--rule); background: var(--white); }
.logos--small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.logos--small li { height: 76px; }
.logos img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .8; transition: filter .25s, opacity .25s; }
.logos li:hover img { filter: none; opacity: 1; }

/* ---------- posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post { display: flex; flex-direction: column; border: var(--rule); background: var(--white); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.post__img { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--rule); background: var(--board); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post__body { display: grid; gap: 10px; padding: 20px 22px 24px; }
.post__body .lbl { color: var(--muted); }
.post__title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.post__lead { font-size: 1rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
  .post:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgb(0 0 0 / .35); }
  .post:hover .post__img img { transform: scale(1.03); }
}

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; color: var(--ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; }
.form .f:nth-child(2n) { border-right: 0; }
.form .f--wide { grid-column: 1 / -1; border-right: 0; }
.form label { display: block; margin-bottom: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: var(--rule); background: var(--white); color: var(--ink);
  font: 500 1.0625rem/1.4 "Archivo", sans-serif; border-radius: 0; transition: box-shadow .16s var(--ease); }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--green); }
.form input::placeholder { color: var(--steel); }
.form .input-validation-error { border-color: #b3261e; box-shadow: 0 0 0 3px rgb(179 38 30 / .25); }
.err { display: block; margin-top: 6px; color: #b3261e; font-size: .9375rem; font-weight: 600; }
.err:empty { display: none; }
.form :is(input, textarea, select):is([aria-invalid], .input-validation-error) { border-color: #b3261e; box-shadow: inset 0 0 0 1px #b3261e; }
.form__foot { display: grid; gap: 18px; justify-items: start; border-bottom: 0; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-size: .9375rem !important; letter-spacing: 0 !important; text-transform: none !important;
  font-weight: 500 !important; color: var(--ink) !important; cursor: pointer; }
.check input { width: 24px; min-height: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.form--sent { display: block; padding: 40px; }
.form__ok { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; }
.visit { display: grid; grid-template-columns: 1fr 1fr; }
.visit .f:nth-child(2n) { border-right: 0; }
.visit .f--wide { grid-column: 1 / -1; border-right: 0; }
.visit a { font-weight: 600; }
.visit__big { font-size: 1.6rem; font-weight: 800 !important; text-decoration: none; white-space: nowrap; }
.visit__notice { background: var(--yellow); font-weight: 700; }
.map { position: relative; padding: 0; border-bottom: 0; aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.map img { width: 100%; height: 100%; object-fit: cover; }
.map .annot__tag { --x: 20px; --y: 34px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ui { position: absolute; left: 20px; bottom: 20px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- subpages ---------- */
.page { padding: calc(var(--hdr) + 64px) 0 96px; }
.page__head { display: grid; gap: 18px; margin-bottom: 48px; max-width: 900px; }
.page__head p { font-size: var(--t-lead); color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--ink); }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.prose { display: grid; gap: 1.1em; font-size: 1.1875rem; line-height: 1.65; max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: .8em; }
.prose h3 { margin-top: .6em; }
.prose ul { list-style: square; padding-left: 1.2em; display: grid; gap: .4em; }
.prose ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: .4em; }
.prose li p { display: inline; }
.prose li::marker { color: var(--green); }
.prose a { font-weight: 600; text-decoration-color: var(--green); }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.prose td, .prose th { border: 1px solid var(--steel); padding: 8px 10px; text-align: left; }
.aside { display: grid; position: sticky; top: calc(var(--hdr) + 24px); }
.aside .f { border-right: 0; }
.aside .f:last-child { border-bottom: 0; }
.aside ul { display: grid; gap: 8px; font-weight: 600; }
.aside li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--green); border: 2px solid var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: var(--rule); background: var(--white); font-weight: 600; text-decoration: none; transition: background-color .16s; }
.chip:hover { background: var(--board); }
.chip[aria-current="page"] { background: var(--ink); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery a { display: block; border: var(--rule); overflow: hidden; background: var(--ink); }
.gallery a:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .5s var(--ease); }
.gallery a:first-child img { aspect-ratio: auto; max-height: 720px; object-fit: contain; }
.gallery a:hover img { transform: scale(1.02); }
.facts { display: grid; grid-template-columns: 1fr; }
.empty { padding: 48px; border: var(--rule); background: var(--white); font-size: 1.25rem; }
.cta-band { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; }
.cta-band p { font-size: var(--t-lead); font-weight: 700; }

/* lightbox */
dialog.lb { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
dialog.lb::backdrop { background: rgb(17 17 17 / .92); }
dialog.lb img { max-width: 96vw; max-height: 86vh; width: auto; border: 2px solid var(--board); }
dialog.lb button { position: fixed; top: 16px; right: 16px; }
dialog.lb[open] { animation: lb-in .24s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--on-ink-muted); padding: 72px 0 calc(32px + var(--bar, 0px)); border-top: 6px solid var(--green); }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.ftr__brand { display: grid; gap: 20px; align-content: start; }
.ftr__brand .logo { justify-self: start; }
.ftr__h { font-size: .8125rem; letter-spacing: .09em; color: var(--green); margin-bottom: 14px; line-height: 1.2; }
.ftr p, .ftr li { font-size: 1rem; line-height: 1.7; }
.ftr a { color: var(--white); text-decoration-color: var(--green); }
.ftr a:hover { color: var(--green); }
.ftr .logo, .ftr .logo:hover { color: var(--ink); }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #33373a; font-size: .875rem; }
.actionbar { display: none; }

/* ---------- motion: one authored entrance + the annotation draw ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-enter] > .f { animation: field-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
  .js [data-enter] > .f:nth-child(1) { --i: 0; } .js [data-enter] > .f:nth-child(2) { --i: 1; } .js [data-enter] > .f:nth-child(3) { --i: 2; }
  .js [data-enter] > .f:nth-child(4) { --i: 3; } .js [data-enter] > .f:nth-child(5) { --i: 4; } .js [data-enter] > .f:nth-child(6) { --i: 5; }
  .js [data-annot] .annot__lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease); }
  .js [data-annot] .annot__dot { transform: scale(0); transition: transform .3s var(--ease); }
  .js [data-annot] .annot__tag { opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity .2s, clip-path .45s var(--ease); }
  .js [data-annot].is-drawn .annot__lines path { stroke-dashoffset: 0; }
  .js [data-annot].is-drawn .annot__dot { transform: none; }
  .js [data-annot].is-drawn .annot__tag { opacity: 1; clip-path: inset(0); }
  .js [data-annot].is-drawn :is(path, .annot__dot, .annot__tag):nth-of-type(2) { transition-delay: .15s; }
  .js [data-annot].is-drawn :is(path, .annot__dot, .annot__tag):nth-of-type(3) { transition-delay: .3s; }
  .js [data-annot].is-drawn .annot__tag { transition-delay: .45s; }
  @view-transition { navigation: auto; }
}
@keyframes field-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }

/* ---------- responsive ---------- */
@media (max-width: 1500px) {
  .hdr .status { display: none; }
  .nav a { padding: 10px 8px; }
}
@media (max-width: 1080px) {
  .nav { position: fixed; inset: var(--hdr) 0 0; flex-direction: column; gap: 0; padding: 24px var(--gut); background: var(--ink); visibility: hidden; opacity: 0;
    transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a { padding: 16px 0; font-size: 1.5rem; font-weight: 800; text-transform: uppercase; border-bottom: 1px solid #33373a; background: none; }
  .burger { display: block; margin-left: auto; }
  .hdr__call { display: none; }
  .hero__board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__title, .hero__photo { grid-column: 1 / -1; }
  .hero__photo { order: -1; border-bottom: var(--rule); }
  .hero__board > .f:nth-child(4), .hero__board > .f:nth-child(6) { border-right: 0; }
  .hero__board > .f:nth-child(3), .hero__board > .f:nth-child(5) { border-right: var(--rule); }
  .board--grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board--grid3 > .f:nth-child(n) { border-right: var(--rule); border-bottom: var(--rule); }
  .board--grid3 > .f:nth-child(2n) { border-right: 0; }
  .board--grid3 > .f:nth-last-child(-n + 2) { border-bottom: 0; }
  .steps, .cp, .mkt, .about, .contact, .split { grid-template-columns: 1fr; }
  .steps__photo { aspect-ratio: 4 / 3; }
  .mkt__photos { aspect-ratio: 3 / 4; max-height: 70svh; }
  .plates, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
  .sec__head--row { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 700px) {
  .logos, .logos--small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos li, .logos--small li { height: 64px; padding: 8px; }
  :root { --hdr: 64px; --bar: 76px; }
  body { font-size: 1.0625rem; }
  .sec { min-height: 0; padding: calc(var(--hdr) + 48px) 0 72px; }
  .hero { padding: calc(var(--hdr) + 16px) 0 calc(16px + var(--bar)); }
  .hero__board { grid-template-columns: 1fr; }
  .hero__board > .f:nth-child(n) { border-right: 0; }
  .hero__photo { order: 0; }
  .hero__title { padding: 28px 22px 26px; }
  .hero__tel { flex-direction: column; align-items: stretch; }
  .hero__tel .btn { width: 100%; }
  .annot__tag { font-size: .75rem; padding: 5px 8px; }
  .board--grid3 { grid-template-columns: 1fr; }
  .board--grid3 > .f:nth-child(n) { border-right: 0; border-bottom: var(--rule); }
  .board--grid3 > .f:last-child { border-bottom: 0; }
  .svc { min-height: 0; }
  .plates, .posts, .gallery { grid-template-columns: 1fr; }
  .form, .visit { grid-template-columns: 1fr; }
  .form .f, .visit .f { border-right: 0; }
  .form__foot .btn { width: 100%; }
  .cp__table th, .cp__table td { padding: 14px 12px; }
  .cp__table thead th:last-child, .cp__table td:last-child { display: none; }
  .cp__table td:nth-child(2) { border-right: 0; }
  .ftr__grid { grid-template-columns: 1fr; }
  .actionbar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 3px solid var(--green); }
  .actionbar .btn { min-height: 52px; padding: 0 10px; font-size: 1rem; }
  .logo__word { font-size: .85rem; }
  .map__ui { left: 12px; right: 12px; bottom: 12px; }
  .map__ui .btn { flex: 1; }
}

/* Reduced motion: keep colour feedback, drop movement (lifts, zooms, presses, view transitions). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-property: color, background-color, border-color, opacity !important; animation: none !important; scroll-behavior: auto !important; }
  :is(.btn, .plate, .post, .svc):is(:hover, :active), :is(.plate, .post):hover img, .gallery a:hover img, .svc:hover .svc__go { transform: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
