/* ============================================================================
   Tyrs Studio — site.css
   Publiczny system designu (Luxury Minimal Dark #02). Jedno źródło prawdy dla
   strony głównej i przyszłych podstron (Sklep, Blog, Wydarzenia, Panel Klienta).
   Motyw wewnętrznych narzędzi (dev/voting/wiki) jest osobny (jasny) — nie tu.
   ========================================================================== */

/* ─── 1. Tokeny ───────────────────────────────────────────────────────────── */
:root {
  /* Rampa ciepłej czerni (elewacja: głębiej → ciemniej) */
  --ink-deepest: #0a0908;
  --ink-base:    #0f0e0d;
  --ink-panel:   #141210;
  --surface:     #1a1815;

  /* Treść */
  --text:   #ede8e0;            /* krem — główny (~15:1) */
  --muted:  #a89e90;            /* drugorzędny — AA ≥4.5:1 na kartach */
  --faint:  #7d7568;            /* tylko duży/dekoracyjny tekst (poniżej AA) */
  --gold:   #c4a55a;            /* jedyny akcent (~8:1) */

  /* Złoto / linie */
  --gold-12: rgba(196,165,90,0.12);
  --gold-15: rgba(196,165,90,0.15);
  --gold-20: rgba(196,165,90,0.20);
  --gold-30: rgba(196,165,90,0.30);
  --gold-08: rgba(196,165,90,0.08);
  --hairline:      rgba(237,232,224,0.08);
  --hairline-soft: rgba(237,232,224,0.04);

  /* Alias zgodności z design-guidelines.md (--cream = --text) */
  --cream: #ede8e0;

  /* Stany */
  --ok:    #7fae7a;
  --warn:  #d6a85a;
  --err:   #cf6f5d;

  /* Typografia */
  --font-display: Georgia, "Book Antiqua", serif;
  --font-body: "Hanken Grotesk", "Gill Sans", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Wymiary / rytm */
  --container: 1100px;
  --nav-h: 64px;
  --pad-x: 40px;
  --pad-x-mobile: 24px;
  --section-y: clamp(64px, 10vw, 100px);
  --radius: 0px;                /* dark luxury = brak zaokrągleń */
}

/* ─── 2. Reset & baza ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink-base);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; }

/* ─── 3. A11y / utilities ─────────────────────────────────────────────────── */
.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;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  transform: translateY(-200%);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--gold); padding: 10px 16px;
  font-family: var(--font-body); font-size: 13px; text-decoration: none;
  transition: transform .15s;
}
.skip-link:focus { transform: translateY(0); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ─── 4. Layout ───────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }
.section--deep  { background: var(--ink-deepest); }
.section--base  { background: var(--ink-base); }
.section--panel { background: var(--ink-panel); }

.section-label {
  display: block; font-family: var(--font-body);
  font-size: 10px; font-weight: 400; letter-spacing: 0.25em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 20px;
}
.section-heading {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: var(--text); margin-bottom: 48px;
}

/* Page header (warianty hero dla podstron) */
.page-header { padding: calc(var(--section-y) * 0.7) 0 var(--section-y); background: var(--ink-deepest); }
.page-header h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--text); line-height: 1.1; }
.page-header .lead { color: var(--muted); margin-top: 16px; max-width: 60ch; }

/* Złota mikro-belka (motyw) */
.gold-bar { width: 32px; height: 1px; background: var(--gold); }

/* ─── 5. Nawigacja ────────────────────────────────────────────────────────── */
#sitenav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; padding: 0 28px;
  background: rgba(10,9,8,0.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-12);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--container); margin: 0 auto;
}
.nav-logo { text-decoration: none; display: inline-flex; align-items: center; }
.nav-logo-img { display: block; height: 30px; width: auto; }

/* Widoczna nawigacja desktop */
.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--font-body); font-size: 13px; font-weight: 300;
  letter-spacing: 0.04em; color: var(--text); text-decoration: none;
  opacity: 0.82; transition: opacity .15s, color .15s;
}
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--gold); opacity: 1; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--text); }

@media (min-width: 1025px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer (budowany przez site.js) */
.nav-drawer {
  position: fixed; inset: 0; z-index: 9999; background: var(--ink-deepest);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.nav-drawer a {
  display: block; color: var(--text); text-decoration: none;
  font-size: clamp(2rem, 7vw, 3.5rem); font-family: var(--font-display); font-weight: 300;
  padding: 0.6rem 0; border-bottom: 1px solid var(--hairline);
  width: 80%; text-align: center; -webkit-tap-highlight-color: transparent;
}
.nav-drawer .nav-drawer-close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none;
  color: var(--text); font-size: 1.8rem; cursor: pointer; padding: 8px; line-height: 1;
}

/* ─── 6. Hero split-screen ────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--nav-h)); }
.hero-left  { background: var(--ink-deepest); display: flex; align-items: center; padding: 60px 80px; }
.hero-right { background: var(--ink-panel);   display: flex; align-items: center; padding: 60px 80px; }
.hero-left-inner, .hero-right-inner { max-width: 440px; }
.hero-headline {
  font-family: var(--font-display); font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300; color: var(--text); line-height: 1.05; margin-bottom: 48px;
}
.hero-gold-bar { width: 32px; height: 1px; background: var(--gold); margin-bottom: 16px; }
.hero-sub { font-family: var(--font-display); font-size: 11px; font-weight: 400;
  letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; }
.hero-tagline { font-family: var(--font-display); font-size: 1.3rem; font-weight: 300;
  color: var(--text); line-height: 1.4; margin-bottom: 28px; }
.hero-intro { font-size: 0.95rem; font-weight: 300; color: var(--muted);
  line-height: 1.8; margin-bottom: 48px; }
.hero-ctas { display: flex; flex-direction: column; gap: 20px; }

/* ─── 7. Przyciski / CTA ──────────────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--font-display); font-size: 13px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: 14px 32px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; align-self: flex-start;
  background: none; line-height: 1.2;
}
.btn--primary { color: var(--gold); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-08); }
.btn--solid { background: var(--gold); color: var(--ink-deepest); border-color: var(--gold); }
.btn--solid:hover { background: #d4b56a; }
.btn--ghost { color: var(--text); border-color: var(--gold-30); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--text { padding: 0; border: none; color: var(--muted); font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.08em; text-transform: none; }
.btn--text:hover { text-decoration: underline; color: var(--text); }
.btn--sm { padding: 9px 18px; font-size: 11px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn--loading { position: relative; color: transparent !important; }
.btn--loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  border: 2px solid var(--gold); border-top-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* zgodność wstecz z page-04 (hero-cta-*) */
.hero-cta-primary { display: inline-block; color: var(--gold); border: 1px solid var(--gold);
  padding: 14px 32px; font-family: var(--font-display); font-size: 13px; font-weight: 400;
  letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase;
  transition: background .2s; align-self: flex-start; }
.hero-cta-primary:hover { background: var(--gold-08); }
.hero-cta-secondary { display: inline-block; color: var(--muted); font-size: 12px;
  letter-spacing: 0.08em; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.hero-cta-secondary:hover { color: var(--text); }

/* ─── 8. Karty / sekcje treści ────────────────────────────────────────────── */
.trust { background: var(--ink-base); padding: 80px 0; border-top: 1px solid var(--hairline-soft); }
.trust-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card, .trust-card, .event-card {
  background: var(--surface); border: 1px solid var(--gold-15); padding: 40px 32px;
}
.event-card { padding: 32px 28px; display: flex; flex-direction: column; }
.trust-number, .event-date, .event-time, .gallery-number {
  font-family: var(--font-mono); font-size: 11px; color: var(--gold);
  letter-spacing: 0.12em; font-variant-numeric: tabular-nums;
}
.trust-number { margin-bottom: 20px; letter-spacing: 0.15em; }
.event-time { color: var(--muted); }
.trust-rule { width: 32px; height: 1px; background: var(--gold); margin-bottom: 20px; }
.trust-heading, .event-title, .card-heading {
  font-family: var(--font-display); font-weight: 400; color: var(--text); }
.trust-heading { font-size: 1.1rem; margin-bottom: 12px; }
.event-title { font-size: 1.05rem; margin: 0 0 10px; }
.trust-desc, .event-desc, .product-desc {
  font-weight: 300; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.event-desc { font-size: 0.88rem; line-height: 1.6; flex: 1; }
.event-separator { width: 100%; height: 1px; background: var(--gold-20); margin: 16px 0; }
.event-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px;
  color: var(--muted); font-size: 0.8rem; }
.event-cta { display: block; color: var(--gold); font-size: 0.82rem; letter-spacing: 0.08em;
  text-decoration: none; margin-top: 20px; border-top: 1px solid var(--gold-12); padding-top: 16px; }
.event-cta:hover { text-decoration: underline; }

.section-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }

/* O studiu / cytat */
.ostudiu-grid { display: grid; grid-template-columns: 60% 40%; gap: 60px; align-items: start; }
.ostudiu-text p { font-weight: 300; color: var(--muted); line-height: 1.9; font-size: 1rem; margin-bottom: 24px; }
.quote, .ostudiu-quote { border-left: 2px solid var(--gold); padding-left: 28px; }
.quote blockquote, .ostudiu-quote blockquote {
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; font-weight: 300;
  color: var(--text); line-height: 1.6; margin-bottom: 16px; }
.ostudiu-quote cite { display: block; font-size: 12px; font-weight: 300; color: var(--muted);
  font-style: normal; letter-spacing: 0.05em; }

/* Siatki */
.events-grid, .gallery-grid, .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Galeria */
.gallery-card { aspect-ratio: 3 / 4; background: var(--ink-panel); border: 1px solid var(--gold-15);
  position: relative; overflow: hidden; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card figcaption, .gallery-caption {
  position: absolute; bottom: 16px; left: 16px; right: 16px; color: var(--muted);
  font-size: 0.75rem; font-weight: 300; line-height: 1.4; z-index: 2; }
.gallery-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%;
  background: linear-gradient(to top, rgba(10,9,8,0.75), transparent); }
.gallery-number { position: absolute; top: 16px; left: 16px; z-index: 2; }

/* Lista produktów (prosta, 1 kol. — uproszczona vs page-04) */
.products-list { display: grid; grid-template-columns: 1fr; }
.product-row { display: flex; justify-content: space-between; align-items: flex-start;
  padding: 28px 0; border-bottom: 1px solid var(--hairline); gap: 24px; }
.product-row:first-child { border-top: 1px solid var(--hairline); }
.product-name { font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: var(--text); margin-bottom: 6px; }
.product-price { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; color: var(--gold);
  text-align: right; white-space: nowrap; padding-top: 2px; }
.sklep-note { margin-top: 40px; font-size: 0.82rem; font-weight: 300; color: var(--muted); font-style: italic; line-height: 1.6; }

/* Kontakt */
.kontakt-grid { display: grid; grid-template-columns: 55% 45%; gap: 60px; align-items: start; }
.kontakt-col-heading { font-family: var(--font-display); font-size: 1.4rem; font-weight: 300;
  color: var(--text); margin-bottom: 36px; }
.address-item { border-left: 2px solid var(--gold-30); padding-left: 20px; }
.address-item .main { font-size: 0.95rem; font-weight: 300; color: var(--text); line-height: 1.4; }
.address-item .sub { font-size: 0.82rem; font-weight: 300; color: var(--muted); margin-top: 4px; }
.address-block { display: flex; flex-direction: column; gap: 16px; }
.directions-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.directions-list li { font-size: 0.9rem; font-weight: 300; color: var(--muted); line-height: 2; }

/* Stopka */
.footer { background: var(--ink-deepest); border-top: 1px solid var(--hairline); padding: 48px var(--pad-x); }
.footer-inner { max-width: var(--container); margin: 0 auto; display: flex;
  justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col--right { text-align: right; align-items: flex-end; }
.footer-brand { font-family: var(--font-display); font-size: 12px; font-weight: 400;
  letter-spacing: 0.18em; color: var(--text); text-transform: uppercase; }
.footer-sub, .footer-copy, .footer-social { font-size: 11px; font-weight: 300; color: var(--muted); }
.footer-email { font-size: 11px; font-weight: 300; color: var(--gold); text-decoration: none; letter-spacing: 0.04em; }
.footer-email:hover { text-decoration: underline; }
.footer-dev { font-size: 10px; color: var(--faint); text-decoration: none; letter-spacing: 0.08em; }
.footer-dev:hover { color: var(--muted); }

/* ─── 9. Prymitywy: formularze ────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.label { font-family: var(--font-body); font-size: 11px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; background: var(--ink-deepest); color: var(--text);
  border: 1px solid var(--gold-15); padding: 12px 14px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 300;
  transition: border-color .15s;
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); outline: none; }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--err); }
.field--ok .input { border-color: var(--ok); }
.help { font-size: 0.8rem; color: var(--muted); }
.error-text { font-size: 0.8rem; color: var(--err); }
.checkbox, .radio { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.checkbox input, .radio input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; }

/* ─── 10. Prymitywy: tabele ───────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.table th { font-family: var(--font-body); font-size: 11px; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); }
.table td { color: var(--muted); }
.table tbody tr:hover { background: rgba(237,232,224,0.02); }
.table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }

/* ─── 11. Prymitywy: badge / status ───────────────────────────────────────── */
.badge { display: inline-block; font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--gold-30); color: var(--gold); }
.badge--ok    { color: var(--ok);   border-color: rgba(127,174,122,0.4); }
.badge--warn  { color: var(--warn); border-color: rgba(214,168,90,0.4); }
.badge--err, .badge--soldout { color: var(--err); border-color: rgba(207,111,93,0.4); }
.badge--muted { color: var(--muted); border-color: var(--hairline); }

/* ─── 12. Prymitywy: breadcrumbs / paginacja ──────────────────────────────── */
.breadcrumbs { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 24px; }
.breadcrumbs ol { display: flex; gap: 10px; list-style: none; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs li + li::before { content: "/"; color: var(--faint); margin-right: 10px; }
.breadcrumbs [aria-current="page"] { color: var(--text); }
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center;
  justify-content: center; border: 1px solid var(--gold-15); color: var(--muted); text-decoration: none;
  font-family: var(--font-mono); font-size: 13px; }
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination [aria-current="page"] { color: var(--gold); border-color: var(--gold); }

/* ─── 13. Prymitywy: alerty / stany puste i ładowania ─────────────────────── */
.alert { border: 1px solid var(--gold-30); border-left-width: 3px; padding: 16px 18px;
  font-size: 0.9rem; color: var(--text); background: var(--surface); }
.alert--ok   { border-color: var(--ok);   border-left-color: var(--ok); }
.alert--warn { border-color: var(--warn); border-left-color: var(--warn); }
.alert--err  { border-color: var(--err);  border-left-color: var(--err); }
.empty-state { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty-state .empty-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); margin-bottom: 10px; }
.skeleton { background: linear-gradient(90deg, var(--surface), var(--ink-panel), var(--surface));
  background-size: 200% 100%; animation: shimmer 1.3s infinite; min-height: 1em; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 22px; height: 22px; border: 2px solid var(--gold); border-top-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; margin: 32px auto; }

/* ─── 14. Modal / dialog ──────────────────────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; z-index: 9998; background: rgba(10,9,8,0.8);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: var(--surface); border: 1px solid var(--gold-15); max-width: 480px; width: 100%; padding: 36px; }
.modal h2 { font-size: 1.4rem; margin-bottom: 16px; }

/* ─── 15. Responsywność ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --pad-x: var(--pad-x-mobile); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { min-height: 45vh; padding: 48px 24px 40px; align-items: flex-end; }
  .hero-right { padding: 40px 24px 60px; }
  .hero-left-inner, .hero-right-inner { max-width: 100%; }
  .hero-headline { font-size: clamp(2.8rem, 10vw, 4rem); }
  .trust-inner, .events-grid, .gallery-grid, .grid-3, .grid-2,
  .ostudiu-grid, .kontakt-grid, .products-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-col--right { text-align: left; align-items: flex-start; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-left, .hero-right { padding: 48px; }
}

/* ─── 16. Komponenty podstron ─────────────────────────────────────────────── */
.footer-link { font-size: 11px; font-weight: 300; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; }
.footer-link:hover { color: var(--gold); }

/* Prose (regulamin / polityka / artykuł bloga) */
.prose { max-width: 720px; }
.prose p { color: var(--muted); line-height: 1.85; margin-bottom: 1.2em; }
.prose h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); margin: 1.8em 0 0.6em; }
.prose h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { color: var(--muted); line-height: 1.85; margin: 0 0 1.2em 1.2em; }
.prose a { color: var(--gold); }

/* Wybór akcji (np. /allergie) */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
.choice-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--gold-15); padding: 44px 36px;
  transition: border-color .15s, background .15s; }
.choice-card:hover { border-color: var(--gold); background: var(--ink-panel); }
.choice-card .choice-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.choice-card .choice-sub { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.choice-card .choice-go { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--gold); margin-top: 8px; }
.form-narrow { max-width: 560px; }
@media (max-width: 768px) { .choice-grid { grid-template-columns: 1fr; } }

/* ─── 17. Profil (tożsamość + avatar + oceny) ─────────────────────────── */
.profile-id-row { display: flex; align-items: flex-end; gap: 16px; }
.profile-id-row .field { flex: 1; }
.checkbox.vis { white-space: nowrap; padding-bottom: 14px; }
.avatar-edit { display: flex; align-items: flex-start; gap: 18px; }
.avatar-img { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--gold-20);
  border-radius: 50%; flex: none; background: var(--ink-panel); }
.avatar-img--empty { display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2rem; color: var(--faint); }
.rating-field { border: 0; padding: 0; margin: 0 0 16px; }
.rating-field legend { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; padding: 0; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stars label { font-size: 1.7rem; line-height: 1; color: var(--faint); cursor: pointer; padding: 0 3px; transition: color .12s; }
.stars input:checked ~ label,
.stars label:hover, .stars label:hover ~ label { color: var(--gold); }
.stars input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.rating-clear { background: none; border: none; color: var(--faint); font-size: 0.75rem;
  cursor: pointer; margin-left: 12px; vertical-align: 6px; }
.rating-clear:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 768px) { .profile-id-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .checkbox.vis { padding-bottom: 8px; } }

/* ─── 18. Coming soon (root dla niezalogowanych) ─────────────────────── */
.cs-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0e0d0b; }
.cs-wrap { text-align: center; padding: 40px 16px; }
.cs-logo { width: 50vw; height: auto; opacity: .95; }
.cs-tag { margin-top: 30px; font-family: var(--font-body); font-weight: 300;
  font-size: .8rem; letter-spacing: .45em; text-transform: uppercase; color: var(--muted); }
.cs-email { display: block; margin-top: 18px; font-family: var(--font-body); font-weight: 300;
  font-size: .78rem; letter-spacing: .12em; color: var(--muted); text-decoration: none;
  transition: color .2s; }
.cs-email:hover, .cs-email:focus-visible { color: var(--gold); }
.cs-key { position: fixed; right: 22px; bottom: 18px; display: inline-flex; align-items: center;
  color: var(--faint); opacity: .55; transition: opacity .2s, color .2s; }
.cs-key svg { width: 15px; height: 15px; }
.cs-key:hover, .cs-key:focus-visible { opacity: 1; color: var(--gold); }
@media (max-width: 768px) { .cs-logo { width: 90vw; } }

/* ─── 19. Spójna nawigacja: elementy widoczne zależnie od logowania ──── */
/* .nav-auth, .nav-admin sterowane są server-side przez Razor — reguła poniżej
   jest dead code (HTML nie zawiera tych klas), pozostawiona dla bezpieczeństwa */
.nav-auth, .nav-admin { display: none; }

/* ─── 20. Komponenty podstron treści ──────────────────────────────────────── */
/* Wszystkie poniższe klasy są używane w LinyJutowe, Oleje, Woski, RodzajeLin.
   Tok designu: brand tokens z :root, brak cieni, brak zaokrągleń, gold accent. */

/* Alias: hero-gold-bar (używany jako klasa w content pages) */
.hero-gold-bar { width: 32px; height: 1px; background: var(--gold); margin-bottom: 16px; }

/* page-hero: nagłówek podstrony (h1 + breadcrumbs + page-intro) */
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300; color: var(--text); line-height: 1.1;
  margin: 20px 0 24px;
}
.page-intro {
  font-size: 1rem; font-weight: 300; color: var(--muted);
  line-height: 1.75; max-width: 64ch; margin-top: 8px;
}

/* spec-grid: siatka kart specyfikacji 3×2 (LinyJutowe) */
.spec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 40px;
}
.spec-card {
  background: var(--surface); border: 1px solid var(--gold-15); padding: 32px 28px;
}
.spec-label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px;
}
.spec-value {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 300;
  color: var(--text); margin-bottom: 10px;
}
.spec-note {
  font-size: 0.85rem; font-weight: 300; color: var(--muted); line-height: 1.7; margin: 0;
}

/* system-grid: karty systemu pielęgnacji 2-kolumnowe (LinyJutowe) */
.system-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px;
}
.system-card {
  background: var(--surface); border: 1px solid var(--gold-15); padding: 40px 36px;
}
.system-card-label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px;
}
.system-card h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 300;
  color: var(--text); margin: 0 0 16px;
}
.system-card p {
  font-weight: 300; color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px;
}
.system-card ul {
  list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px;
}
.system-card ul li {
  font-size: 0.9rem; font-weight: 300; color: var(--muted);
  padding-left: 14px; position: relative;
}
.system-card ul li::before { content: "–"; position: absolute; left: 0; color: var(--gold); }
.system-card-cta {
  display: inline-block; font-size: 12px; letter-spacing: 0.08em;
  color: var(--gold); text-decoration: none;
  border-top: 1px solid var(--gold-15); padding-top: 16px; width: 100%;
  transition: text-decoration .15s;
}
.system-card-cta:hover { text-decoration: underline; }

/* compare-table: tabela porównawcza (LinyJutowe, RodzajeLin) */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.compare-table th {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.15em; color: var(--gold); text-transform: uppercase;
  text-align: left; padding: 0 20px 14px 0; border-bottom: 1px solid var(--gold-20);
}
.compare-table td {
  font-weight: 300; color: var(--muted); font-size: 0.9rem; line-height: 1.65;
  padding: 14px 20px 14px 0; border-bottom: 1px solid var(--hairline); vertical-align: top;
}
.compare-table td:first-child {
  font-family: var(--font-display); font-size: 1rem; color: var(--text); white-space: nowrap;
}
.compare-table tr:last-child td { border-bottom: none; }

/* faq-list / faq-item / faq-q / faq-a */
.faq-list { display: flex; flex-direction: column; margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--hairline); padding: 28px 0; }
.faq-item:first-child { border-top: 1px solid var(--hairline); }
.faq-q {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 300;
  color: var(--text); margin: 0 0 12px;
}
.faq-a {
  font-weight: 300; color: var(--muted); font-size: 0.9rem; line-height: 1.75; margin: 0;
}

/* cta-duo: podwójne CTA (przycisk + link drugorzędny) */
.cta-duo { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.cta-secondary-link {
  font-size: 13px; font-weight: 300; color: var(--muted);
  text-decoration: none; letter-spacing: 0.02em; transition: color .15s;
}
.cta-secondary-link:hover { color: var(--gold); }

/* oil-cards: siatka kart produktów olejowych (Oleje) */
.oil-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.oil-card {
  background: var(--surface); border: 1px solid var(--gold-15);
  padding: 36px 32px; display: flex; flex-direction: column;
}
.oil-card-num {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; margin-bottom: 14px;
}
.oil-card-bar { width: 32px; height: 1px; background: var(--gold); margin-bottom: 18px; }
.oil-card h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; color: var(--text); margin: 0 0 6px;
}
.oil-card-tagline {
  font-family: var(--font-display); font-style: italic; font-size: 0.95rem;
  color: var(--muted); margin: 0 0 16px;
}
.oil-card > p {
  font-weight: 300; color: var(--muted); font-size: 0.88rem; line-height: 1.7;
  margin-bottom: 20px; flex: 1;
}
.oil-card-ingredients { list-style: none; display: flex; flex-direction: column; margin-bottom: 20px; }
.oil-card-ingredients li {
  font-size: 0.85rem; font-weight: 300; color: var(--muted);
  padding: 8px 0; border-bottom: 1px solid var(--hairline-soft);
  display: flex; align-items: center; gap: 10px;
}
.oil-card-ingredients li:last-child { border-bottom: none; }
.oil-card-ingredients li::before {
  content: ""; width: 3px; height: 3px; background: var(--gold); flex-shrink: 0;
}
.oil-card-profile {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--gold-15);
}

/* ingredients-table: tabela składników (Oleje) */
.ingredients-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.ingredients-table th {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.15em; color: var(--gold); text-transform: uppercase;
  text-align: left; padding: 0 20px 14px 0; border-bottom: 1px solid var(--gold-20);
}
.ingredients-table td {
  font-weight: 300; color: var(--muted); font-size: 0.9rem; line-height: 1.65;
  padding: 14px 20px 14px 0; border-bottom: 1px solid var(--hairline); vertical-align: top;
}
.ingredients-table td:first-child {
  font-family: var(--font-display); font-size: 1rem; color: var(--text); white-space: nowrap;
}
.ingredients-table tr:last-child td { border-bottom: none; }

/* when-table: tabela doboru preparatu (Oleje) */
.when-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.when-table th {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.15em; color: var(--gold); text-transform: uppercase;
  text-align: left; padding: 0 20px 14px 0; border-bottom: 1px solid var(--gold-20);
}
.when-table td {
  font-weight: 300; color: var(--muted); font-size: 0.9rem; line-height: 1.65;
  padding: 14px 20px 14px 0; border-bottom: 1px solid var(--hairline); vertical-align: top;
}
.when-table td:first-child {
  font-family: var(--font-display); font-size: 1rem; color: var(--text);
  white-space: nowrap; min-width: 200px;
}
.when-table td:first-child span {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; margin-top: 4px;
}
.when-table tr:last-child td { border-bottom: none; }

/* application-steps: lista kroków aplikacji (Oleje, Woski) */
.application-steps {
  list-style: none; display: flex; flex-direction: column;
  margin-top: 32px; counter-reset: step;
}
.application-steps li {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--hairline); counter-increment: step;
}
.application-steps li:last-child { border-bottom: none; }
.application-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em;
  color: var(--gold); flex-shrink: 0; min-width: 32px; padding-top: 4px;
}
.application-steps strong {
  font-family: var(--font-display); font-size: 1rem; font-weight: 300;
  color: var(--text); display: block; margin-bottom: 6px;
}
.application-steps span {
  font-weight: 300; color: var(--muted); font-size: 0.9rem; line-height: 1.7;
}

/* wax-diff: porównanie oleju i wosku (2 bloki obok siebie) (Woski) */
.wax-diff { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.diff-block { background: var(--surface); border: 1px solid var(--gold-15); padding: 36px 32px; }
.diff-block h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 300;
  color: var(--text); margin: 0 0 14px;
}
.diff-block p { font-weight: 300; color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin: 0; }

/* system-principle: siatka zasad wosków 2×2 (Woski) */
.system-principle { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.principle-block { background: var(--surface); border: 1px solid var(--gold-15); padding: 32px 28px; }
.principle-label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px;
}
.principle-block h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 300; color: var(--text); margin: 0 0 10px;
}
.principle-block p { font-weight: 300; color: var(--muted); font-size: 0.88rem; line-height: 1.65; margin: 0; }

/* wax-cards: siatka kart produktów woskowych (Woski) */
.wax-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.wax-card {
  background: var(--surface); border: 1px solid var(--gold-15);
  padding: 36px 32px; display: flex; flex-direction: column;
}
.wax-card-num {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; margin-bottom: 14px;
}
.wax-card-bar { width: 32px; height: 1px; background: var(--gold); margin-bottom: 18px; }
.wax-card h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; color: var(--text); margin: 0 0 6px;
}
.wax-card-tagline {
  font-family: var(--font-display); font-style: italic; font-size: 0.95rem;
  color: var(--muted); margin: 0 0 16px;
}
.wax-card > p {
  font-weight: 300; color: var(--muted); font-size: 0.88rem; line-height: 1.7;
  margin-bottom: 20px; flex: 1;
}
.wax-components { list-style: none; display: flex; flex-direction: column; margin-bottom: 20px; }
.wax-components li {
  font-size: 0.85rem; font-weight: 300; color: var(--muted);
  padding: 8px 0; border-bottom: 1px solid var(--hairline-soft);
  display: flex; align-items: center; gap: 10px;
}
.wax-components li:last-child { border-bottom: none; }
.wax-components li::before { content: ""; width: 3px; height: 3px; background: var(--gold); flex-shrink: 0; }
.wax-profile {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--gold-15);
}

/* RodzajeLin: mat-table — tabela materiałów z przewijaniem poziomym */
.mat-table-wrap { overflow-x: auto; margin-top: 32px; }
.mat-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.mat-table th {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.15em; color: var(--gold); text-transform: uppercase;
  text-align: left; padding: 0 16px 14px 0;
  border-bottom: 1px solid var(--gold-20); white-space: nowrap;
}
.mat-table td {
  font-weight: 300; color: var(--muted); font-size: 0.88rem; line-height: 1.6;
  padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hairline); vertical-align: top;
}
.mat-table td:first-child { font-family: var(--font-display); font-size: 0.95rem; color: var(--text); white-space: nowrap; }
.mat-table tr:last-child td { border-bottom: none; }

/* tag: etykiety poziomu tarcia / dostępności (RodzajeLin) */
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border: 1px solid;
}
.tag--high  { color: var(--ok);   border-color: rgba(127,174,122,0.45); }
.tag--med   { color: var(--warn); border-color: rgba(214,168,90,0.45); }
.tag--low   { color: var(--err);  border-color: rgba(207,111,93,0.45); }
.tag--no    { color: var(--faint); border-color: var(--hairline); }

/* fiber-grid: siatka kart włókien / syntetyków (RodzajeLin) */
.fiber-grid, .synth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.fiber-card {
  background: var(--surface); border: 1px solid var(--gold-15); padding: 28px 24px;
}
.fiber-card-label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px;
}
.fiber-card h3 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 300; color: var(--text); margin: 0 0 10px;
}
.fiber-card p { font-weight: 300; color: var(--muted); font-size: 0.85rem; line-height: 1.65; margin: 0; }

/* producer-grid: siatka kart producentów (RodzajeLin) */
.producer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.producer-card { background: var(--surface); border: 1px solid var(--gold-15); padding: 28px 24px; }
.producer-card h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 300; color: var(--text); margin: 0 0 8px;
}
.producer-card-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase;
  border: 1px solid var(--gold-15); padding: 3px 8px; margin-bottom: 12px;
}
.producer-location {
  font-size: 0.82rem; font-weight: 300; color: var(--faint); margin-bottom: 10px; letter-spacing: 0.04em;
  display: block;
}
.producer-card p { font-weight: 300; color: var(--muted); font-size: 0.85rem; line-height: 1.65; margin: 0; }

/* Responsywność komponentów podstron */
@media (max-width: 768px) {
  .spec-grid, .system-grid, .oil-cards, .wax-cards,
  .wax-diff, .system-principle, .fiber-grid, .synth-grid, .producer-grid {
    grid-template-columns: 1fr;
  }
  .cta-duo { flex-direction: column; align-items: flex-start; gap: 16px; }
  .compare-table th, .compare-table td,
  .ingredients-table th, .ingredients-table td,
  .when-table th, .when-table td { padding-right: 12px; }
  .compare-table td:first-child, .when-table td:first-child { white-space: normal; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .oil-cards, .wax-cards { grid-template-columns: repeat(2, 1fr); }
  .fiber-grid, .synth-grid, .producer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ingredient-rows: pionowa lista składników (zastępuje .ingredients-table) */
.ingredient-rows { border-top: 1px solid var(--hairline); margin-top: 32px; }
.ingredient-row {
  display: flex; gap: 48px; padding: 20px 0;
  border-bottom: 1px solid var(--hairline); align-items: flex-start;
}
.ingredient-row-name {
  flex: 0 0 220px; color: var(--text); font-weight: 400;
  font-size: 0.95rem; padding-top: 2px;
}
.ingredient-row-info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ingredient-row-role {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin: 0;
}
.ingredient-row-effect { color: var(--muted); font-size: 0.875rem; line-height: 1.65; margin: 0; }
@media (max-width: 640px) {
  .ingredient-row { flex-direction: column; gap: 10px; }
  .ingredient-row-name { flex: none; }
}

/* when-cards: karty doboru preparatu (zastępuje .when-table) */
.when-cards { display: flex; flex-direction: column; gap: 2px; margin-top: 32px; }
.when-card { background: var(--ink-panel); border: 1px solid var(--hairline); padding: 28px 32px; }
.when-card-header {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--hairline);
}
.when-card-product {
  font-family: var(--font-display); font-size: 1rem; font-weight: 300; color: var(--text);
}
.when-card-sub {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
}
.when-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.when-section-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.when-section--avoid .when-section-label { color: var(--faint); }
.when-section p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; margin: 0; }
@media (max-width: 640px) {
  .when-sections { grid-template-columns: 1fr; gap: 20px; }
  .when-card { padding: 20px; }
}
