/* ==========================================================================
   Przy.rodzinie – strona koncepcyjna
   Fonty: Fraunces (nagłówki, oś SOFT) + Nunito Sans (tekst), hostowane lokalnie.
   ========================================================================== */

/* ---------- Fonty (latin + latin-ext = pełne polskie znaki) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/nunito-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/nunito-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Zmienne ---------- */
:root {
  /* Paleta z logo */
  --white: #FFFFFF;
  --rose: #D6B0A7;      /* akcent: kropki, linie, ikony, plamy. Nigdy tekst. */
  --rose-soft: #F7EDEA; /* tło wybranych sekcji */
  --rose-mist: #FBF6F4; /* najjaśniejsze tło */
  --mauve: #7A5C52;     /* przyciski, linki, wyróżnienia (6:1 z bielą) */
  --ink: #4A3A36;       /* tekst */
  --line: color-mix(in srgb, var(--mauve) 75%, var(--white)); /* obrys pól formularza, min. 3:1 */

  /* Typografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-body: 1.125rem;
  --fs-small: 1rem;
  --fs-lead: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  --fs-h1: clamp(2.15rem, 1.45rem + 3vw, 3.9rem);
  --fs-h2: clamp(1.85rem, 1.4rem + 1.9vw, 2.9rem);
  --fs-h3: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem);
  --lh-body: 1.7;
  --lh-heading: 1.15;
  --measure: 68ch;

  /* Odstępy */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-space: clamp(4rem, 2.8rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --content-max: 1200px;

  /* Kształty */
  --radius-s: 12px;
  --radius-m: 24px;
  --radius-l: clamp(28px, 12px + 3vw, 56px);
  --radius-pill: 999px;

  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Kropkowana linia (motyw z logo) */
  --dots-x: radial-gradient(circle, var(--rose) 1.6px, transparent 2.2px) 0 50% / 12px 6px repeat-x;
}

/* ---------- Baza ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 100;
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--mauve);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--mauve);
  outline-offset: 3px;
}

strong {
  font-weight: 700;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--mauve);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Przyciski i linki ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: 700 1.0625rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--mauve);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  border-color: var(--mauve);
  color: var(--mauve);
}

.btn--secondary:hover {
  background: var(--rose-soft);
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 700;
  color: var(--mauve);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s;
}

.text-link:hover {
  color: var(--ink);
  text-decoration-color: var(--mauve);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* Placeholder do uzupełnienia (ceny, terminy) */
.ph {
  padding: 0 0.4em;
  border: 1.5px dashed var(--rose);
  border-radius: 8px;
  background: var(--white);
  white-space: nowrap;
}

/* Kropki nad nagłówkami sekcji: „kropka za kropką” */
.mark {
  margin-bottom: var(--space-4);
  fill: var(--rose);
}

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--rose-soft);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-s);
}

.brand:hover {
  color: var(--ink);
}

.logo-tile {
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--rose);
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-tile.is-missing img {
  visibility: hidden;
}

.brand__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.4rem;
  font-weight: 420;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.main-nav,
.site-header__cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--rose);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font: 700 1rem var(--font-body);
  cursor: pointer;
}

.menu-toggle__icon {
  width: 18px;
  height: 10px;
  border-block: 2px solid var(--mauve);
}

@media (min-width: 1080px) {
  :root {
    --header-h: 80px;
  }

  .brand {
    margin-right: 0;
  }

  .main-nav {
    display: block;
    margin-left: auto;
    margin-right: var(--space-5);
  }

  .main-nav ul {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    list-style: none;
  }

  .main-nav a {
    position: relative;
    display: block;
    padding: 0.5rem 0;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
  }

  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.15rem;
    height: 6px;
    background: var(--dots-x);
    opacity: 0;
    transition: opacity 0.2s;
  }

  .main-nav a:hover::after {
    opacity: 1;
  }

  .site-header__cta {
    display: inline-flex;
    min-height: 46px;
    padding: 0.6rem 1.3rem;
    font-size: 1rem;
  }

  .menu-toggle {
    display: none;
  }
}

/* ---------- Panel menu (mobile) ---------- */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgb(74 58 54 / 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: min(88vw, 380px);
  padding: 1rem 1.5rem 2rem;
  overflow-y: auto;
  border-radius: 32px 0 0 32px;
  background: var(--white);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s 0.35s;
}

.menu-open .menu-panel {
  transform: none;
  visibility: visible;
  transition: transform 0.35s var(--ease);
}

.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s;
}

.menu-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.menu-panel__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--rose);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-panel__links {
  list-style: none;
}

.menu-panel__links a {
  display: block;
  padding: 0.75rem 0;
  background: var(--dots-x);
  background-position: 0 100%;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}

.menu-panel__note {
  margin-top: auto;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.1rem;
  color: var(--mauve);
}

@media (min-width: 1080px) {
  .menu-panel,
  .menu-backdrop {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-panel,
  .menu-backdrop {
    transition: none !important;
  }
}

/* ---------- Sekcje: wspólne ---------- */
.section {
  padding-block: calc(var(--section-space) / 2);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .mark {
  margin-inline: auto;
}

.section__title {
  font-size: var(--fs-h2);
}

.section__lead {
  margin-top: var(--space-4);
  font-size: var(--fs-lead);
}

.wrap-soft,
.wrap-mist {
  width: min(100% - 2 * clamp(0.5rem, 1.5vw, 1.5rem), 1680px);
  margin-inline: auto;
  padding-block: calc(var(--section-space) * 0.8);
  border-radius: var(--radius-l);
  background: var(--rose-soft);
}

.wrap-mist {
  background: var(--rose-mist);
}

.dot-list {
  display: grid;
  gap: 0.35rem;
  list-style: none;
}

.dot-list li {
  position: relative;
  padding-left: 1.25rem;
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 0.5rem calc(var(--section-space) / 2);
  overflow: clip;
}

.hero__inner {
  display: grid;
  gap: 1.75rem clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero__dots {
  width: 84px;
  height: auto;
  margin-bottom: var(--space-4);
  overflow: visible;
  fill: var(--rose);
}

@media (min-width: 960px) {
  .hero__dots {
    width: 112px;
    margin-bottom: var(--space-5);
  }
}

.hero__title {
  max-width: 16ch;
  font-size: var(--fs-h1);
  font-weight: 360;
  line-height: 1.1;
}

/* Miękkie podkreślenie z różowej kreski (kolor wpisany na sztywno, bo data URI nie widzi zmiennych) */
.swash {
  padding-bottom: 0.1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8c38-6 84-7 124-3s50 2 70-3' fill='none' stroke='%23D6B0A7' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") left bottom / 100% 0.3em no-repeat;
  color: var(--mauve);
  white-space: nowrap;
}

.hero__lead {
  max-width: 34em;
  margin-top: var(--space-5);
  font-size: var(--fs-lead);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero__actions .btn {
  flex: 1 1 14rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: var(--space-6);
  list-style: none;
  font-size: var(--fs-small);
  font-weight: 600;
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.hero__facts li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
}

/* Na telefonie zdjęcie jest pierwsze: od razu widać, o co chodzi */
.hero__media {
  position: relative;
  order: -1;
  margin: 0;
}

.hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 52% 30%;
  border-radius: var(--radius-l) clamp(80px, 18vw, 180px) var(--radius-l) clamp(80px, 18vw, 180px);
}

.hero__blob {
  position: absolute;
  z-index: 0;
  right: -8%;
  bottom: -9%;
  width: 72%;
  height: 72%;
  border-radius: 58% 42% 55% 45% / 50% 58% 42% 50%;
  background: var(--rose-soft);
}

.hero__badge {
  position: absolute;
  z-index: 2;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero__badge-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
}

@media (min-width: 960px) {
  .hero {
    padding-top: clamp(2.5rem, 4vw, 4.5rem);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .hero__media {
    order: 0;
  }

  .hero__actions .btn {
    flex: 0 1 auto;
  }

  .hero__media img {
    aspect-ratio: 1 / 1.08;
  }

  .hero__badge {
    left: -1.5rem;
    bottom: 2.5rem;
  }
}

/* Jedyny moment ruchu: kropki z logo pojawiają się po kolei, treść łagodnie wchodzi */
@media (prefers-reduced-motion: no-preference) {
  .hero__dots circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: dot-in 0.6s var(--ease) both;
    animation-delay: calc(var(--i) * 140ms + 150ms);
  }

  .hero__content > :not(.hero__dots),
  .hero__media {
    animation: rise 1s var(--ease) both;
  }

  .hero__media {
    animation-delay: 0.2s;
  }
}

@keyframes dot-in {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- O nas / filozofia ---------- */
.philosophy {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.philosophy__media {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  padding: 0 14% 12% 0;
}

.philosophy__photo {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius-pill) var(--radius-pill) var(--radius-m) var(--radius-m);
}

.philosophy__inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid var(--rose-soft);
  border-radius: 50%;
}

.philosophy__text p {
  max-width: var(--measure);
}

.philosophy__text .section__title {
  margin-bottom: var(--space-5);
}

.values {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  list-style: none;
}

.values li {
  position: relative;
  padding-left: 1.75rem;
}

.values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
}

@media (min-width: 900px) {
  .philosophy {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .philosophy__media {
    margin-inline: 0;
  }
}

/* ---------- Co nas wyróżnia ---------- */
.support {
  display: grid;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.support__photo {
  width: 100%;
  margin-top: var(--space-6);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) var(--radius-s);
}

.support__list {
  list-style: none;
}

.support__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  padding-block: 1.75rem;
}

.support__item + .support__item {
  background: var(--dots-x);
  background-position: 0 0;
}

.support__item:first-child {
  padding-top: 0.5rem;
}

.support__icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support__item h3 {
  margin-bottom: 0.4rem;
  font-size: var(--fs-h3);
}

.support__item p {
  max-width: 52ch;
}

@media (min-width: 960px) {
  .support {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .support__intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }

  .support__list {
    padding-top: 3.25rem;
  }
}

/* ---------- Karuzela (telefon: przewijanie palcem; desktop: siatka) ---------- */
.carousel__track {
  display: flex;
  gap: var(--space-4);
  padding: 0.25rem var(--gutter) 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  list-style: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track > li {
  flex: 0 0 min(82%, 340px);
  scroll-snap-align: start;
}

.carousel__track:focus-visible {
  outline-offset: -3px;
  border-radius: var(--radius-m);
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: var(--space-4);
}

.carousel__dots[hidden] {
  display: none;
}

.carousel__dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.carousel__dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--mauve);
  border-radius: 50%;
  transition: background-color 0.2s, transform 0.2s;
}

.carousel__dot[aria-current="true"]::before {
  background: var(--mauve);
  transform: scale(1.25);
}

/* ---------- Jak pracujemy: etapy ---------- */
.step__photo {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  border-radius: var(--radius-pill) var(--radius-pill) var(--radius-m) var(--radius-m);
}

.step__marker {
  display: flex;
  align-items: center;
  margin: 1.25rem 0 0.75rem;
}

.step__marker span {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose-soft);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.05rem;
  color: var(--mauve);
}

.step__marker::after {
  content: "";
  flex: 1;
  height: 6px;
  margin-left: 0.75rem;
  background: var(--dots-x);
}

.step__title {
  margin-bottom: 0.5rem;
  font-size: var(--fs-h3);
}

.step p,
.step .dot-list {
  font-size: 1.0625rem;
}

.step__label {
  margin: var(--space-4) 0 0.4rem;
  font-weight: 700;
  color: var(--mauve);
}

@media (min-width: 960px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    max-width: calc(var(--content-max) + 2 * var(--gutter));
    margin-inline: auto;
    overflow: visible;
  }

  .step__photo {
    aspect-ratio: 4 / 5;
  }

  .step__marker::after {
    margin-right: -2rem;
  }

  .step:last-child .step__marker::after {
    margin-right: 0;
    -webkit-mask: linear-gradient(to right, #000 30%, transparent);
    mask: linear-gradient(to right, #000 30%, transparent);
  }
}

/* ---------- Oferta ---------- */
.offer__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  max-width: 42rem;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
}

.offer__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.2rem;
  border: 0;
  border-radius: var(--radius-m);
  background: none;
  color: var(--ink);
  font: 600 0.95rem/1.25 var(--font-body);
  cursor: pointer;
}

.offer__tab img {
  width: clamp(64px, 17vw, 108px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--rose);
  transition: box-shadow 0.2s;
}

.offer__tab:hover img {
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--rose);
}

.offer__tab[aria-selected="true"] {
  color: var(--mauve);
  font-weight: 700;
}

.offer__tab[aria-selected="true"] img {
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--mauve);
}

.offer__tab[aria-selected="true"] span {
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.offer__panel {
  display: grid;
  gap: var(--space-6);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--radius-l);
  background: var(--rose-mist);
}

.offer__panel[hidden] {
  display: none;
}

.offer__panel:focus-visible {
  outline-offset: 4px;
}

.offer-item h3 {
  margin-bottom: 0.6rem;
  font-size: var(--fs-h3);
}

.offer-item + .offer-item {
  padding-top: var(--space-6);
  background: var(--dots-x);
  background-position: 0 0;
}

.offer-item__meta {
  display: grid;
  gap: 0.4rem;
  margin: var(--space-5) 0 var(--space-4);
  font-size: var(--fs-small);
}

.offer-item__meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.offer-item__meta dt {
  font-weight: 700;
}

.offer-item__meta dt::after {
  content: ":";
}

.offer-item__meta dd {
  margin: 0;
}

@media (min-width: 860px) {
  .offer__panel {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .offer-item + .offer-item {
    padding-top: 0;
    background: none;
  }
}

/* ---------- Zespół ---------- */
.team {
  display: grid;
  gap: var(--space-6);
  list-style: none;
}

.person {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.person__photo {
  display: grid;
  place-items: end center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-pill) var(--radius-pill) 20px 20px;
  background: var(--rose-soft);
}

.person__photo svg {
  width: 78%;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.6;
}

.person__photo .fill {
  fill: var(--rose);
  stroke: none;
}

.person h3 {
  font-size: var(--fs-h3);
}

.person__role {
  margin: 0.2rem 0 0.6rem;
  font-weight: 700;
  color: var(--mauve);
}

.person__text p:last-child {
  font-size: 1.0625rem;
}

@media (min-width: 760px) {
  .team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  .person {
    grid-template-columns: 1fr;
  }

  .person:nth-child(2) {
    margin-top: 3rem;
  }

  .person__photo {
    margin-bottom: 0.5rem;
  }
}

/* ---------- Opinie ---------- */
.quotes > li {
  flex-basis: min(86%, 380px);
}

.quote figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 10px;
  background: var(--white);
}

.quote:nth-child(2) figure {
  border-radius: var(--radius-l) var(--radius-l) 10px var(--radius-l);
}

.quote__mark {
  width: 40px;
  margin-bottom: var(--space-4);
  fill: var(--rose);
}

.quote blockquote {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  font-weight: 380;
  line-height: 1.45;
}

.quote figcaption {
  margin-top: auto;
  font-size: var(--fs-small);
}

@media (min-width: 900px) {
  .quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    max-width: calc(var(--content-max) + 2 * var(--gutter));
    margin-inline: auto;
    overflow: visible;
  }

  .quote:nth-child(2) {
    margin-top: 2.5rem;
  }
}

/* ---------- Instagram ---------- */
.insta {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.insta__head p {
  margin: var(--space-3) 0 var(--space-5);
  font-size: var(--fs-lead);
}

.insta__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 12px);
  list-style: none;
}

.insta__grid a {
  display: block;
  overflow: hidden;
  border-radius: clamp(10px, 1.5vw, 18px);
}

.insta__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.2s;
}

.insta__grid a:hover img {
  opacity: 0.88;
}

@media (min-width: 900px) {
  .insta {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 4rem;
  }
}

/* ---------- FAQ ---------- */
.faq__list {
  display: grid;
  gap: var(--space-3);
  max-width: 50rem;
  margin-inline: auto;
}

.faq details {
  padding: 0 clamp(1.1rem, 3vw, 1.75rem);
  border-radius: var(--radius-m);
  background: var(--white);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 1.2rem 0;
  list-style: none;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.15rem, 1.1rem + 0.3vw, 1.3rem);
  font-weight: 420;
  line-height: 1.35;
  cursor: pointer;
  border-radius: var(--radius-s);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rose-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%237A5C52' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding-bottom: 1.4rem;
}

.faq__answer p {
  max-width: 62ch;
}

/* ---------- Kontakt i formularz ---------- */
.contact {
  display: grid;
  gap: var(--space-6) 4rem;
}

.contact__form-wrap {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-l);
  background: var(--rose-soft);
}

.form {
  display: grid;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-width: 0;
}

.field label,
.field legend {
  font-size: var(--fs-small);
  font-weight: 700;
}

.field__optional {
  font-weight: 400;
}

.field input:not([type="checkbox"]),
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color 0.2s;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:not([type="checkbox"]):hover,
.field textarea:hover {
  border-color: var(--mauve);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--mauve);
  outline-offset: 2px;
  border-color: var(--mauve);
}

.field [aria-invalid="true"] {
  border-color: var(--mauve);
  border-width: 2px;
}

.field__error {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mauve);
}

.field__error::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mauve);
  transform: translateY(-0.1em);
}

.field__error[hidden] {
  display: none;
}

.field__hint {
  margin: 0;
  font-size: 0.95rem;
}

.field--group {
  margin: 0;
  padding: 0;
  border: 0;
}

.field--group legend {
  margin-bottom: 0.6rem;
  padding: 0;
}

.choices {
  display: grid;
  gap: 0.5rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s;
}

.choice:has(input:checked) {
  border-color: var(--mauve);
}

.field .choice {
  font-weight: 400;
}

.choice input {
  flex: none;
  display: grid;
  place-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.choice input:checked {
  border-color: var(--mauve);
  background: var(--mauve) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.choice input:focus-visible {
  outline-offset: 2px;
}

.choice--consent {
  padding: 0;
  background: none;
  font-size: var(--fs-small);
}

.choice--consent:has(input:checked) {
  border-color: transparent;
}

.choice--consent input {
  margin-top: 0.15rem;
}

.form .btn[type="submit"] {
  width: 100%;
}

.form-success {
  padding: var(--space-6) 0;
  text-align: center;
}

.form-success:focus {
  outline: none;
}

.form-success__dots {
  margin: 0 auto var(--space-5);
  fill: var(--rose);
}

.form-success h3 {
  margin-bottom: var(--space-4);
  font-size: var(--fs-h2);
}

.form-success p {
  max-width: 34em;
  margin-inline: auto;
}

.contact__list {
  display: grid;
  gap: var(--space-4);
  margin: 0 0 var(--space-6);
}

.contact__list dt {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mauve);
}

.contact__list dd {
  margin: 0;
}

.map-ph {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  border-radius: var(--radius-l) var(--radius-s) var(--radius-l) var(--radius-l);
  background: var(--rose-mist);
}

.map-ph svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-ph .road {
  fill: none;
  stroke: var(--rose);
  stroke-width: 10;
  stroke-linecap: round;
  opacity: 0.5;
}

.map-ph .road--thin {
  stroke-width: 5;
}

.map-ph .pin {
  fill: var(--mauve);
}

.map-ph .pin-halo {
  fill: var(--rose);
  opacity: 0.4;
}

.map-ph span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (min-width: 600px) {
  .form__row,
  .choices {
    grid-template-columns: 1fr 1fr;
  }

  .form .btn[type="submit"] {
    width: auto;
    justify-self: start;
  }
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "head form"
      "info form";
    align-items: start;
  }

  .contact__head {
    grid-area: head;
  }

  .contact__form-wrap {
    grid-area: form;
  }

  .contact__info {
    grid-area: info;
  }
}

/* ---------- Stopka ---------- */
.site-footer {
  margin-top: calc(var(--section-space) / 2);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  background: var(--rose-soft);
}

.site-footer__inner {
  display: grid;
  gap: 2.5rem;
}

.site-footer__motto {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--mauve);
}

.site-footer h2 {
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0;
}

.site-footer ul {
  display: grid;
  gap: 0.35rem;
  list-style: none;
}

.site-footer a {
  color: var(--ink);
}

.site-footer a:hover {
  color: var(--mauve);
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
}

.social svg {
  color: var(--mauve);
}

.site-footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-block: var(--space-5) var(--space-6);
  font-size: 0.95rem;
}

.site-footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 6px;
  background: var(--dots-x);
}

.site-footer__bottom p {
  margin: 0;
}

@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  }
}
