/* =========================================================
   Magiel & Pralnia PROkop — arkusz stylów
   Kierunek: nowoczesny lokalny zakład rzemieślniczy.
   Płótno, granat, szałwia; motywy metki, przeszycia i pieczęci.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* paleta */
  --linen: #f4efe6;
  --linen-deep: #ebe3d5;
  --paper: #fbf8f2;
  --ink: #17233a;          /* głęboki granat — tekst */
  --ink-soft: #4a5264;
  --navy: #1a2840;
  --navy-deep: #121d30;
  --bottle: #1f3a31;       /* butelkowa zieleń */
  --sage: #93a592;
  --sage-soft: #c9d3c5;
  --sage-ink: #4f6553;     /* szałwia o kontraście tekstowym */
  --mist: #a9b8c7;         /* przygaszony błękit */
  --on-dark: #f1ebdf;
  --on-dark-soft: #bcc5d1;
  --line: rgba(23, 35, 58, 0.16);
  --line-strong: rgba(23, 35, 58, 0.32);

  /* typografia */
  --f-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Courier Prime", ui-monospace, "Courier New", monospace;

  /* rytm */
  --gutter: clamp(1.25rem, 4.2vw, 3.25rem);
  --max: 1280px;
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* delikatna faktura płótna na całej stronie */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(23,35,58,.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(23,35,58,.014) 0 1px, transparent 1px 3px);
}
main, header, footer { position: relative; z-index: 1; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
button { font: inherit; }

::selection { background: var(--sage-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.story :focus-visible,
.site-footer :focus-visible,
.map :focus-visible { outline-color: var(--on-dark); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- typografia ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--f-mono);
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-ink);
}
.eyebrow-light { color: var(--sage-soft); }
.label-no {
  display: inline-block;
  padding: .2rem .5rem .15rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: .72rem;
  letter-spacing: .08em;
}
.stitch-dot {
  width: 28px; height: 1px;
  background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px);
}

.section-title,
.hero-title {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 144;
  font-weight: 350;
  letter-spacing: -0.022em;
  line-height: 1.02;
  text-wrap: balance;
}
.section-title { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem); }
.section-title em,
.hero-title em {
  font-style: italic;
  font-weight: 330;
  color: var(--sage-ink);
}
.section-lead {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.075em;
}

/* ---------- przyciski ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-sans);
  font-weight: 550;
  font-size: .98rem;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); box-shadow: 0 10px 24px -14px rgba(18, 29, 48, .7); }
.btn-primary:hover { --btn-bg: var(--bottle); --btn-bd: var(--bottle); }
.btn-ghost { --btn-bg: rgba(251, 248, 242, .55); }
.btn-ghost:hover { --btn-bg: var(--paper); --btn-bd: var(--ink); }
.btn-light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn-light:hover { --btn-bg: var(--sage-soft); --btn-bd: var(--sage-soft); }
.btn-outline-light { --btn-fg: var(--on-dark); --btn-bd: rgba(241, 235, 223, .45); }
.btn-outline-light:hover { --btn-bd: var(--on-dark); --btn-bg: rgba(241, 235, 223, .08); }
.btn-lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn-note {
  font-weight: 400;
  opacity: .72;
  font-variant-numeric: tabular-nums;
  padding-left: .6rem;
  border-left: 1px solid currentColor;
  border-left-color: rgba(251, 248, 242, .35);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  font-weight: 550;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .4s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }
.text-link .icon { transition: transform .3s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-scrolled {
  background: rgba(244, 239, 230, .86);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 48;
  font-size: 1.35rem;
  line-height: 1;
  padding-top: 2px;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed rgba(23, 35, 58, .45);
}
.brand-text { display: grid; line-height: 1.05; }
.brand-name {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 48;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.brand-name i { font-weight: 380; font-style: italic; }
.brand-sub {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

.nav-list {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  position: relative;
  text-decoration: none;
  font-size: .96rem;
  font-weight: 500;
  padding: .4rem 0;
}
.nav-list > li:not(.nav-mobile-contact) > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav-list > li > a:hover::after,
.nav-list > li > a[aria-current="true"]::after { transform: scaleX(1); }
.nav-mobile-only { display: none; }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.header-call:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .5rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 550;
  cursor: pointer;
}
.menu-toggle-lines {
  position: relative;
  width: 18px; height: 10px;
}
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle-lines::before { top: 0; }
.menu-toggle-lines::after { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 4.25px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: var(--section-y);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3.5rem));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
}
.hero-copy { max-width: 40rem; }
.hero-title {
  font-size: clamp(2.75rem, 1.2rem + 6.2vw, 6.4rem);
  margin-top: 1.4rem;
}
.hero-title em { display: inline; }
.hero-lead {
  margin-top: 1.75rem;
  max-width: 33rem;
  font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.25rem;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  margin: 3.25rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  display: grid;
  gap: .15rem;
  padding: .2rem 1.6rem .2rem 0;
  margin-right: 1.6rem;
  border-right: 1px dashed var(--line-strong);
}
.hero-facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts strong {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 36;
  font-weight: 450;
  font-size: 1.35rem;
  line-height: 1.1;
}
.hero-facts span {
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-media {
  position: relative;
  margin: 0;
}
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--linen-deep);
  box-shadow: 0 40px 80px -50px rgba(18, 29, 48, .55);
}
.hero-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
/* przeszycie wewnątrz kadru */
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(251, 248, 242, .55);
  border-radius: 2px;
  pointer-events: none;
}
.hero-address {
  position: absolute;
  top: 0; right: calc(-1 * clamp(1.6rem, 2.6vw, 2.4rem));
  display: flex;
  gap: 1.25rem;
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* pieczęć */
.seal {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.seal-ring {
  grid-area: 1 / 1;
  width: 100%; height: 100%;
  animation: seal-spin 60s linear infinite;
}
.seal-core {
  grid-area: 1 / 1;
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 72;
  font-weight: 400;
  line-height: 1;
}
.seal-hero {
  width: clamp(118px, 11vw, 150px);
  aspect-ratio: 1;
  left: calc(-1 * clamp(1.5rem, 3.4vw, 3.4rem));
  bottom: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--linen);
  color: var(--ink);
  box-shadow: 0 0 0 8px var(--linen);
}
.seal-hero .seal-core { font-size: clamp(2.2rem, 3vw, 2.9rem); padding-top: 4px; }
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* ---------- sekcje ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-head {
  display: grid;
  gap: 1.35rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 50rem;
}
.section-head-center { margin-inline: auto; text-align: center; justify-items: center; }

/* przeszycie oddzielające sekcje jasne */
.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter); right: var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px);
}

/* ---------- usługi ---------- */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 5fr) minmax(0, 2.8fr);
  grid-template-areas: "a list b";
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.services-media { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--linen-deep); }
.services-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.services-media-a { grid-area: a; position: sticky; top: calc(var(--header-h) + 24px); }
.services-media-b { grid-area: b; margin-top: clamp(6rem, 14vw, 13rem); }
.service-list { grid-area: list; }

.service {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.4rem;
  padding: 2rem 0 2.1rem;
  border-top: 1px dashed var(--line-strong);
}
.service:last-child { border-bottom: 1px dashed var(--line-strong); }
.service-icon {
  width: 56px; height: 56px;
  padding: 12px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--sage-ink);
  background: var(--paper);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .6s var(--ease);
}
.service:hover .service-icon { background: var(--ink); color: var(--paper); transform: rotate(-8deg); }
.service-no {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--sage-ink);
}
.service h3 {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 60;
  font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.1rem);
  font-weight: 400;
  line-height: 1.12;
  margin: .3rem 0 .65rem;
}
.service p:not(.service-no) { color: var(--ink-soft); max-width: 32rem; }
.service-soft h3 { font-style: italic; font-weight: 340; }

/* ---------- historia ---------- */
.story {
  background: var(--navy);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.story-weave {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(241,235,223,.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(241,235,223,.03) 0 1px, transparent 1px 4px);
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "year year"
    "copy media";
  column-gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
}
.story-year {
  grid-area: year;
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  line-height: .8;
}
.story-year-num {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 144;
  font-weight: 300;
  font-size: clamp(6rem, 3rem + 15vw, 17rem);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 211, 197, .55);
}
.story-year-label {
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-soft);
  padding-bottom: 1.2em;
  white-space: nowrap;
}
.story-copy { grid-area: copy; }
.story .section-title { margin-top: 1.35rem; max-width: 40rem; }
.story .section-title em { color: var(--sage-soft); }
.story-text {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
  max-width: 36rem;
  color: var(--on-dark-soft);
  font-size: 1.07em;
}
.story-text p:first-child { color: var(--on-dark); }
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.principles li {
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(241, 235, 223, .3);
}
.principles h3 {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 36;
  font-size: 1.3rem;
  font-weight: 420;
  margin-bottom: .45rem;
}
.principles p { color: var(--on-dark-soft); font-size: .95rem; line-height: 1.55; }
.story-media {
  grid-area: media;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.story-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story-media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(251, 248, 242, .5);
  pointer-events: none;
}

/* ---------- jak skorzystać ---------- */
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  position: relative;
  --steps-gap: clamp(1.5rem, 3vw, 3rem);
  gap: var(--steps-gap);
}
/* nić łącząca kroki */
.steps-list::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 32px;
  right: calc((100% - 2 * var(--steps-gap)) / 3 - 32px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--sage) 0 6px, transparent 6px 11px);
  transform-origin: left;
  transform: scaleX(var(--thread, 1));
  transition: transform 1.6s var(--ease);
}
.step { position: relative; padding-right: 1rem; }
.step-no {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--linen);
  border: 1px solid var(--ink);
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 72;
  font-size: 1.7rem;
  margin-bottom: 1.6rem;
}
.step-no::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(23, 35, 58, .35);
}
.step h3 {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem);
  line-height: 1.15;
  margin-bottom: .7rem;
}
.step p { color: var(--ink-soft); max-width: 22rem; }

/* ---------- kontakt ---------- */
.contact { padding-top: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 50px 100px -60px rgba(18, 29, 48, .5);
  padding-inline: 0;
  max-width: calc(var(--max));
  width: calc(100% - var(--gutter) * 2);
}
.contact-card {
  background: var(--paper);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  gap: 1.6rem;
  align-content: start;
}
.contact-card .section-title { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem); }
.contact-label {
  display: block;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin-bottom: .3rem;
}
.contact-address { display: grid; padding-top: .5rem; }
.contact-big {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.5rem, 1.25rem + .9vw, 1.95rem);
  line-height: 1.2;
}
.contact-big-sub { color: var(--ink-soft); }
.contact-list {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 1.4rem 0;
  border-block: 1px dashed var(--line-strong);
}
.contact-list dd { margin: 0; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 32px;
  font-weight: 550;
  font-size: 1.05rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.contact-list a:hover { background-size: 100% 1px; }
.contact-list .icon { color: var(--sage-ink); }
.contact-hours {
  color: var(--ink-soft);
  font-size: .97rem;
  padding-left: 1rem;
  border-left: 2px solid var(--sage);
}
.contact-hours strong { color: var(--ink); font-weight: 600; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.map {
  position: relative;
  min-height: 520px;
  background: var(--bottle);
  color: var(--on-dark);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(.35) sepia(.12) contrast(.96);
}
.map-facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.4rem;
  padding: 2rem;
  text-align: center;
  overflow: hidden;
}
.map-pattern {
  position: absolute;
  inset: -20%;
  opacity: .55;
  background-image:
    repeating-linear-gradient(0deg, rgba(241,235,223,.05) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(241,235,223,.04) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 42%, rgba(147,165,146,.35), transparent 55%);
}
.seal-map {
  position: relative;
  width: 168px;
  aspect-ratio: 1;
  color: var(--sage-soft);
}
.seal-pin { grid-area: 1 / 1; width: 44px; height: 44px; color: var(--on-dark); }
.map-address {
  position: relative;
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 48;
  font-size: 1.5rem;
  line-height: 1.3;
}
.map-buttons { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.map-note { position: relative; font-size: .82rem; color: rgba(241, 235, 223, .7); }
.map.is-loaded .map-facade { display: none; }

/* ---------- stopka ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark-soft);
  padding-block: clamp(4rem, 8vw, 6.5rem) 2rem;
  overflow: hidden;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px dashed rgba(241, 235, 223, .22);
}
.footer-wordmark {
  font-family: var(--f-serif);
  font-variation-settings: "opsz" 144;
  font-size: clamp(3.6rem, 2rem + 8vw, 8.5rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.footer-wordmark i { font-style: italic; font-weight: 320; color: var(--sage-soft); }
.footer-tagline span { white-space: nowrap; }
.footer-tagline {
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.seal-footer {
  position: relative;
  flex: none;
  width: clamp(110px, 12vw, 150px);
  aspect-ratio: 1;
  color: var(--sage-soft);
}
.seal-footer .seal-core { font-size: 2.6rem; color: var(--on-dark); padding-top: 4px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-h {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-soft);
  margin-bottom: .9rem;
}
.footer-cols p, .footer-cols li { line-height: 1.9; }
.footer-link {
  color: var(--on-dark);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
  overflow-wrap: anywhere;
}
.footer-link:hover { background-size: 100% 1px; }
.footer-cols .footer-link[href^="https://www.google"] { display: inline-block; margin-top: .35rem; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .5rem 1rem .5rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(241, 235, 223, .3);
  color: var(--on-dark);
  text-decoration: none;
  transition: background-color .3s, border-color .3s;
}
.footer-social:hover { background: rgba(241, 235, 223, .08); border-color: var(--on-dark); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(241, 235, 223, .22);
  font-size: .88rem;
}
.footer-bottom .footer-note { opacity: .72; }

/* ---------- pływający telefon ---------- */
.call-fab { display: none; }

/* ---------- animacje wejścia ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal-media { transform: translate3d(0, 34px, 0) scale(.985); }
.js .reveal-media img { transform: scale(1.06); transition: transform 1.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-media.is-in img { transform: none; }
.js .steps-list { --thread: 0; }
.js .steps-list.is-in { --thread: 1; }

/* =========================================================
   Responsywność
   ========================================================= */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "list list"
      "a b";
  }
  .services-media-a { position: static; }
  .services-media-b { margin-top: 0; }
  .story-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  }
  .principles { grid-template-columns: 1fr; gap: 1.1rem; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--linen);
    padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li:not(.nav-mobile-contact) { border-bottom: 1px dashed var(--line-strong); }
  .nav-list > li > a:not(.btn) {
    display: block;
    padding: 1rem 0;
    font-family: var(--f-serif);
    font-variation-settings: "opsz" 72;
    font-weight: 380;
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.15;
  }
  .nav-list > li > a::after { display: none; }
  .nav-mobile-only { display: block; }
  .nav-mobile-contact { padding-top: 2rem; display: grid; gap: 1rem; }
  .nav-mobile-contact .btn { width: 100%; min-height: 56px; }
  .nav-mobile-contact p { color: var(--ink-soft); font-family: var(--f-mono); font-size: .85rem; letter-spacing: .06em; }
  .menu-toggle { display: inline-flex; }
  .site-header.menu-open { background: var(--linen); box-shadow: 0 1px 0 var(--line); }
  body.menu-locked { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy { max-width: none; }
  .hero-title { font-size: clamp(2.7rem, 1.4rem + 7vw, 5rem); }
  .hero-frame { aspect-ratio: 5 / 4; }
  .hero-frame img { object-position: 50% 58%; }
  .hero-address { display: none; }
  .seal-hero { left: auto; right: 1rem; bottom: auto; top: -54px; width: 112px; }

  .story-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "year" "copy" "media";
    row-gap: 0;
  }
  .story-media { margin-top: 3rem; }
  .story-media img { aspect-ratio: 5 / 4; }
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .contact-grid { grid-template-columns: 1fr; }
  .map { min-height: 420px; }
}

@media (max-width: 720px) {
  .header-call { display: none; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.2rem; }
  .brand-name { font-size: 1.3rem; }

  .hero { padding-bottom: clamp(4rem, 14vw, 6rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.5rem; }
  .hero-facts li { padding-right: .8rem; margin-right: .8rem; }
  .hero-facts strong { font-size: 1.12rem; }
  .hero-facts span { font-size: .66rem; letter-spacing: .05em; }
  .hero-frame { aspect-ratio: 4 / 4.2; }
  .hero-frame::after { inset: 10px; }
  .seal-hero { width: 96px; top: -46px; right: .75rem; box-shadow: 0 0 0 6px var(--linen); }
  .seal-hero .seal-core { font-size: 1.8rem; }

  .services-grid { grid-template-areas: "list list" "a b"; gap: 1rem; }
  .service { grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; padding: 1.6rem 0; }
  .service-icon { width: 44px; height: 44px; padding: 9px; }
  .services-media img { aspect-ratio: 4 / 5; }
  .service-list { margin-bottom: 1.5rem; }

  .principles { grid-template-columns: 1fr; }

  .steps-list { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps-list::before { display: none; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 72px;
    bottom: calc(-2.5rem + 8px);
    width: 1px;
    background: repeating-linear-gradient(180deg, var(--sage) 0 6px, transparent 6px 11px);
    transform-origin: top;
    transform: scaleY(var(--thread, 1));
    transition: transform 1.2s var(--ease);
  }
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 1.25rem; padding-right: 0; }
  .step-no { grid-row: span 3; margin-bottom: 0; }
  .step h3 { margin-top: .9rem; }

  .contact { padding-bottom: 0; }
  .contact-grid { width: 100%; border-radius: 0; box-shadow: none; }
  .contact-card { padding-inline: var(--gutter); }
  .contact-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-actions .btn { padding-inline: .8rem; }
  .map { min-height: 400px; }
  .seal-map { width: 136px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .seal-footer { position: absolute; right: var(--gutter); top: clamp(4rem, 8vw, 6.5rem); width: 92px; }
  .seal-footer .seal-core { font-size: 1.7rem; }
  .footer-tagline { max-width: calc(100% - 110px); line-height: 1.7; }
  .footer-tagline > span { display: block; }
  .footer-tagline .tagline-sep { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .site-footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
  .footer-top { position: static; }
  .site-footer .container { position: relative; }
  .seal-footer { top: 0; }

  /* pływający telefon */
  .call-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(18, 29, 48, .7), 0 0 0 4px rgba(244, 239, 230, .9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.96);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .call-fab.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .call-fab .icon { width: 24px; height: 24px; }
  .call-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 400px) {
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; }
  .hero-facts li { padding-right: .5rem; margin-right: .5rem; }
  .hero-facts strong { font-size: 1rem; }
  .contact-actions { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 340px) {
  .btn-note { display: none; }
}

/* ---------- ograniczenie animacji ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .reveal-media, .js .reveal-media img { opacity: 1; transform: none; }
  .js .steps-list { --thread: 1; }
}

/* ---------- druk ---------- */
@media print {
  body::before, .site-header, .call-fab, .map, .seal { display: none !important; }
  .story, .site-footer { background: none; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
