/* Madame Control — landing + form + carousels */
/* Palette: deep black, warm cream, burgundy accent, rose-gold highlight */

:root {
  --bg:           #0a0807;
  --bg-soft:      #14100e;
  --bg-card:     #1a1411;
  --text:         #f4ede4;
  --text-soft:    #c9bbab;
  --text-muted:   #8a7a6c;
  --accent:       #8b1a30;
  --accent-hi:    #b03a4a;
  --gold:         #c9a47b;
  --gold-soft:    #d9b896;
  --border:       #2a201a;
  --border-soft:  #1f1814;
  --error:        #d44a4a;
  --success:      #6bb37a;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius:       4px;
  --radius-lg:    8px;
  --shadow:       0 8px 32px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-soft); text-decoration: underline; }

/* ============ TOP BAR ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(10,8,7,.85), rgba(10,8,7,0));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lang-switcher {
  display: flex; gap: 4px;
  background: rgba(20,16,14,.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}
.lang-btn {
  background: none; border: none; color: var(--text-muted);
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 12px; cursor: pointer;
  transition: all .15s ease; border-radius: 2px;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); color: var(--text); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr;
  align-items: stretch; position: relative;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1fr; } }

/* Hero carousel — left side */
.hero-carousel {
  position: relative;
  min-height: 60vh;
  background-color: #1a0f0a;
  overflow: hidden;
}
@media (min-width: 900px) { .hero-carousel { min-height: 100vh; } }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,7,0) 0%, rgba(10,8,7,0) 60%, rgba(10,8,7,.75) 100%);
  pointer-events: none;
}
@media (min-width: 900px) {
  .hero-slide::after {
    background: linear-gradient(90deg, rgba(10,8,7,0) 60%, rgba(10,8,7,.65) 100%);
  }
}
.hero-slide.active { opacity: 1; }

.hero-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 5;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(244,237,228,.35);
  border: none; cursor: pointer; padding: 0;
  transition: all .2s ease;
}
.hero-dot:hover { background: rgba(244,237,228,.7); }
.hero-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* Hero text — right side */
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 28px 56px 28px;
  max-width: 640px;
}
@media (min-width: 900px) { .hero-text { padding: 80px 64px; } }

.eyebrow {
  font-family: var(--serif); font-style: italic;
  color: var(--gold); font-size: 18px;
  letter-spacing: 0.02em; margin-bottom: 16px;
}
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: 0.08em; line-height: 1;
  margin-bottom: 32px; color: var(--text);
}
.hero-body {
  font-family: var(--serif); font-size: 20px;
  font-weight: 400; line-height: 1.45;
  color: var(--text); margin-bottom: 24px;
}
.hero-body p { margin-bottom: 4px; }
.principle {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--gold);
  border-left: 2px solid var(--accent);
  padding-left: 16px; margin: 28px 0; line-height: 1.4;
}
.hero-promise {
  font-size: 15px; line-height: 1.7;
  color: var(--text-soft); margin-bottom: 32px;
}
.hero-promise p { min-height: 1em; }
.cta-anchor {
  display: inline-block;
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); padding-top: 16px;
  border-top: 1px solid var(--border);
  align-self: flex-start;
}

/* ============ BONUS BANNER ============ */
.bonus {
  background: linear-gradient(135deg, #1a0810, #2a1018);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 56px 24px; text-align: center;
}
.bonus-title {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 0.15em; color: var(--gold);
  margin-bottom: 24px; font-weight: 600;
}
.bonus-lines {
  font-family: var(--serif); font-size: 19px;
  color: var(--text); max-width: 640px;
  margin: 0 auto; line-height: 1.6;
}
.bonus-lines p { margin-bottom: 4px; }

/* ============ SHARED CAROUSEL (for hero, c2, c3) ============ */
/* Zasada: NIE kadrujemy zdjęć. background-size: contain = całe zdjęcie widoczne. */
.mc-carousel {
  position: relative;
  overflow: hidden;
  background-color: #0a0807;
}
.mc-slide {
  position: absolute; inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.mc-slide.active { opacity: 1; }
.mc-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 5;
}
.mc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(244,237,228,.35);
  border: none; cursor: pointer; padding: 0;
  transition: all .2s ease;
}
.mc-dot:hover { background: rgba(244,237,228,.7); }
.mc-dot.active { background: var(--gold); width: 28px; border-radius: 4px; }

/* ============ HERO carousel — contain (NIE kadruj zdjęć) ============ */
.hero-carousel .mc-slide {
  background-size: contain;
  background-position: center;
}

/* ============ SECONDARY CAROUSELS (40% size, full-width row, NO crop) ============ */
.full-carousel-wrap {
  width: 100%;
  background: var(--bg);
  padding: 16px 0;
}
.full-carousel {
  position: relative;
  width: 100%;
  /* 40% of typical hero (100vh) ≈ 40vh */
  height: 40vh;
  min-height: 320px;
  max-height: 520px;
  background: #0a0807;
}
/* Landscape variant: wider proportions, photos shown larger */
.full-carousel.horizontal { /* photos are landscape */
  height: 40vh;
  min-height: 320px;
}
/* Portrait variant: photos are taller, container centers them */
.full-carousel.vertical {
  height: 50vh;
  min-height: 380px;
  max-height: 600px;
}

/* ============ MANIFESTO (text-only, no bg image) ============ */
.manifesto {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.manifesto-content {
  position: relative; z-index: 1;
}
.manifesto-title {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2.5vw, 24px);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 36px;
  font-weight: 400;
}
.manifesto-stage {
  max-width: 760px; margin: 0 auto;
  position: relative;
  min-height: 240px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
}
.manifesto-quote-mark {
  font-family: var(--serif); font-style: italic;
  font-size: 96px; line-height: 0.6;
  color: var(--accent); opacity: .55;
  margin-bottom: 12px;
  font-weight: 600;
}
.manifesto-text {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.4; color: var(--gold);
  max-width: 680px;
  opacity: 0; transition: opacity .6s ease;
  min-height: 5em;
}
.manifesto-text.visible { opacity: 1; }

.manifesto-dots {
  margin-top: 32px;
  display: flex; gap: 8px; justify-content: center;
}
.manifesto-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(201,164,123,.25);
  border: none; cursor: pointer; padding: 0;
  transition: all .2s ease;
}
.manifesto-dot:hover { background: rgba(201,164,123,.6); }
.manifesto-dot.active { background: var(--gold); width: 28px; border-radius: 4px; }

/* ============ FORM ============ */
.form-section {
  padding: 72px 24px 56px;
  max-width: 720px; margin: 0 auto;
}
.form-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: 0.05em; margin-bottom: 12px;
  text-align: center;
}
.form-subtitle {
  font-family: var(--serif); font-style: italic;
  color: var(--text-soft); font-size: 18px;
  text-align: center; margin-bottom: 48px;
}

form { display: flex; flex-direction: column; gap: 40px; }

.form-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.form-block-title {
  font-family: var(--serif); font-size: 22px;
  letter-spacing: 0.05em; color: var(--gold);
  margin-bottom: 6px;
}
.form-block-help {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 20px; font-style: italic;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label {
  font-size: 13px; font-weight: 500;
  color: var(--text-soft); letter-spacing: 0.04em;
}
.field label .req { color: var(--accent-hi); margin-left: 2px; }
.field .opt { color: var(--text-muted); font-weight: 400; margin-left: 6px; font-size: 12px; }

.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text); font-family: var(--sans);
  font-size: 15px; padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #1f1815;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: 12px; margin-top: 4px; display: none; }
.field.has-error .field-error { display: block; }

.row-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }

.choice-group { display: flex; flex-direction: column; gap: 8px; }
.choice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; transition: all .15s ease;
  font-size: 15px; line-height: 1.4; color: var(--text-soft);
}
.choice:hover { border-color: var(--gold); color: var(--text); }
.choice input[type=radio], .choice input[type=checkbox] {
  margin-top: 3px; accent-color: var(--accent);
  cursor: pointer; flex-shrink: 0;
}
.choice:has(input:checked) { border-color: var(--accent); background: rgba(139,26,48,.08); color: var(--text); }

.honeypot {
  position: absolute !important; left: -9999px !important;
  opacity: 0 !important; pointer-events: none !important;
  height: 1px; width: 1px;
}

.submit-btn {
  background: var(--accent); color: var(--text);
  font-family: var(--sans); font-size: 16px;
  font-weight: 600; letter-spacing: 0.05em;
  padding: 18px 28px; border: none;
  border-radius: var(--radius); cursor: pointer;
  transition: background .15s ease, transform .1s ease;
  align-self: stretch;
}
.submit-btn:hover:not(:disabled) { background: var(--accent-hi); }
.submit-btn:active:not(:disabled) { transform: translateY(1px); }
.submit-btn:disabled { opacity: .55; cursor: not-allowed; }

.form-error-banner {
  background: rgba(212,74,74,.12);
  border: 1px solid var(--error); color: var(--error);
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; display: none;
}
.form-error-banner.visible { display: block; }

.success-screen {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,8,7,.96);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}
.success-screen.visible { display: flex; }
.success-box {
  background: var(--bg-soft);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  max-width: 480px; text-align: center;
  box-shadow: var(--shadow);
}
.success-icon {
  font-family: var(--serif); color: var(--gold);
  font-size: 64px; line-height: 1; margin-bottom: 24px;
}
.success-title {
  font-family: var(--serif); font-size: 28px;
  color: var(--text); margin-bottom: 16px;
}
.success-body {
  color: var(--text-soft); font-size: 16px;
  line-height: 1.6; margin-bottom: 24px;
}
.success-close-btn {
  background: none; border: 1px solid var(--gold);
  color: var(--gold); padding: 10px 24px;
  border-radius: var(--radius); cursor: pointer;
  font-family: var(--sans); font-size: 14px;
  letter-spacing: 0.05em; transition: background .15s ease;
}
.success-close-btn:hover { background: rgba(201,164,123,.1); }

.conditional { display: none; }
.conditional.visible { display: block; }

footer {
  text-align: center; padding: 56px 24px 32px;
  border-top: 1px solid var(--border-soft); margin-top: 40px;
}
.footer-tagline {
  font-family: var(--serif); font-style: italic;
  color: var(--gold); font-size: 16px; margin-bottom: 16px;
}
.footer-meta {
  color: var(--text-muted); font-size: 12px;
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.footer-links { display: flex; gap: 16px; justify-content: center; }
.footer-links a { color: var(--text-muted); font-size: 12px; }
.footer-links a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
  .manifesto-text { transition: none; opacity: 1; }
}
