:root {
  --navy: #14303a;
  --green: #4f7d6b;
  --green-dark: #3f6a5a;
  --sage: #7fa898;
  --mint: #e6f0ea;
  --mint-2: #edf4ef;
  --pink: #fbe3df;
  --pink-2: #f7d2cc;
  --pink-leaf: #f4b8b0;
  --yellow: #fcf1bf;
  --bg: #fdfbf7;
  --text: #43515a;
  --line: #d4dcd7;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --hand: "Caveat", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.4;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Dekoracje ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco use { fill: var(--sage); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 400;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn--small { padding: 8px 22px; font-size: 15px; }
.btn--big { display: block; width: 100%; max-width: 470px; margin: 26px auto 0; padding: 15px 30px; font-size: 21px; }

/* ---------- Header ---------- */
.header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo { gap: 16px; }
.logo__img { width: auto; height: 96px; }
.logo__tag {
  display: block;
  font-size: 10.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #5b6d73;
  line-height: 1.45;
  margin-top: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 26px; font-size: 13.5px; color: #33484f; }
.nav a:not(.btn):hover { color: var(--green); }
.nav .btn { margin-left: 26px; }

/* ---------- Hero ---------- */
/* Zdjęcie zajmuje prawą połowę ekranu – falista linia S przebiega przez środek strony.
   --pw = szerokość zdjęcia; fala leży ok. 10% od jego lewej krawędzi, stąd 55.5vw. */
.hero {
  --pw: 55.5vw;
  --ph: min(600px, calc(var(--pw) * 0.938));
  position: relative;
  isolation: isolate;
  overflow-x: clip; /* koło przycięte prawą krawędzią ekranu, bez poziomego przewijania */
  padding-bottom: 6px;
  min-height: calc(18px + var(--ph) + var(--pw) * 0.09);
}

.hero__photo {
  position: absolute;
  top: 18px; /* odstęp od menu */
  right: 0;
  width: var(--pw);
  height: var(--ph);
  z-index: 2;
}
/* kremowa szczelina wzdłuż fali – oddziela żółte tło od zdjęcia */
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  clip-path: url(#hero-wave-gap);
}
.hero__photo img { position: relative; }
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  clip-path: url(#hero-wave);
}

/* różowe koło „Poznaj nasze nowe miejsce!” */
.hero__badge {
  position: absolute;
  left: 64%;
  bottom: calc(var(--pw) * -0.1);
  width: calc(var(--pw) * 0.42);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.hero__badge span {
  font-family: var(--hand);
  font-size: clamp(20px, calc(var(--pw) * 0.056), 42px);
  line-height: 1.05;
  color: var(--navy);
  transform: rotate(-16deg) translate(-12%, -4%);
}
.hero__badge-heart {
  position: absolute;
  width: calc(var(--pw) * 0.05); height: calc(var(--pw) * 0.058);
  bottom: 22%; right: 38%;
  color: #e67d84;
}

.hero__content { position: relative; padding-top: max(20px, calc((var(--ph) - 420px) / 2)); }
/* treść nagłówka mieści się w lewej połowie ekranu */
.hero .hero__content > * { max-width: calc(50vw - 100px - max(0px, (100vw - 1180px) / 2)); }

.hero__title {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 4.5vw, 74px);
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--navy);
}
.hero__title span { color: var(--green); }
/* serduszko zaraz za napisem „Dzień otwarty w Fizjosensorycznie” */
.hero__heart {
  display: inline-block;
  width: 0.95em; height: 1.1em;
  margin-left: 10px;
  vertical-align: -0.2em;
  color: #e88a8f;
}
.hero__subtitle {
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 26px);
  color: var(--navy);
  margin: 14px 0 18px 4px;
}

.hero__title, .hero__subtitle { z-index: 3; }
.hero__subtitle { position: relative; }

/* żółte tło z tekstem – z prawej wchodzi pod zdjęcie i wypełnia wycięcie fali */
.hero__blob {
  position: relative;
  max-width: 540px;
  padding: 26px 34px 34px 34px;
  margin-left: -20px;
}
.hero__blob::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  right: -40vw;
  background: var(--yellow);
  border-radius: 70px 0 0 90px / 60px 0 0 80px;
  z-index: 1;
}
.hero__blob > * { position: relative; z-index: 3; }
.hero__blob h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 14px;
}
.hero__blob p { font-size: 16.5px; line-height: 1.4; color: #4b5960; max-width: 470px; }

.deco--hero-left  { left: -30px; top: 140px; width: 70px; height: 150px; transform: rotate(35deg); }
.deco--hero-left2 { left: -40px; top: 255px; width: 60px; height: 120px; transform: rotate(80deg); }
.deco--hero-left2 use { fill: var(--pink-leaf); }
.deco--hero-right  { right: -20px; bottom: -120px; width: 55px; height: 140px; transform: rotate(10deg); z-index: 3; }
.deco--hero-right2 { right: 40px; bottom: -135px; width: 50px; height: 120px; transform: rotate(-70deg); z-index: 3; }

/* ---------- Pasek informacji ---------- */
.info {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background: var(--mint);
  border-radius: 40px;
  padding: 18px 30px;
  margin-top: 16px;
  margin-right: 70px;
}
.info__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}
.info__item + .info__item { border-left: 1.5px solid #b9c7c0; }
.info__item:first-child { justify-content: flex-start; padding-left: 0; }
.info__item strong { font-weight: 400; text-transform: uppercase; }
.info__item p { text-transform: none; }
.info__item:first-child p { text-transform: uppercase; }
.info__item svg {
  width: 48px; height: 48px; flex-shrink: 0;
  fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.info__item svg .fill { fill: var(--navy); stroke: none; }
.info__big { font-size: 21px; }

/* ---------- Warsztaty ---------- */
.workshops { position: relative; padding-top: 64px; }

.workshops__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 70px 24px 20px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: .5px;
}
.workshops__head p { font-size: 17px; color: #4b5960; }
.workshops__heart { position: absolute; right: 10px; top: -10px; width: 34px; height: 46px; color: #e88a8f; }

.grid { display: grid; gap: 14px; margin-bottom: 14px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); padding: 0 6px; gap: 14px; }

.card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20, 48, 58, .08); }
.card--pink   { background: var(--pink); }
.card--mint   { background: var(--mint-2); }
.card--yellow { background: var(--yellow); }

.card__img { height: 135px; overflow: hidden; }
.grid--3 .card__img { height: 108px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }

.card__icon {
  position: relative;
  width: 64px; height: 64px;
  margin: -36px 0 0 14px;
  border-radius: 50%;
  background: inherit;
  display: flex; align-items: center; justify-content: center;
}
.card--pink .card__icon   { background: var(--pink); }
.card--mint .card__icon   { background: var(--mint-2); }
.card--yellow .card__icon { background: var(--yellow); }
.card__icon svg {
  width: 36px; height: 36px;
  fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.card__body { padding: 4px 16px 20px 16px; }
.grid--3 .card__body { padding: 4px 26px 20px 26px; }
.card h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 14px;
}
.grid--3 .card h3 { font-size: 18px; margin-bottom: 12px; }
.card p { font-size: 14px; line-height: 1.32; color: #56636a; }
.grid--3 .card p { font-size: 15.5px; }

/* ---------- Formularz ---------- */
.signup { position: relative; padding: 20px 0 40px; overflow: hidden; }

.signup__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 40px;
  align-items: start;
}
.signup__intro { padding: 30px 0 0 24px; }
.signup__intro h2 {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -1px;
  color: var(--navy);
  margin-bottom: 8px;
}
.signup__heart { position: absolute; right: -52px; top: -16px; width: 34px; height: 46px; color: #e88a8f; }
.signup__intro p { font-family: var(--serif); font-size: 17.5px; color: #4b5960; }

.form {
  background: linear-gradient(180deg, #fdf3f1 0%, #fbe8e5 100%);
  border-radius: 34px;
  padding: 22px 26px 30px;
}
.form__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form__fields label,
.form__choices legend {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}
.req { color: #e5636f; }
.form__fields input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 9px 12px;
  font: 300 12.5px var(--sans);
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form__fields input::placeholder { color: #9aa5a9; }
.form__fields input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(127, 168, 152, .25); }

.form__choices { border: none; }
.form__choices legend { margin-bottom: 10px; }
.form__choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #3f4c53;
  margin-bottom: 9px;
  cursor: pointer;
}
.form__choices input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px; height: 15px; flex-shrink: 0;
  border: 1px solid #b5bfc2;
  border-radius: 50%;
  background: #fff;
  display: grid; place-content: center;
  cursor: pointer;
}
.form__choices input[type="radio"]::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  transform: scale(0);
  transition: transform .15s;
}
.form__choices input[type="radio"]:checked::before { transform: scale(1); }
.form__choices input[type="radio"]:checked { border-color: var(--green); }

.deco--form-left   { left: -30px; bottom: -20px; width: 90px; height: 200px; transform: rotate(40deg); }
.deco--form-left2  { left: 70px;  bottom: -30px; width: 70px; height: 170px; transform: rotate(70deg); }
.deco--form-left3  { left: 10px;  bottom: 140px; width: 50px; height: 110px; transform: rotate(-30deg); }
.deco--form-left3 use { fill: var(--pink-leaf); }
.deco--form-left2 use { fill: #a9c6b8; }
.deco--form-right  { right: -10px; bottom: -50px; width: 60px; height: 150px; transform: rotate(-30deg); }
.deco--form-right2 { right: 50px;  bottom: -40px; width: 40px; height: 100px; transform: rotate(-60deg); }
.deco--form-right2 use { fill: var(--pink-leaf); }

/* ---------- Responsywność ---------- */
@media (max-width: 1000px) {
  .nav { gap: 16px; }
  .nav .btn { margin-left: 6px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .signup__inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 860px) {
  .header { flex-direction: column; gap: 14px; }
  .nav { flex-wrap: wrap; justify-content: center; }
  .hero { --pw: 100vw; --ph: calc(var(--pw) * 0.938); min-height: 0; }
  .hero .hero__content > * { max-width: none; }
  .hero__photo { position: relative; top: 0; overflow: hidden; border-radius: 0 0 40px 40px; }
  .hero__photo img { border-radius: 0; clip-path: none; }
  .hero__badge { bottom: calc(var(--pw) * -0.1); }
  .hero__content { padding-top: 40px; }
  .hero__blob { margin-left: 0; }
  .hero__blob::before { right: 0; border-radius: 40px; }
  .deco--hero-right, .deco--hero-right2 { display: none; }
  .info { grid-template-columns: 1fr; margin-right: 0; gap: 14px; border-radius: 28px; }
  .info__item, .info__item:first-child { justify-content: flex-start; }
  .info__item + .info__item { border-left: none; border-top: 1.5px solid #b9c7c0; padding-top: 14px; }
  .workshops__head { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 0 20px; }
  .workshops__head p br { display: none; }
  .grid--3 { grid-template-columns: 1fr; padding: 0; }
  .form__cols { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .hero__blob { padding: 22px 22px 26px; }
  .signup__intro { padding-left: 0; }
}

/* ---------- Status wysyłki formularza ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form__status { margin-top: 14px; text-align: center; font-size: 15px; font-weight: 400; min-height: 1em; }
.form__status.is-success { color: var(--green-dark); }
.form__status.is-error { color: #c24552; }

/* ---------- Walidacja e-mail ---------- */
.form__fields input.is-invalid { border-color: #d9606c; box-shadow: 0 0 0 3px rgba(217, 96, 108, .15); }
.form__fields input.is-valid { border-color: var(--sage); }
.field-msg { display: block; min-height: 0; margin-top: 5px; font-size: 11.5px; font-weight: 400; }
.field-msg:empty { display: none; }
.field-msg.is-error { color: #c24552; }
.field-msg.is-hint { color: var(--green-dark); }
.link-btn {
  background: none; border: none; padding: 0;
  font: inherit; font-weight: 700; color: var(--green-dark);
  text-decoration: underline; cursor: pointer;
}

/* ---------- Zgoda RODO ---------- */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #3f4c53;
  cursor: pointer;
}
.form__consent input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 17px; height: 17px;
  margin-top: 1px;
  border: 1px solid #b5bfc2;
  border-radius: 4px;
  background: #fff;
  display: grid; place-content: center;
  cursor: pointer;
}
.form__consent input::before {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform .15s;
}
.form__consent input:checked { background: var(--green); border-color: var(--green); }
.form__consent input:checked::before { transform: rotate(-45deg) scale(1); }
.form__consent input:focus-visible { box-shadow: 0 0 0 3px rgba(127, 168, 152, .35); }
.form__consent a { color: var(--green-dark); text-decoration: underline; }

/* ---------- Polityka prywatności ---------- */
.privacy {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 24px 60px;
}
.privacy__head { position: relative; z-index: 1; margin-bottom: 28px; }
.privacy h1 {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--navy);
  margin-bottom: 18px;
}
.privacy h1 span { color: var(--green); }
.privacy__heart { position: absolute; right: -46px; top: -6px; width: 32px; height: 40px; color: #e88a8f; }
.privacy__head p {
  background: var(--yellow);
  padding: 22px 30px;
  border-radius: 40px 110px 70px 40px / 40px 80px 70px 50px;
  font-size: 16.5px;
  color: #4b5960;
}

.privacy__card {
  position: relative;
  z-index: 1;
  background: var(--mint-2);
  border-radius: 22px;
  padding: 24px 30px 22px;
  margin-bottom: 14px;
}
.privacy__card:nth-of-type(even) { background: var(--pink); }
.privacy__card h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}
.privacy__num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-content: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
}
.privacy__card p, .privacy__card li { font-size: 15.5px; line-height: 1.55; color: #4b5960; }
.privacy__card p + p, .privacy__card ul + p { margin-top: 10px; }
.privacy__card strong { font-weight: 600; color: var(--navy); }
.privacy__card a { color: var(--green-dark); }
.privacy__card ul { list-style: none; margin-top: 6px; }
.privacy__card li { position: relative; padding-left: 22px; margin-bottom: 4px; }
.privacy__card li::before {
  content: "";
  position: absolute;
  left: 4px; top: .6em;
  width: 8px; height: 8px;
  border-radius: 50% 0 50% 0;
  background: var(--sage);
}
.privacy__date { font-size: 13.5px !important; font-style: italic; }
.privacy__back { text-align: center; margin-top: 30px; }

.deco--privacy-left  { left: -120px; top: 40px; width: 70px; height: 160px; transform: rotate(35deg); }
.deco--privacy-left2 { left: -110px; top: 170px; width: 50px; height: 110px; transform: rotate(80deg); }
.deco--privacy-left2 use { fill: var(--pink-leaf); }
.deco--privacy-right { right: -110px; bottom: 120px; width: 60px; height: 150px; transform: rotate(-30deg); }

@media (max-width: 1100px) {
  .deco--privacy-left, .deco--privacy-left2, .deco--privacy-right { display: none; }
}
@media (max-width: 560px) {
  .privacy { padding: 20px 16px 40px; }
  .privacy__heart { display: none; }
  .privacy__card { padding: 20px 18px; }
  .privacy__head p { padding: 20px; border-radius: 30px; }
}

.nowrap { white-space: nowrap; }
@media (min-width: 861px) {
  .hero .hero__content > .hero__subtitle { max-width: none; white-space: nowrap; }
}
@media (max-width: 560px) {
  .logo__img { height: 80px; }
  .logo__tag { font-size: 9.5px; letter-spacing: 1.4px; }
}

/* kadr zdjęcia niemowlęcia – twarz w środku karty */
.card__img img[src$="w1.jpg"] { object-position: center 72%; }

/* link „Poznaj nas bliżej” pod nagłówkiem formularza */
.signup__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 22px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: var(--green-dark);
  transition: background .2s, color .2s;
}
.signup__more span { transition: transform .2s; }
.signup__more:hover { background: var(--green); color: #fff; }
.signup__more:hover span { transform: translateX(4px); }
