/* ============================================================
   HTML_v2-B — Burgundy/Red Power
   Ogrodnik Na Redukcji (Piotr Jakubiec) — trener personalny Żywiec
   Last updated: 2026-04-16
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --bg-primary:   #0d0708;
  --bg-secondary: #1a0d10;
  --bg-card:      #2a1015;

  --burgund:      #3a0c14;
  --red-sharp:    #D72638;
  --red-hover:    #E8334D;

  --text-primary:   #f5ebe4;
  --text-secondary: #a89890;
  --text-dim:       #5c4f4a;

  --border:       #2d1a1c;
  --border-hot:   #D72638;

  --max-width: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Barlow', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--red-sharp); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-hover); }
ul, ol { padding-left: 1.25em; }
li { color: var(--text-secondary); margin-bottom: 0.35em; }

/* ===== Typography ===== */
h1, h2, h3, .headline {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
h1 { font-weight: 900; font-size: clamp(40px, 8vw, 88px); line-height: 0.95; }
h2 { font-weight: 900; font-size: clamp(28px, 5vw, 52px); margin-bottom: 1rem; }
h3 { font-weight: 800; font-size: clamp(18px, 3vw, 28px); letter-spacing: 0.02em; margin-bottom: 0.5rem; }
h1 .accent, h2 .accent, h3 .accent { color: var(--red-sharp); }
p { color: var(--text-secondary); margin-bottom: 1rem; }
em { color: var(--red-sharp); font-style: normal; font-weight: 600; }
strong { color: var(--text-primary); font-weight: 700; }

blockquote {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.45;
  color: var(--text-primary);
  border-left: 2px solid var(--red-sharp);
  padding: 12px 20px;
  margin: 1.5rem 0;
}
blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-sharp);
  border-left: 2px solid var(--red-sharp);
  padding-left: 10px;
  margin-bottom: 0.75rem;
  display: inline-block;
  font-weight: 700;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: clamp(48px, 9vw, 120px) 0; }
section.tight { padding: clamp(32px, 6vw, 72px) 0; }
section.contrast { background: var(--bg-secondary); }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 7, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
}
.nav .brand {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-transform: uppercase;
}
.nav .links { display: flex; gap: 22px; align-items: center; }
.nav .links a {
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.15s;
}
.nav .links a.active, .nav .links a:hover { color: var(--text-primary); }
.nav .links a.cta { padding: 7px 14px; font-size: 11px; background: var(--red-sharp); color: #fff; letter-spacing: 0.12em; }
.nav .menu-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; }

@media (max-width: 960px) {
  .nav .links { display: none; position: absolute; top: 100%; right: 0; left: 0; background: var(--bg-secondary); flex-direction: column; gap: 0; padding: 16px; border-top: 1px solid var(--border); }
  .nav .links.open { display: flex; }
  .nav .links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav .links a.cta { margin-top: 8px; }
  .nav .menu-toggle { display: block; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  min-height: 85svh; /* safe on mobile Safari */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}
.hero .media { position: absolute; inset: 0; z-index: 0; }
.hero .media img, .hero .media video { width: 100%; height: 100%; object-fit: cover; }
.hero .scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,7,8,0.25) 0%, rgba(13,7,8,0.45) 50%, rgba(13,7,8,0.92) 100%);
}
.hero .content {
  position: relative; z-index: 2;
  padding: clamp(32px, 6vw, 80px) var(--gutter);
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}
.hero h1 { max-width: 900px; margin-bottom: 1.25rem; }
.hero .sub {
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  max-width: 720px;
  font-style: italic;
  font-weight: 500;
}
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.trust-strip {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ===== CTAs ===== */
.cta {
  display: inline-flex;
  align-items: center; gap: 8px;
  background: var(--red-sharp);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.cta:hover { background: var(--red-hover); transform: translateX(2px); color: #fff; }

.cta-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 14px 28px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.cta-ghost:hover { border-color: var(--red-sharp); color: var(--text-primary); }

/* ===== Cards & Grids ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--red-sharp); transform: translateY(-3px); }
.card h3 { margin-bottom: 0.75rem; }
.card .price {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--red-sharp);
  margin: 8px 0 16px;
}
.card.featured { border-color: var(--red-sharp); }
.card.featured::before {
  content: 'WYBIERANY';
  position: absolute;
  top: -10px; left: 20px;
  background: var(--red-sharp);
  color: #fff;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.card.featured { position: relative; }

/* ===== Metamorfozy grid (asymmetric) ===== */
.meta-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.meta-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--bg-card); }
.meta-item.featured { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.meta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.meta-item:hover img { transform: scale(1.04); }
.meta-quote {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(13,7,8,0.95) 100%);
  padding: clamp(16px, 3vw, 32px);
  color: var(--text-primary);
}
.meta-quote p {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(13px, 1.4vw, 18px);
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.meta-quote cite {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
@media (max-width: 900px) {
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .meta-item.featured { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
}
@media (max-width: 480px) {
  .meta-grid { grid-template-columns: 1fr; }
  .meta-item.featured { grid-column: auto; }
}

/* ===== Forms ===== */
form { display: grid; gap: 1rem; max-width: 640px; margin: 0 auto; }
form.wide { max-width: 860px; }
form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { form .two-col { grid-template-columns: 1fr; } }
label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: -0.25rem;
  display: block;
}
input, textarea, select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red-sharp); }
textarea { min-height: 120px; resize: vertical; }
.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-group label, .checkbox-group label { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; color: var(--text-primary); cursor: pointer; }
.radio-group input, .checkbox-group input { width: auto; }

/* ===== Lists + Details (FAQ) ===== */
details {
  border: 1px solid var(--border);
  padding: 16px 20px;
  margin-bottom: 8px;
  background: var(--bg-card);
  transition: border-color 0.2s;
}
details[open] { border-color: var(--red-sharp); }
summary {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--red-sharp); font-size: 20px; font-weight: 700; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details > *:not(summary) { margin-top: 12px; color: var(--text-secondary); }

/* ===== Footer ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: clamp(32px, 5vw, 64px) var(--gutter);
  margin-top: clamp(48px, 8vw, 96px);
}
footer .inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { footer .inner { grid-template-columns: 1fr; } }
footer h4 { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; color: var(--text-primary); }
footer a { color: var(--text-secondary); display: block; padding: 4px 0; font-size: 14px; }
footer a:hover { color: var(--text-primary); }
footer p { font-size: 14px; color: var(--text-secondary); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); display: inline; }
.footer-bottom a:hover { color: var(--text-secondary); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 5vw, 64px); }
.mb-lg { margin-bottom: clamp(32px, 5vw, 64px); }
.hide-sm { }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero .media video { display: none; }
  .hero .media img.poster { display: block !important; }
}
