/* Fizjoterapia Karolina Wojakiewicz — style */

:root {
  --wine: #8e2a46;
  --wine-dark: #6d1f35;
  --wine-light: #b8546f;
  --cream: #fdf9f7;
  --sand: #f4ece8;
  --ink: #2f2226;
  --muted: #6d5f63;
  --line: #e7dad5;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(110, 40, 60, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--wine); }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--wine-dark);
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 .7em; }
h3 { font-size: 1.2rem; margin: 0 0 .5em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }

.lead { font-size: 1.1rem; color: var(--muted); }
.center { text-align: center; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 249, 247, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 118px; width: auto; mix-blend-mode: multiply; }

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover, .nav a.is-active { color: var(--wine); border-bottom-color: var(--wine); }

/* Przycisk rezerwacji w nagłówku */
.nav__cta { margin-left: 8px; }

.nav .btn-book {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  padding: 11px 22px 11px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(142, 42, 70, .28);
  transition: transform .15s ease, box-shadow .15s ease;
  border-bottom: none !important;
}

.nav .btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(142, 42, 70, .36);
}

.btn-book__icon { font-size: 1rem; line-height: 1; }

.btn-book__main { font-size: .98rem; font-weight: 700; line-height: 1.2; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--wine-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  transition: transform .15s ease, background .15s ease;
  border: 2px solid var(--wine);
}

.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--wine); color: #fff; }
.btn--primary:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.btn--ghost { background: transparent; color: var(--wine); }
.btn--ghost:hover { background: var(--wine); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
  padding: 64px 0 72px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.hero__kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--wine-light);
  margin: 0 0 14px;
  font-weight: 700;
}

.hero__img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 20%;
}

.page-hero {
  background: var(--sand);
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card--link { display: flex; flex-direction: column; }
.card--link .btn { align-self: flex-start; margin-top: auto; }
.card p { color: var(--muted); }
.card__img { border-radius: var(--radius) var(--radius) 0 0; height: 220px; object-fit: cover; width: 100%; }
.card--photo { padding: 0; overflow: hidden; }
.card--photo .card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 460px; object-fit: cover; }
.split--reverse .split__img { order: 2; }

/* ---------- Lists ---------- */
.list { list-style: none; padding: 0; margin: 0 0 1.4em; }

.list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wine-light);
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  margin-bottom: 22px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--wine-dark);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--wine-light); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- CTA ---------- */
.cta {
  background: var(--wine);
  color: #fff;
  text-align: center;
  padding: 68px 0;
}

.cta h2, .cta a.btn--ghost { color: #fff; }
.cta p { color: rgba(255,255,255,.9); }
.cta .btn--primary { background: #fff; color: var(--wine); border-color: #fff; }
.cta .btn--primary:hover { background: var(--sand); }
.cta .btn--ghost { border-color: rgba(255,255,255,.7); }
.cta .btn--ghost:hover { background: #fff; color: var(--wine); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-list .icon { font-size: 1.25rem; line-height: 1.4; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span.label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.contact-list .note { display: block; margin-top: 2px; }

.address {
  font-style: normal;
  line-height: 1.8;
  margin: 0 0 22px;
  color: var(--muted);
}

.address strong { color: var(--ink); }
.card h2 { font-size: 1.35rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img { border-radius: var(--radius); height: 280px; object-fit: cover; width: 100%; box-shadow: var(--shadow); }

.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gallery--4 img { height: 240px; }

/* ---------- Opinie ---------- */
.review-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}

.review-link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(110, 40, 60, .14); }
.review-link__icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.review-link h3 { margin-bottom: .35em; }
.review-link p { margin: 0; }

.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 0;
  box-shadow: var(--shadow);
}

.review__stars { color: #e0a33c; letter-spacing: .12em; margin-bottom: 10px; }
.review p { color: var(--ink); font-style: italic; margin: 0 0 14px; }
.review footer { color: var(--muted); font-size: .92rem; font-weight: 600; }

/* ---------- Certyfikaty ---------- */
.cert { margin: 0; }
.cert img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 300px; object-fit: contain; background: var(--white); padding: 10px; }
.cert figcaption { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.gallery--certs { align-items: start; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #d9cfd2;
  padding: 48px 0 28px;
  font-size: .93rem;
}

.footer a { color: #f0e3e6; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer h3 { color: #fff; font-size: 1.05rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 32px;
  padding-top: 18px;
  text-align: center;
  color: #a89ba0;
  font-size: .85rem;
}

.note { font-size: .9rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .split, .grid--2, .grid--3, .footer__grid { grid-template-columns: 1fr; }
  .split--reverse .split__img { order: 0; }
  .hero__img img, .split img { height: 380px; }
  .gallery, .gallery--4 { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 18px; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: none; }
  .nav a { display: block; padding: 12px 0; }
  .header__inner { position: relative; }
  .section { padding: 56px 0; }

  .logo img { height: 88px; }
  .nav__cta { margin: 14px 0 4px; border-bottom: none; }
  .nav .btn-book {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .nav ul { gap: 15px; }
  .nav a { font-size: .9rem; }
  .logo img { height: 100px; }
  .btn-book__main { font-size: .93rem; }
}

@media (max-width: 520px) {
  .gallery, .gallery--4 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
