/* AUTO-GENERATED by the hub from the Branding tab (branding → baza).
   Regenerowany przy każdym "Wygeneruj bazę (z brandingu)" — nie edytuj ręcznie. */
/* tokens-schema: v11 */
:root {
  /* — kolory z PLIKU logo (źródło prawdy) — */
  --logo-1: #e9bc3a;
  --logo-2: #c78c13;
  --logo-3: #8b4602;
  --logo-4: #fdf199;
  --logo-5: #ab6d02;
  --logo-6: #fffff3;
  --logo-7: #f9db65;
  /* — paleta z zakładki Branding — */
  --palette-1: #b07b0c;
  --palette-2: #8d6209;
  --palette-3: #f9f7f2;
  --palette-4: #f0ece3;
  --palette-5: #0f0e0a;
  --palette-6: #242118;
  --palette-7: #1a1710;
  --palette-8: #6b6358;
  --palette-9: #f2ede2;
  --palette-10: #ddd8cf;
  /* — semantyka bazowa (heurystyka; base.css może nadpisać na wierzchu) — */
  --brand: #b07b0c;
  --brand-2: #7f5909;
  --black2: #0f0e0a;
  --white: #ffffff;
  --light2: #fffff3;
  --light3: #f0f0e4;
  /* — typografia (self-host w src/styles/fonts.css) — */
  --font-heading: "Bespoke Serif", sans-serif;
  --font-body: "Cabin", sans-serif;
  /* — layout — */
  --padding-horizontal: 24px;
  --section-pad-block: 96px;
  --border-radius: 0px;
}
@media (max-width: 1023px) {
  :root { --section-pad-block: 72px; }
}
@media (max-width: 767px) {
  :root { --section-pad-block: 56px; --padding-horizontal: 16px; }
}

/* System tokenów z brandingu — ŹRÓDŁO PRAWDY. base.css tylko je referuje */
/* (nie redefiniuje), więc zmiana radius/border/palety wchodzi natychmiast. */
:root {
  --accent: #b07b0c;
  --accent-2: #7f5909;
  --accent-contrast: #ffffff;
  --accent-strong: #8d6209;
  --accent-soft: #d6bd8a;
  --surface: #f9f7f2;
  --surface-2: #f0ece3;
  --surface-dark: #0f0e0a;
  --surface-dark-2: #242118;
  --ink: #1a1710;
  --ink-soft: #6b6358;
  --on-dark: #f2ede2;
  --border: #ddd8cf;
  --heading-accent: #b07b0c;
  --heading-accent-on-dark: #b07b0c;
  --heading-line-color: #b07b0c;
  --heading-line-color-on-dark: #b07b0c;
  --brand-el-watermark-color: #b07b0c;
  --brand-el-watermark-color-on-dark: #b07b0c;
  --brand-el-watermark-opacity: 0.08;
  --border-width: 0px;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-pill: 0px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-md: 0 10px 28px rgba(0,0,0,0.13);
  --shadow-lg: 0 18px 46px rgba(0,0,0,0.16);
  /* — gradienty: brak — płaskie kolory. Kontrakt Picasso — ZAWSZE obecne; bez gradientów = płaski kolor, */
  /*   więc `background: var(--grad-accent)` jest zawsze poprawne. --grad-enabled mówi, czy aktywne. */
  --grad-enabled: 0;
  --grad-angle: 135deg;
  --grad-from: #b07b0c;
  --grad-to: #b07b0c;
  --grad-accent-contrast: #1a1710;
  --grad-accent: linear-gradient(var(--accent), var(--accent));
  --grad-accent-soft: linear-gradient(#d6bd8a, #d6bd8a);
  --grad-dark: linear-gradient(var(--surface-dark), var(--surface-dark));
}

/* Baza tekstu — jedyne miejsce, które konsumuje --ink i fonty marki.          */
/* :where() = specyficzność ZERO, więc base.css i sekcje nadpisują swobodnie   */
/* niezależnie od kolejności ładowania. Zmiana palety/fontów działa od razu.   */
:where(body) {
  color: var(--ink);
  font-family: var(--font-body, system-ui, sans-serif);
}
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-heading, var(--font-body, system-ui, sans-serif));
}

/* Elementy brandingu — widoczność i umiejscowienie (LIVE z zakładki Branding). */
/* Sekcje owijają każdy ozdobnik w .brand-el.brand-el--<technika>; linia #7 jest  */
/* renderowana w OBU slotach (.heading-line--above/--below) i tu wybieramy jeden. */
:root {
  --brand-el-photo-frame: none;
  --brand-el-shape-divider: block;
  --brand-el-section-bg: none;
  --brand-el-corner-decor: none;
  --brand-el-text-accent: none;
  --brand-el-watermark: block;
  --brand-el-text-divider: block;
  --brand-el-bg-photo: block;
  --brand-el-marquee-slogan: block;
  --heading-line-above: none;
  --heading-line-below: block;
  --heading-accent-mask: block;
  --heading-accent-img: none;
  --heading-line-mask: none;
  --heading-line-img: block;
}
/* Wyłączone elementy/warianty — twardo ukryte (reszta bez zmian): */
.brand-el--photo-frame { display: none !important; }
.brand-el--section-bg { display: none !important; }
.brand-el--corner-decor { display: none !important; }
.brand-el--text-accent { display: none !important; }
.brand-el--mascot-signet { display: none !important; }
.brand-el--seam-decor { display: none !important; }
.heading-line--above { display: none !important; }
.heading-mark--img { display: none !important; }
.heading-line-mask { display: none !important; }
/* #7: wybrany plik narysowano pod przeciwne umiejscowienie — motyw odwrócony w pionie: */
.heading-line--below .heading-line-img, .heading-line--below .heading-line-mask, .heading-line--below.heading-line-img, .heading-line--below.heading-line-mask { scale: 1 -1 !important; }
/* #5 akcent nagłówka POMINIĘTY — żaden znak graficzny przy nagłówku nie ma prawa się pokazać: */
.eyebrow-mark, .heading-mark, .heading-mark--mask, .heading-mark--img { display: none !important; }

/* #6 Znak wodny — kolor i krycie LIVE z zakładki Branding (bez przebudowy sekcji). */
.brand-el--watermark { opacity: var(--brand-el-watermark-opacity) !important; }
.brand-el--watermark { background-color: var(--brand-el-watermark-color) !important; -webkit-mask: url("/brand/el-watermark.webp") center / contain no-repeat !important; mask: url("/brand/el-watermark.webp") center / contain no-repeat !important; }
/* wariant „kontener + <img> w środku”: chowamy piksele obrazka, pudełko zostaje */
.brand-el--watermark img { visibility: hidden !important; }
/* wariant „element JEST <img>”: piksele wypychamy poza kadr, żeby tło pozostało */
img.brand-el--watermark { object-fit: none !important; object-position: -99999px -99999px !important; overflow: hidden !important; }
/* na ciemnych płaszczyznach ten sam kolor, rozjaśniony tylko gdy by zniknął */
[data-tone="dark"] .brand-el--watermark, .on-dark .brand-el--watermark { background-color: var(--brand-el-watermark-color-on-dark) !important; }

/* UI signature — derived from the brand kit; every component honours these:
   1) Każdy CTA i etykieta pisane KAPITALIKAMI kroju serif (Bespoke Serif) z trackingiem 0.25em — niezmienny „kod etykiet"; wspólny dla WSZYSTKICH przycisków, nadtytułów i nawigacji.
   2) Arabeskowa woluta z monogramu MD jako mask-motyw: pionowa na .eyebrow-mark (cichy lewy znacznik sekcji) oraz pozioma jako sunący na hover „ogon" .btn-primary — zastępuje strzałkę, nie dokłada się do niej.
   3) Pionowy złoty filar 2px (border-left var(--accent)) na .card i .field — „cichy filar" lewej kolumny układu, zarezerwowany w stanie spoczynku (hover nie przesuwa layoutu).
   4) 1px złota linia jako JEDYNY język separacji: rosnące od lewej podkreślenie linków (.link-underline) i separatory sekcji (.heading-line) — jeden powtarzany motyw, nie zbiór ozdób.
   5) Liczby porządkowe / inicjały w PŁASKIM złocie krojem serif (.step-num) — złoto trafia wyłącznie na cyfry, akcenty, linki i CTA; NIGDY na tekst czytany. Ostre rogi (0px), płaskie wypełnienia (bez gradientów), miękka neutralna głębia. */

/* tokens.css OWNS the design system (--accent, --radius-*, --surface*, --ink*, --shadow-*, --border*).
   base.css only REFERENCES those tokens and defines the button-signature aliases below. */
:root {
  --btn-height: 52px;
  --btn-height-sm: 42px;
  --btn-radius: var(--radius-md);      /* primary button radius = sharp (0) — Slider arrows shape from this */
  --btn-shadow: none;                  /* elegant brand: no resting button shadow, lift appears on hover */

  /* Arabeskowa woluta wyizolowana z monogramu MD — jeden motyw, dwa kierunki (spójny język krzywej) */
  --motif-volute-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 24V10c0-5.5 3.6-7.6 6-5 2 2.2 0.4 5.6-2.6 5-2-0.4-2.4-2.6-0.9-3.6'/%3E%3C/svg%3E");
  --motif-volute-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12h13c5.6 0 7.6-3.6 5-6-2.2-2-5.6-0.4-5 2.6'/%3E%3C/svg%3E");
}

/* ==========================================================================
   BUTTONS — one shape site-wide (height/radius/typography invariant); only COLOUR varies per band.
   Shared <Button> outputs `class="btn btn-primary|secondary|ghost|icon"`.
   ONE font family for ALL variants (serif caps = the label code).
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: var(--btn-height, 52px);
  padding-block: 0;
  padding-inline: 30px;
  border: 1px solid transparent;            /* reserved so a secondary/hover border never reflows */
  border-radius: var(--btn-radius, var(--radius-md));
  font-family: var(--font-heading);         /* SAME face for every variant */
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.25em;                   /* signature label tracking */
  text-transform: uppercase;
  text-indent: 0.25em;                      /* balance the trailing tracking */
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease,
              border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — flat gold CTA (no gradient, sharp) + trailing arabesque volute that glides on hover */
.btn-primary {
  position: relative;
  background: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast));
  box-shadow: var(--btn-shadow, none);
}
.btn-primary::after {
  content: "";
  width: 22px;
  height: 18px;
  flex: none;
  background-color: currentColor;           /* = --btn-fg / accent-contrast */
  -webkit-mask: var(--motif-volute-h) center / contain no-repeat;
          mask: var(--motif-volute-h) center / contain no-repeat;
  transition: transform 200ms ease;
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 55%, transparent);
  }
  .btn-primary:hover::after { transform: translateX(4px); }
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--btn-shadow, none); }

/* Secondary — distinct, lower-priority NEUTRAL treatment (ink outline, never a second gold) */
.btn-secondary {
  background-color: transparent;
  color: var(--btn-accent, var(--ink));
  border-color: var(--btn-accent, var(--ink));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--btn-accent, var(--ink));
    color: var(--btn-fg, var(--on-dark));
  }
}
.btn-secondary:active { transform: translateY(1px); }

/* Ghost / text — no chrome until hover */
.btn-ghost {
  background-color: transparent;
  color: var(--btn-fg, var(--ink));
  padding-inline: 10px;
}
@media (hover: hover) {
  .btn-ghost:hover { background-color: color-mix(in srgb, var(--btn-accent, var(--accent)) 10%, transparent); }
}
.btn-ghost:active { transform: translateY(1px); }

/* Icon button — sharp square, gold fill (slider arrows / lightbox) */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  border-radius: var(--btn-radius, var(--radius-md));
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast));
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease;
}
@media (hover: hover) { .btn-icon:hover { transform: scale(1.08); } }
.btn-icon:active { transform: scale(0.96); }
.btn-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }

/* Small size — only height + inline padding shrink; radius/typography unchanged */
.btn--sm { min-height: var(--btn-height-sm, 42px); padding-inline: 20px; font-size: 0.75rem; }

/* ==========================================================================
   HOVER VOCABULARY (reusable utilities)
   ========================================================================== */
/* 1. Powiększenie — scale up */
.hover-scale { transition: transform 200ms ease; }
@media (hover: hover) { .hover-scale:hover { transform: scale(1.04); } }
.hover-scale:active { transform: scale(0.99); }

.media { overflow: hidden; }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
@media (hover: hover) { .media:hover img { transform: scale(1.06); } }

/* 2. Uniesienie — lift + shadow (one elevation step: --shadow-sm rest → --shadow-md raised) */
.hover-lift { transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease; }
@media (hover: hover) {
  .hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
}
.hover-lift:active { transform: translateY(-2px); }

/* 3. Zmiana koloru — fill / tint swap */
.hover-fill { transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) {
  .hover-fill:hover { background-color: var(--accent); color: var(--accent-contrast); }
}
.hover-tint { transition: color 200ms ease, border-color 200ms ease; }
@media (hover: hover) {
  .hover-tint:hover { color: var(--accent); border-color: var(--accent); }
}

/* 4. Ruchoma strzałka — moving arrow (only the arrow element moves) */
.with-arrow { display: inline-flex; align-items: center; gap: 10px; }
.with-arrow .arrow { transition: transform 200ms ease; }
@media (hover: hover) { .with-arrow:hover .arrow { transform: translateX(4px); } }
.arrow-loop { animation: arrow-nudge 1.4s ease-in-out infinite; }
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

/* 5. Dodanie podkreślenia — 1px gold line growing from the left (the signature separator) */
.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 220ms ease, color 200ms ease;
  padding-bottom: 3px;
}
@media (hover: hover) {
  .link-underline:hover { background-size: 100% 1px; color: var(--accent); }
}
.link-underline:focus-visible { background-size: 100% 1px; outline: none; }
.link-underline[aria-current="page"] { background-size: 100% 1px; color: var(--accent); }
.link-underline-center { background-position: 50% 100%; }

/* ==========================================================================
   CARDS / TILES — flat surface, sharp corners, gold left pillar, one-step lift
   ========================================================================== */
.card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-md);
  border-left: 2px solid var(--accent);      /* signature gold pillar (reserved at rest) */
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .card:hover img { transform: scale(1.05); }
  .card:hover .arrow { transform: translateX(4px); }
}
.card img { transition: transform 400ms ease; }
.card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-body { padding: 28px var(--padding-horizontal, 24px); color: var(--ink); }

/* ==========================================================================
   INPUTS
   ========================================================================== */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);      /* same gold pillar as cards */
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--ink-soft); }
@media (hover: hover) { .field:hover { border-color: var(--accent); } }
.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.field:disabled { opacity: 0.5; cursor: not-allowed; color: var(--ink-soft); }
.field:user-invalid { border-color: #c0392b; }

/* ==========================================================================
   EYEBROW / NADTYTUŁ — serif caps + arabesque volute mark (motif #2, vertical)
   ========================================================================== */
.eyebrow {
  font-family: var(--font-heading);
  color: var(--heading-accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.eyebrow-mark {
  --mark: var(--motif-volute-v);
  display: inline-block;
  width: 14px;
  height: 25px;
  flex: none;
  background-color: var(--heading-accent);
  -webkit-mask: var(--mark) center / contain no-repeat;
          mask: var(--mark) center / contain no-repeat;
}
img.eyebrow-mark { height: 25px; width: auto; background: none; object-fit: contain; }
[data-tone="dark"] .eyebrow,
.on-dark .eyebrow { color: var(--heading-accent-on-dark); }
[data-tone="dark"] .eyebrow-mark,
.on-dark .eyebrow-mark { background-color: var(--heading-accent-on-dark); }

/* #7 heading line — colour only; tokens.css drives which slot/variant is displayed */
.heading-line-mask { background-color: var(--heading-line-color); }
[data-tone="dark"] .heading-line-mask,
.on-dark .heading-line-mask { background-color: var(--heading-line-color-on-dark); }

/* Signature 1px gold section separator */
.heading-line {
  border: 0;
  height: 1px;
  width: 64px;
  background: var(--accent);
}

/* ==========================================================================
   STEP BADGE / NUMBER — flat gold ordinal in serif (signature #5)
   ========================================================================== */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: transparent;
}
.step-num {
  font-family: var(--font-heading);
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* ==========================================================================
   CONTENT ICONS — mask, recoloured via --icon-color
   ========================================================================== */
.svc-icon {
  display: inline-block;
  width: 40px; height: 40px;
  background-color: var(--icon-color, var(--accent));
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: background-color 200ms ease;
}
[data-tone="dark"] .svc-icon,
.on-dark .svc-icon { --icon-color: var(--accent); }

/* ==========================================================================
   MISSING-DATA PLACEHOLDER
   ========================================================================== */
.data-placeholder { opacity: 0.55; font-style: italic; font-weight: inherit; color: var(--ink-soft); }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
