/* ==========================================================================
   Kwiat Wystroju - one-pager
   Kierunek: edytorialowa, romantyczna elegancja. Paleta z realnego logo
   (krem / brzoskwinia + gleboka sliwka). Display: Cormorant Garamond, body: Jost.
   Zasada ksztaltow: powierzchnie i kadry ostro (0), interaktywne elementy pill.
   ========================================================================== */

/* ---------- 1. Tokeny ---------- */
:root {
  /* Powierzchnie */
  --bg: #FBF1E6;          /* krem - tlo strony */
  --bg-alt: #F4E2D1;      /* cieplejszy krem - sekcje */
  --surface: #FFF9F3;     /* jasna karta */
  --peach: #FFE5CA;       /* brzoskwinia z logo */

  /* Tekst */
  --fg: #2A1A23;          /* cieply, niemal czarny */
  --fg-soft: #4E3745;
  --muted: #6C5160;

  /* Marka */
  --plum: #5D2E46;        /* sliwka z logo - kolor glowny */
  --plum-deep: #3E2030;
  --plum-soft: #7B4961;
  --rose: #C08A93;        /* pylkowa roz - akcent drugorzedny */

  /* Linie */
  --line: #E6D0C0;
  --line-strong: #D8BBA6;

  --accent: var(--plum);
  --accent-ink: #FFEFE4;

  /* Typografia */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  /* Rytm */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 11vw, 152px);
  --radius: 0px;
  --pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:target { scroll-margin-top: 96px; }

/* ---------- 3. Dostepnosc ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--plum); color: var(--accent-ink);
  padding: 12px 20px; border-radius: var(--pill);
  font-size: 14px; letter-spacing: 0.02em;
}
.skip-link:focus { left: 16px; top: 16px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
  border-radius: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Typografia ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--plum);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.display-xl {
  font-size: clamp(2.9rem, 7.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.display-l { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.024em; }
.display-m { font-size: clamp(1.7rem, 3.1vw, 2.35rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.6rem); }

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.5;
  color: var(--plum-soft);
  font-weight: 400;
}
p { color: var(--fg-soft); }
.body-lg { font-size: 1.08rem; }
.measure { max-width: 62ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum);
}
.ital { font-style: italic; }
.accent-word { font-style: italic; color: var(--plum-soft); }

/* ---------- 5. Uklad ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section--plum { background: var(--plum); color: var(--cream-ink, #F6E7DC); }
.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin-bottom: 0.5em; }
.rule {
  height: 1px; border: 0; background: var(--line);
  margin: 0;
}

/* Ikony - gałązka (SVG inline, stroke = currentColor) */
.flourish { flex: 0 0 auto; }
.quote > .flourish { color: var(--rose); }

/* ---------- 6. Przyciski ---------- */
.btn {
  --btn-bg: var(--plum);
  --btn-fg: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: var(--pill);
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--plum-deep); border-color: var(--plum-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn .btn-arrow { transition: transform .22s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: rgba(93, 46, 70, 0.04);
  --btn-fg: var(--plum);
  border-color: var(--plum-soft);
}
.btn--ghost:hover { background: var(--plum); border-color: var(--plum); color: var(--accent-ink); transform: translateY(-1px); }

.btn--light { --btn-bg: var(--peach); --btn-fg: var(--plum-deep); border-color: var(--peach); }
.btn--light:hover { background: #fff; border-color: #fff; }

.link-inline {
  color: var(--plum);
  border-bottom: 1px solid var(--rose);
  padding-bottom: 1px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.link-inline:hover { border-color: var(--plum); }

/* ---------- 7. Naglowek / nawigacja ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 241, 230, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 241, 230, 0.95); }
.site-header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand__mark { width: clamp(148px, 15vw, 176px); height: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 0.92rem; letter-spacing: 0.02em; color: var(--fg-soft);
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--plum); transition: right .25s var(--ease);
}
.nav a:hover { color: var(--plum); }
.nav a:hover::after { right: 0; }

.header-cta { display: inline-flex; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
}
.nav-toggle:hover { background: var(--peach); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--plum);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { padding: 10px var(--gutter) 24px; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav a {
  display: block; padding: 16px 0; font-family: var(--font-display);
  font-size: 1.4rem; color: var(--plum);
}
.mobile-nav .btn { margin-top: 18px; width: 100%; justify-content: center; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(44px, 7vw, 96px) clamp(56px, 8vw, 112px);
}
.hero__copy { position: relative; z-index: 2; }
.hero__title { margin: 14px 0 0; }
.hero__title .ital { color: var(--plum-soft); }
.hero__sub {
  margin-top: 26px; max-width: 44ch;
  font-size: 1.12rem; color: var(--fg-soft); line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px;
  font-size: 0.9rem; color: var(--fg-soft); letter-spacing: 0.02em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 9px; }

.hero__media { position: relative; }
.hero__frame { position: relative; z-index: 2; }
.hero__frame img {
  width: 100%; height: clamp(420px, 64vw, 660px);
  object-fit: cover; border-radius: var(--radius);
}
.hero__panel {
  position: absolute; left: 30%; right: -7%; bottom: -7%; height: 58%;
  background: var(--peach); z-index: 1;
}
.hero__stamp {
  position: absolute; z-index: 3; left: 0; bottom: 30px;
  background: var(--plum); color: var(--accent-ink);
  padding: 16px 22px; max-width: 220px;
}
.hero__stamp b {
  display: block; font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.1;
}
.hero__stamp small { display: block; margin-top: 4px; font-size: 0.78rem; letter-spacing: 0.04em; opacity: 0.85; }

/* ---------- 9. O nas ---------- */
.about__grid {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(30px, 5vw, 78px); align-items: center;
}
.about__media { position: relative; }
.about__media img { width: 100%; height: clamp(380px, 52vw, 580px); object-fit: cover; }
.about__media::after {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 1px solid var(--line-strong); z-index: -1;
}
.about__copy p + p { margin-top: 18px; }
.signature {
  margin-top: 30px; font-family: var(--font-display); font-style: italic;
  font-size: 1.7rem; color: var(--plum);
}

/* ---------- 10. Wartosci ---------- */
.values__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 76px);
}
.values__intro h2 { margin-bottom: 18px; }
.values__list { display: grid; gap: 0; }
.value {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.value:last-child { border-bottom: 1px solid var(--line); }
.value__icon { margin-top: 4px; color: var(--plum-soft); }
.value h3 { margin-bottom: 6px; }
.value p { max-width: 52ch; }

/* ---------- 11. Oferta (bento) ---------- */
.offer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(24px, 2.6vw, 38px);
  min-height: 220px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card--media { padding: 0; overflow: hidden; min-height: 380px; justify-content: flex-end; }
.card--media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.card--media:hover img { transform: scale(1.04); }
.card--media .card__overlay {
  position: relative; z-index: 2; padding: clamp(24px, 2.6vw, 38px);
  background: linear-gradient(to top, rgba(32, 16, 24, 0.94) 0%, rgba(32, 16, 24, 0.78) 32%, rgba(32, 16, 24, 0.42) 62%, rgba(32, 16, 24, 0) 100%);
  color: #FBEDE2;
}
.card--media .card__overlay h3 { color: #FBEDE2; }
.card--media .card__overlay p { color: rgba(251, 237, 226, 0.9); font-size: 1rem; }
.card--peach { background: var(--peach); border-color: #E4C29F; }
.card__ic { color: var(--plum-soft); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; line-height: 1.6; }
.card__tag {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: var(--peach);
  color: var(--plum-deep);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
  margin-top: 20px;
}
.card--media .card__tag {
  background: rgba(255, 229, 202, 0.22);
  color: #FFE5CA;
  border: 1px solid rgba(255, 229, 202, 0.35);
  backdrop-filter: blur(4px);
  margin-top: 16px;
}

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.offer__wide {
  grid-column: span 12;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: clamp(20px, 3vw, 44px);
}
.offer__wide .card__ic { margin: 0; }

/* ---------- 11b. Jak pracujemy (3 kroki) ---------- */
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.process__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.process__card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.process__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--rose);
  margin-bottom: 20px;
  font-style: italic;
}
.process__card h3 {
  margin-bottom: 12px;
  color: var(--plum);
}
.process__card p {
  color: var(--fg-soft);
  font-size: 0.98rem;
  line-height: 1.62;
}

/* ---------- 12. Realizacje ---------- */
.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.work__side {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.gallery__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.gallery__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s var(--ease);
  box-shadow: 0 2px 8px rgba(42, 26, 35, 0.06);
}
.gallery__btn:hover {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(42, 26, 35, 0.16);
}
.gallery__btn:active {
  transform: translateY(0) scale(0.96);
}
.gallery-container {
  position: relative;
  margin-top: clamp(24px, 3.5vw, 40px);
}
.gallery-wrap {
  position: relative;
}
.gallery {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 36%);
  gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto; overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding-block: 6px 22px;
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin;
}
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: var(--line-strong); }
.gallery__item { scroll-snap-align: start; }
.gallery__item figure { position: relative; overflow: hidden; }
.gallery__item img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item figcaption {
  margin-top: 13px; font-size: 0.9rem; color: var(--fg-soft); line-height: 1.5;
}
.gallery__item figcaption b { color: var(--plum); font-weight: 500; }

.histories {
  margin-top: clamp(30px, 4vw, 52px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.histories__track {
  display: flex; width: max-content; gap: 0;
  animation: marquee 42s linear infinite;
}
.histories__track:hover { animation-play-state: paused; }
.histories__item {
  display: inline-flex; align-items: center; gap: 26px;
  padding: 22px 26px;
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--plum); white-space: nowrap;
}
.histories__item .flourish { opacity: .8; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 13. Opinie ---------- */
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.quote { display: flex; flex-direction: column; }
.quote .flourish { margin-bottom: 18px; }
.quote blockquote {
  font-family: var(--font-display); font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.42; letter-spacing: -0.008em; color: var(--plum);
}
.quote figcaption {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.quote figcaption b { display: block; font-size: 0.95rem; letter-spacing: 0.02em; text-transform: none; color: var(--fg); font-weight: 500; margin-bottom: 3px; }
.quote__stars {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  margin-bottom: 16px !important;
  line-height: 1 !important;
}
.quote__stars .star-icon {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  flex: 0 0 18px !important;
  fill: #D48C46 !important;
  color: #D48C46 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------- 13b. FAQ ---------- */
.faq__list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease);
}
.faq__item[open] {
  border-color: var(--line-strong);
}
.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--plum);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq__question::-webkit-details-marker {
  display: none;
}
.faq__toggle {
  font-family: var(--font-body);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--plum-soft);
  transition: transform .25s var(--ease);
}
.faq__item[open] .faq__toggle {
  transform: rotate(45deg);
}
.faq__answer {
  padding: 0 24px 22px;
  color: var(--fg-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- 14. Kontakt ---------- */
.contact { background: var(--plum); color: #F6E7DC; }
.contact h2 { color: #FFF3E9; }
.contact p { color: rgba(246, 231, 220, 0.82); }
.contact__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(34px, 5vw, 76px); align-items: start;
}
.contact__list { display: grid; gap: 0; }
.contact__row {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 22px 0; border-top: 1px solid rgba(246, 231, 220, 0.32);
}
.contact__row:last-child { border-bottom: 1px solid rgba(246, 231, 220, 0.32); }
.contact__row dt { display: flex; align-items: center; gap: 10px; font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(246, 231, 220, 0.88); }
.contact__row dd { margin: 4px 0 0; font-size: 1.05rem; }
.contact__row a { border-bottom: 0; transition: color .2s var(--ease); }
.contact__row a[href^="mailto:"] { border-bottom: 1px solid rgba(246, 231, 220, 0.45); }
.contact__row a:hover { color: #fff; }
.contact__row a[href^="mailto:"]:hover { border-color: #fff; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.contact__perks {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.94rem;
  color: rgba(246, 231, 220, 0.94);
}
.contact__perks li {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.contact__perks .flourish {
  color: var(--peach);
  flex-shrink: 0;
}
.contact .socials a { border-color: rgba(246, 231, 220, 0.3); color: rgba(246, 231, 220, 0.9); }
.contact .socials a:hover { border-color: #fff; color: #fff; }

.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border: 1px solid var(--line-strong); border-radius: var(--pill);
  font-size: 0.9rem; letter-spacing: 0.02em; color: var(--fg-soft);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.socials a:hover { border-color: var(--plum); color: var(--plum); background: var(--peach); }

/* ---------- 15. Stopka ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 76px) 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(26px, 4vw, 56px); }
.footer__brand img { width: 190px; height: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 34ch; font-size: 0.95rem; }
.footer h4 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.footer ul li + li { margin-top: 10px; }
.footer a { color: var(--fg-soft); }
.footer a:hover { color: var(--plum); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  margin-top: clamp(36px, 5vw, 60px); padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}

/* ---------- 16. Ruch / reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.is-visible .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.hero__copy > * { opacity: 0; transform: translateY(18px); animation: heroIn .8s var(--ease) forwards; }
.hero__copy > *:nth-child(1) { animation-delay: .05s; }
.hero__copy > *:nth-child(2) { animation-delay: .16s; }
.hero__copy > *:nth-child(3) { animation-delay: .27s; }
.hero__copy > *:nth-child(4) { animation-delay: .38s; }
.hero__media { opacity: 0; animation: heroIn 1s var(--ease) .3s forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .hero__copy > *, .hero__media { opacity: 1 !important; transform: none !important; }
  .histories__track { animation: none; }
}

/* ---------- 17. Responsywnosc ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { inset: auto -6% -6% 40%; }
  .about__grid, .values__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .about__media::after { inset: 16px -16px -16px 16px; }
  .quotes__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .col-4, .col-5, .col-7, .col-8 { grid-column: span 6; }
  .offer__wide { grid-column: span 12; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav.is-open { display: block; }
  .col-4, .col-5, .col-7, .col-8 { grid-column: span 12; }
  .offer__wide { grid-template-columns: 1fr; }
  .offer__wide .card__ic { margin-bottom: 6px; }
  .gallery { grid-auto-columns: 82%; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stamp { left: 0; }
  .hero__frame img { height: clamp(360px, 96vw, 520px); }
  .brand__mark { width: 138px; }
  .hero__actions, .contact__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .contact__actions .btn { justify-content: center; }
}

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

/* ---------- 18. Poprawka: przycisk CTA w menu mobilnym ----------
   Selektor ".mobile-nav a" (0,1,1) wygrywa specyficznoscia z ".btn" (0,1,0),
   dlatego tekst przycisku przejmowal kolor i typografie linkow menu:
   plum (#5D2E46) na plumowym tle tego samego przycisku (kontrast 1:1 - tekst
   niewidoczny) oraz Cormorant 1.4rem zamiast Jost 0.94rem.
   Ponizsza regula (0,2,1) przywraca przyciskowi jego wlasne style.
   Istniejace reguly nie zostaly zmienione. */
.mobile-nav a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--accent-ink);
}
