/* =========================================================
   Serotonina — system designu
   Tokeny wyciągnięte z obecnej strony (Elementor kit).
   ========================================================= */

:root {
  /* Kolory marki */
  --c-navy:        #49111C;  /* główny akcent, nagłówki, przyciski */
  --c-navy-dark:   #350D15;  /* hover na granacie */
  --c-slate:       #5E503F;  /* tekst drugorzędny, akcenty */
  --c-ink:         #0A0908;  /* mocny tekst / nagłówki */
  --c-body:        #4A443E;  /* tekst akapitów */
  --c-offwhite:    #F2F4F3;  /* tła sekcji */
  --c-light:       #E9E6E0;  /* tła/separatory */
  --c-border:      #DCD7CE;  /* obramowania */
  --c-border-soft: #C9C1C1;
  --c-white:       #FFFFFF;
  --c-accent:      #A9927D;  /* ciepły akcent — przyciski */

  /* Gradient marki (dominujący motyw) */
  --grad-brand: linear-gradient(135deg, #49111C 0%, #5E503F 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(73,17,28,0.58) 0%, rgba(94,80,63,0.45) 100%);

  /* Typografia (zmierzone z produkcji) */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-btn:  "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Roboto Slab", Georgia, serif;

  /* Skala — bazowo realne (45px/35px), lekko podbite dla „apple" dramatu */
  --fs-hero: clamp(2.25rem, 5vw, 3.5rem);     /* do 56px */
  --fs-h2:   clamp(1.7rem, 3.4vw, 2.5rem);    /* do 40px */
  --fs-h3:   clamp(1.25rem, 2.2vw, 1.5rem);  /* ~20–24 */
  --fs-lead: clamp(1.05rem, 1.6vw, 1.25rem); /* ~17–20 */
  --fs-body: 1rem;                           /* 16 */
  --fs-sm:   0.9375rem;                       /* 15 */

  /* Układ */
  --container: 1700px;        /* content ≈ 1596px po odjęciu marginesów */
  --container-narrow: 980px;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --section-y: clamp(2.75rem, 5.5vw, 5.5rem);
  --radius: 16px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  /* Miękkie, warstwowe cienie (apple-like głębia) */
  --shadow-soft: 0 2px 6px -2px rgba(10,9,8,0.08), 0 12px 28px -16px rgba(10,9,8,0.22);
  --shadow: 0 4px 12px -4px rgba(10,9,8,0.10), 0 30px 60px -28px rgba(10,9,8,0.32);
  --shadow-lift: 0 8px 20px -6px rgba(10,9,8,0.14), 0 40px 80px -32px rgba(10,9,8,0.40);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-body);
  background: var(--c-offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-ink);
  line-height: 1.16;
  font-weight: 600;          /* zmierzone: nagłówki 600, lekkie i eleganckie */
  letter-spacing: -0.022em;  /* apple-like: ciasny tracking na dużym tekście */
  text-wrap: balance;
}
.section-title { letter-spacing: -0.025em; }

/* ---------- Pomocnicze ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-offwhite); }
.section--navy { background: var(--c-navy); color: #E8DED3; }
.section--navy h2, .section--navy h3 { color: var(--c-white); }
/* sekcja navy ze zdjęciem w tle */
.section--profb { position: relative; overflow: hidden; }
.section--profb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(73,17,28,0.92) 0%, rgba(94,80,63,0.82) 100%); }
.section--profb > .container { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-slate);
  margin-bottom: 0.75rem;
}
.section-title { font-size: var(--fs-h2); margin-bottom: 1rem; }
.lead { font-size: var(--fs-lead); color: var(--c-slate); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-btn); font-weight: 500; font-size: 14px; line-height: 1;
  padding: 14px 26px; border-radius: 100px; border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-accent); color: var(--c-white); box-shadow: var(--shadow-soft); }
.btn--primary:hover { filter: brightness(0.93); }
.btn--outline { border-color: var(--c-navy); color: var(--c-navy); background: transparent; }
.btn--outline:hover { background: var(--c-navy); color: var(--c-white); }
.btn--ghost { color: var(--c-navy); padding-inline: 0.25rem; }
.btn--ghost:hover { color: var(--c-navy-dark); }

/* ---------- Nagłówek / nawigacja (przezroczysty nad hero → szklany po scrollu) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(242,244,243,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 8px 30px -18px rgba(10,9,8,0.3);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 88px;
  /* obie krawędzie wyrównane do treści hero (taki sam inset jak .hero__inner) */
  padding-inline: clamp(2rem, 5vw, 4.5rem);
  transition: min-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.is-scrolled .nav { min-height: 66px; padding-inline: 0; }
.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 22px; width: auto; transition: height 0.4s var(--ease); }
.is-scrolled .nav__brand img { height: 20px; }
.brand-dark { display: none; }
.is-scrolled .brand-light { display: none; }
.is-scrolled .brand-dark { display: block; }
.nav__menu { display: flex; align-items: center; gap: 1.7rem; }
.nav__menu a { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: #fff; position: relative; transition: color 0.3s var(--ease); }
.is-scrolled .nav__menu a { color: var(--c-ink); }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: currentColor; transition: width 0.25s var(--ease);
}
.nav__menu a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__toggle { display: none; background: none; border: 0; padding: 0.5rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s var(--ease); }
.is-scrolled .nav__toggle span { background: var(--c-ink); }

/* Social media w nawigacji — bialy na hero, ciemny po przewinieciu */
.social-nav { display: flex; align-items: center; gap: 0.15rem; margin: 0 0.35rem 0 0; padding: 0; list-style: none; }
.social-nav a {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: #fff; opacity: 0.9; transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.social-nav a:hover { background: rgba(255,255,255,0.18); opacity: 1; }
.is-scrolled .social-nav a { color: var(--c-navy); opacity: 0.75; }
.is-scrolled .social-nav a:hover { background: rgba(73,17,28,0.08); opacity: 1; }
.social-nav svg { display: block; }

@media (max-width: 920px) {
  .nav__menu, .nav__actions .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__menu {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-white); padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-soft);
  }
  .nav.is-open .nav__menu a { color: var(--c-ink); }
  /* na telefonie ikony zostaja w pasku (obok hamburgera) — sa wtedy najlepiej widoczne */
  .social-nav { margin-right: 0.1rem; }
  .social-nav a { width: 32px; height: 32px; }
}
@media (max-width: 380px) {
  /* na bardzo waskich ekranach zostawiamy dwie pierwsze ikony, zeby nie scisnac hamburgera */
  .social-nav li:nth-child(n+3) { display: none; }
}

/* ---------- Footer (gradient marki) ---------- */
.site-footer { background: linear-gradient(135deg, #49111C 0%, #5E503F 100%); color: #FFFFFF; padding-block: 3.5rem 2rem; }
.site-footer a:hover { color: var(--c-white); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer__brand { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--c-white); margin-bottom: 0.75rem; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Akordeon ---------- */
.accordion__item { border-bottom: 1px solid var(--c-border); }
.accordion__trigger {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--c-ink);
}
.accordion__icon { flex: none; transition: transform 0.3s var(--ease); color: var(--c-navy); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__panel { overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease); }
.accordion__panel-inner { padding-bottom: 1.25rem; color: var(--c-body); }

/* ---------- Modal / popup ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 9, 8, 0.55); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; z-index: 1; max-width: 560px; margin: 6vh auto; background: var(--c-white);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow);
  max-height: 88vh; overflow-y: auto;
}
.modal__close { position: absolute; top: 1rem; right: 1rem; background: var(--c-light); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.2rem; color: var(--c-ink); }
.modal__close:hover { background: var(--c-border); }

/* ---------- Formularz ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--c-ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--c-border); border-radius: 10px;
  font: inherit; color: var(--c-ink); background: var(--c-white); transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-navy); }
.field textarea { min-height: 110px; resize: vertical; }

/* ---------- Formularz zapisu: kroki (stepper) ---------- */
.modal__title { font-size: 1.5rem; margin-bottom: 1.25rem; }
.stepper { display: flex; list-style: none; margin: 0 0 1.6rem; padding: 0; }
.stepper__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; position: relative; text-align: center; }
.stepper__item::before { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--c-border); z-index: 0; transition: background 0.3s var(--ease); }
.stepper__item:first-child::before { display: none; }
.stepper__item.is-active::before, .stepper__item.is-done::before { background: var(--c-navy); }
.stepper__num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c-white); border: 2px solid var(--c-border); color: var(--c-slate); font-weight: 700; font-size: 0.9rem; position: relative; z-index: 1; transition: all 0.25s var(--ease); }
.stepper__item.is-active .stepper__num { background: var(--c-navy); border-color: var(--c-navy); color: #fff; box-shadow: 0 0 0 4px rgba(10,9,8, 0.12); }
.stepper__item.is-done .stepper__num { background: var(--c-navy); border-color: var(--c-navy); color: transparent; }
.stepper__item.is-done .stepper__num::after { content: "\2713"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1rem; }
.stepper__label { font-size: 0.78rem; font-weight: 600; color: var(--c-slate); line-height: 1.2; max-width: 12ch; }
.stepper__item.is-active .stepper__label { color: var(--c-navy); }
.zapis-step { display: none; }
.zapis-step.is-active { display: block; animation: zStepIn 0.3s var(--ease-out); }
@keyframes zStepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.zapis-nav { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.6rem; }
.zapis-next, .zapis-submit { margin-left: auto; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.zapis-form__ok { margin-top: 1.2rem; padding: 1rem 1.15rem; background: #e7f1e9; border: 1px solid #bcdcc4; border-radius: 12px; color: #2f6b43; font-weight: 600; }
.zapis-form__err { margin-top: 1.2rem; padding: 0.85rem 1.1rem; background: #fdecec; border: 1px solid #f1c9c9; border-radius: 12px; color: #a23b3b; font-weight: 600; }
@media (max-width: 480px) { .stepper__label { font-size: 0.68rem; } .stepper__num { width: 30px; height: 30px; } }

/* ---------- Social media (stopka) ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.social-links a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.22);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.social-links a:hover { background: rgba(255,255,255,0.24); border-color: rgba(255,255,255,0.45); transform: translateY(-2px); }
.social-links svg { display: block; }

/* ---------- Podstrona prawna (Polityka prywatności) ---------- */
.legal-header { position: sticky; top: 0; z-index: 100; background: var(--c-white); border-bottom: 1px solid var(--c-border); }
.legal-header__bar { display: flex; align-items: center; justify-content: space-between; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.legal-brand { display: inline-flex; align-items: center; }
.legal-back { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--c-navy); text-decoration: none; }
.legal-back:hover { text-decoration: underline; }
.legal-section { padding-top: clamp(2rem, 5vw, 3.5rem); }
.rich.legal { color: var(--c-ink); line-height: 1.7; }
.rich.legal h2 { font-size: 1.15rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--c-border); color: var(--c-navy); }

/* ---------- Reveal przy scrollu (apple-like staggered) ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
