/* ============================================================
   DOSZLIFUJ — system designu
   Kolory: granat #1A2E5C + złoto #D4A537 + krem #FAF9F6
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* kolory */
  --primary: #1A2E5C;
  --primary-dark: #0F1E40;
  --primary-light: #2D4474;
  --accent: #D4A537;
  --accent-dark: #B58A2A;
  --cream: #FAF9F6;
  --cream-dark: #F0EDE5;
  --text: #1F1F1F;
  --text-light: #595959;
  --text-muted: #8A8A8A;
  --white: #FFFFFF;
  --border: #E5E2D8;
  --success: #2E7D32;
  --error: #C62828;

  /* typografia */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* spacing */
  --container-max: 1140px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* shadows */
  --shadow-sm: 0 2px 8px rgba(26, 46, 92, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 46, 92, 0.12);
  --shadow-lg: 0 8px 32px rgba(26, 46, 92, 0.16);

  /* radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* TYPOGRAFIA */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: var(--space-md); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-bottom: var(--space-sm); }
h4 { font-size: 1.15rem; margin-bottom: var(--space-xs); font-family: var(--font-sans); font-weight: 600; }
p { margin-bottom: var(--space-sm); color: var(--text); }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

ul, ol { margin-bottom: var(--space-sm); padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 600; color: var(--primary); }

/* CONTAINER */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 var(--space-md); }

/* HEADER / NAV */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary);
}
.logo:hover { color: var(--primary); }
.logo-dot { color: var(--accent); }
.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.nav-cta {
  background: var(--accent);
  color: var(--primary) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: var(--radius-md);
  font-weight: 600 !important;
  border: none !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

/* HERO */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  text-align: center;
}
.hero h1 {
  margin-bottom: var(--space-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}
.hero-cta-row {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-large { padding: 1.1rem 2.4rem; font-size: 1.1rem; }

/* SECTIONS */
section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--primary); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: rgba(250, 249, 246, 0.85); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: var(--space-sm) auto 0;
}

/* CARDS / GRID */
.grid { display: grid; gap: var(--space-md); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--accent-dark);
}
.card h3 { margin-bottom: var(--space-xs); }
.card p { color: var(--text-light); margin: 0; }

/* PROCESS STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  counter-reset: step-counter;
}
.step {
  position: relative;
  padding-top: var(--space-lg);
}
.step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured {
  border-color: var(--accent);
  position: relative;
  box-shadow: var(--shadow-md);
}
.pricing-card.featured::before {
  content: "REKOMENDOWANY";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.price-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}
.price-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-serif);
}
.price-unit {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
  flex-grow: 1;
}
.price-features li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  color: var(--text);
}
.price-features li::before {
  content: "✓ ";
  color: var(--accent-dark);
  font-weight: 700;
  margin-right: 0.3rem;
}
.price-features li:last-child { border-bottom: none; }

/* CALCULATOR */
.calculator {
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  max-width: 700px;
  margin: 0 auto;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.calc-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.calc-field input, .calc-field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--cream);
  transition: border-color 0.2s;
}
.calc-field input:focus, .calc-field select:focus {
  outline: none;
  border-color: var(--accent);
}
.calc-checkbox {
  margin: var(--space-md) 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.calc-checkbox input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.calc-checkbox label { font-size: 0.95rem; cursor: pointer; }
.calc-result {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  text-align: center;
}
.calc-result-amount {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}
.calc-result-detail {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: var(--space-xs);
}

/* FAQ */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary);
  user-select: none;
}
.faq-question::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--accent-dark);
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  padding: 0 1.4rem 1.2rem;
  max-height: 1000px;
}
.faq-answer p { color: var(--text-light); margin-bottom: 0.5rem; }

/* TESTIMONIALS */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.testimonial {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: var(--accent); margin-bottom: var(--space-xs); font-size: 1.1rem; }
.testimonial-text { font-style: italic; color: var(--text); margin-bottom: var(--space-sm); }
.testimonial-author { font-size: 0.9rem; color: var(--text-light); font-weight: 500; }

/* CTA SECTION */
.cta-section { text-align: center; }
.cta-section h2 { color: inherit; }
.cta-section p { font-size: 1.15rem; margin-bottom: var(--space-md); }

/* FOOTER */
.site-footer {
  background: var(--primary-dark);
  color: var(--cream);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-col h4 {
  color: var(--accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}
.footer-col p, .footer-col li { font-size: 0.9rem; color: rgba(250, 249, 246, 0.7); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(250, 249, 246, 0.7); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(250, 249, 246, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(250, 249, 246, 0.6);
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: var(--space-sm);
}
.footer-logo .logo-dot { color: var(--accent); }

/* COOKIES BANNER */
.cookies-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 500px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
}
.cookies-banner.show { display: block; }
.cookies-banner p { font-size: 0.9rem; margin-bottom: var(--space-sm); }
.cookies-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-small { padding: 0.5rem 1.2rem; font-size: 0.9rem; }

/* PROSE — strony tekstowe (regulamin, polityka) */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-top: var(--space-lg); }
.prose h3 { margin-top: var(--space-md); font-family: var(--font-sans); font-size: 1.1rem; }
.prose ol, .prose ul { margin-bottom: var(--space-md); padding-left: 1.5rem; }
.prose ol li, .prose ul li { margin-bottom: 0.5rem; }
.prose p { margin-bottom: var(--space-sm); }

/* STRONA "O MNIE" */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
}
.about-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.value-card {
  background: var(--cream-dark);
  padding: var(--space-md);
  border-radius: var(--radius-md);
}
.value-card h4 { color: var(--primary); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.95rem; color: var(--text-light); margin: 0; }

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
  .grid-3, .pricing-grid, .testimonial-grid, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: 1fr; gap: var(--space-md); }
  .about-photo { max-width: 280px; margin: 0 auto; font-size: 4rem; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: var(--space-md);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: var(--space-xl) 0; }
  .hero { padding: var(--space-xl) 0 var(--space-lg); }
  .hero-cta-row { flex-direction: column; }
  .calc-row { grid-template-columns: 1fr; }
}
