/* ─── Variables ─── */
:root {
  --bg:           #0b0908;
  --bg-alt:       #141210;
  --card:         #1c1915;
  --primary:      #c9a97a;
  --primary-dark: #a88a5e;
  --accent:       #e0cba8;
  --text:         #f2ece4;
  --muted:        #9a8d80;
  --border:       #2a241e;
  --shadow:       0 18px 48px rgba(0,0,0,0.6);
  --radius-sm:    12px;
  --radius-md:    20px;
  --radius-lg:    28px;
  --container:    1180px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }

p { color: var(--muted); }

/* ─── Layout helpers ─── */
.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section { padding: clamp(4rem, 7vw, 7rem) 0; }

.section--alt { background: var(--bg-alt); }

/* ─── Eyebrow ─── */
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ─── Section header ─── */
.section-header { margin-bottom: 2.8rem; }
.section-header h2 { margin-top: 0.2rem; }
.section-header p { margin-top: 0.75rem; max-width: 54ch; font-size: 0.95rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #0b0908;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(201,169,122,0.25);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(201,169,122,0.36);
}

.btn.outline {
  background: transparent;
  border-color: rgba(201,169,122,0.3);
  color: var(--text);
}

.btn.outline:hover {
  background: rgba(201,169,122,0.08);
  border-color: rgba(201,169,122,0.55);
}

.btn.sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  background: var(--primary);
  color: #0b0908;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 999;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus { top: 1rem; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,9,8,0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,169,122,0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-color: rgba(201,169,122,0.18);
  box-shadow: 0 8px 30px rgba(0,0,0,0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(201,169,122,0.28);
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text small {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.main-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.main-nav a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  position: relative;
  padding-bottom: 0.22rem;
  transition: color 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.26s ease;
}

.main-nav a:hover,
.main-nav a.active { color: var(--text); }

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(201,169,122,0.22);
  border-radius: 9px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

/* Liczba kolumn wynika z liczby elementów, nie ze sztywnej listy.
   Wcześniej było `1.6fr 1fr 1fr 1fr` — czyli dokładnie 4 tracki. Koszyk ma
   w stopce 5 kolumn (dochodzi "Sklep" z regulaminem), więc piąta spadała do
   drugiego wiersza i "uciekała na dół". Pierwszy track (logo + opis) zostaje
   szerszy, każdy kolejny dostaje równy 1fr — na stronach z 4 kolumnami wygląd
   jest identyczny jak wcześniej. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo { margin-bottom: 1rem; }

.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.65;
  max-width: 26ch;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: grid; gap: 0.45rem; }

.footer-col li a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--text); }

.footer-col p { font-size: 0.88rem; color: var(--muted); }
.footer-col p + p { margin-top: 0.4rem; }

.footer-col a { color: var(--primary); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.footer-bottom a { color: var(--primary); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* Krótka informacja o cookies — widoczna na dole każdej podstrony, niezależnie
   od tego, czy ktoś zdążył zamknąć baner przy pierwszej wizycie. */
.footer-legal {
  flex: 1 1 260px;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.85;
  text-align: center;
}

/* ─── Baner informacyjny o cookies ─── */
.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 1200;
  width: min(760px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.3rem;
  background: #141210;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.5);
  /* Stan początkowy: schowany pod krawędzią; .is-visible wsuwa go na miejsce. */
  transform: translate(-50%, calc(100% + 1.5rem));
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.cookie-notice.is-visible { transform: translate(-50%, 0); opacity: 1; }
.cookie-notice.is-hiding  { transform: translate(-50%, calc(100% + 1.5rem)); opacity: 0; }

.cookie-notice p {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

.cookie-notice strong { color: var(--text); }
.cookie-notice a { color: var(--primary); text-decoration: underline; }

.cookie-notice-btn {
  flex: none;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), #a88a5e);
  color: #0b0908;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.cookie-notice-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,169,122,0.28); }
.cookie-notice-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 560px) {
  .cookie-notice { flex-direction: column; align-items: stretch; text-align: center; gap: 0.8rem; }
  .cookie-notice-btn { width: 100%; }
}

/* Szacunek dla ustawienia "ogranicz animacje" w systemie. */
@media (prefers-reduced-motion: reduce) {
  .cookie-notice { transition: none; }
}

/* ─── Newsletter (stopka) ─── */
.footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(201,169,122,0.1) 0%, rgba(168,138,94,0.06) 100%);
  border: 1px solid rgba(201,169,122,0.16);
  border-radius: var(--radius-lg);
}

.footer-newsletter-text h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.footer-newsletter-text p {
  font-size: 0.85rem;
  max-width: 38ch;
}

.newsletter-form { flex-shrink: 0; }

/* Input i przycisk w jednej "pigułce" zamiast dwóch osobnych pól — spójniejszy,
   bardziej dopracowany wygląd niż dwa oddzielne prostokąty obok siebie. */
.newsletter-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  transition: border-color 0.2s;
}
.newsletter-field:focus-within { border-color: rgba(201,169,122,0.55); }
.newsletter-field:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

.newsletter-field input[type="email"] {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  padding: 0.55rem 0.4rem 0.55rem 1rem;
  min-width: 190px;
  flex: 1;
}
.newsletter-field input[type="email"]::placeholder { color: var(--muted); }
.newsletter-field input[type="email"]:focus { outline: none; }

.newsletter-field button { flex-shrink: 0; }

.newsletter-msg {
  font-size: 0.78rem;
  margin-top: 0.6rem;
  min-height: 1.1em;
}
.newsletter-msg.success { color: #48bb78; }
.newsletter-msg.error   { color: #fc8181; }

.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;
}

/* ─── Page hero (interior pages) ─── */
.page-hero {
  padding: 3.8rem 0 3.2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(201,169,122,0.07), transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  margin-top: 0.3rem;
  margin-bottom: 0.8rem;
}

.page-hero p {
  max-width: 56ch;
  font-size: 0.96rem;
}

/* ─── Content blocks ─── */
.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1rem 1.25rem;
  align-items: start;
}

.content-split-spaced { margin-top: 3.5rem; }

.content-note,
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.content-note {
  padding: 1.5rem;
  box-shadow: 0 18px 42px rgba(0,0,0,0.32);
}

.content-note h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  margin-bottom: 0.7rem;
}

.content-note p + p { margin-top: 0.85rem; }

.content-note a {
  color: var(--primary);
  transition: color 0.2s ease;
}

.content-note a:hover { color: var(--accent); }

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* Inside a two-column split the right column is ~550px – stack cards vertically */
.content-split .info-card-grid {
  grid-template-columns: 1fr;
}

.info-card {
  padding: 1.35rem 1.2rem;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.info-card:hover {
  border-color: rgba(201,169,122,0.35);
  transform: translateY(-3px);
}

.info-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-bottom: 0.4rem;
}

.info-card p { font-size: 0.9rem; }

/* ─── CTA banner ─── */
.cta-banner {
  background: linear-gradient(135deg, rgba(201,169,122,0.1) 0%, rgba(168,138,94,0.06) 100%);
  border: 1px solid rgba(201,169,122,0.16);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); max-width: 48ch; }
.cta-banner p  { margin-top: 0.55rem; font-size: 0.94rem; max-width: 46ch; }

.cta-banner-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; flex-shrink: 0; }

.text-list {
  margin-top: 0.95rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.text-list li {
  color: var(--muted);
  font-size: 0.92rem;
}

.text-list li::marker { color: var(--primary); }

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  /* Przywracamy układ wierszowy — inaczej grid-auto-flow:column z reguły
     bazowej wcisnąłby wszystkie kolumny w jeden rząd także na wąskim ekranie. */
  .footer-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: row; grid-auto-columns: auto; }
  .content-split { grid-template-columns: 1fr; }
}

@media (max-width: 1150px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0.8rem;
    right: 0.8rem;
    background: rgba(22,18,15,0.98);
    border: 1px solid rgba(201,169,122,0.18);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.26s ease, opacity 0.26s ease;
    backdrop-filter: blur(20px);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul { flex-direction: column; gap: 0.2rem; }
  .main-nav a { display: block; padding: 0.45rem 0; font-size: 0.95rem; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 1.4rem); }
  .footer-grid { grid-template-columns: 1fr; grid-auto-flow: row; grid-auto-columns: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner { flex-direction: column; }
  .cta-banner-actions { width: 100%; }
  .cta-banner-actions .btn { flex: 1; text-align: center; }
  .footer-newsletter { flex-direction: column; align-items: stretch; text-align: center; padding: 1.6rem 1.4rem; }
  .footer-newsletter-text p { max-width: none; }
  .newsletter-field {
    flex-direction: column;
    background: none;
    border: none;
    padding: 0;
    gap: 0.7rem;
  }
  .newsletter-field:focus-within { border-color: transparent; }
  .newsletter-field:has(input:focus-visible) { outline: none; }
  .newsletter-field input[type="email"] {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.62rem 1.1rem;
    min-width: 0;
    width: 100%;
  }
  .newsletter-field input[type="email"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
