/* =========================================================
   Mani Pedi — style
   ========================================================= */

:root {
  --bg: #F5F2EE;
  --surface: #FFFFFF;
  --ink: #15121A;
  --ink-soft: #3C3644;
  --muted: #736C7C;
  --line: rgba(21, 18, 26, .1);
  --dark: #110E14;

  --lilac: #B7A3F7;
  --peach: #FFB9A3;
  --butter: #F1DE9C;
  --grad: linear-gradient(100deg, #9A82F2 0%, #EE8F86 50%, #E3BD62 100%);
  --grad-loop: linear-gradient(90deg, #8E75EE, #EE8F86, #E3BD62, #8E75EE);

  /* kolor miejsc na zdjęcia */
  --ph: #E3262E;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 168px);
  --nav-h: 72px;
  --radius: clamp(22px, 2.6vw, 32px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  interpolate-size: allow-keywords;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--lilac); color: var(--ink); }

h1, h2, h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.8rem, 7vw, 6rem); }
em { font-style: italic; }

.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.i {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

section[id] { scroll-margin-top: 24px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.25rem;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(183, 163, 247, .18);
}
.eyebrow--light { color: rgba(255, 255, 255, .7); }

/* ---------- Tekst z animowanym gradientem (Magic UI: Animated Gradient Text) ---------- */
.aurora,
.is-split .aurora .w__i {
  background: var(--grad-loop);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aurora 9s linear infinite;
}
/* kursywa wystaje poza pudełko słowa — padding poszerza obszar gradientu, żeby nie ucinał końcówek liter */
.aurora { padding: 0 .14em .08em 0; margin-right: -.14em; }
.is-split .aurora { background: none; animation: none; color: inherit; padding: 0; margin: 0; }
/* miejsce na ogonki liter (ę, ą, y), żeby gradient ich nie ucinał */
.is-split .aurora .w__i { padding: .08em .1em .24em 0; margin: -.08em -.1em -.24em 0; }
@keyframes aurora { to { background-position: 300% 0; } }

/* ---------- Dzielenie na słowa (do animacji) ---------- */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .12em .1em .24em 0;
  margin: -.12em -.1em -.24em 0;
}
.w__i { display: inline-block; will-change: transform; }

/* ---------- Przyciski ---------- */
.btn {
  --h: 50px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: var(--h); padding: 0 1.5rem;
  border-radius: 999px; border: 0;
  font-size: .95rem; font-weight: 500; white-space: nowrap;
  cursor: pointer;
  transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .4s;
}
.btn:active { transform: scale(.97); }
.btn--lg { --h: 56px; padding: 0 1.75rem; }
.btn .arrow { transition: transform .5s var(--ease); }

/* Magic UI: Shimmer Button */
.btn--shimmer {
  background: var(--ink); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(21, 18, 26, .55), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn--shimmer::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 48%, rgba(215, 200, 255, .35) 52%, transparent 70%);
  transform: translateX(-110%);
  animation: shimmer 3.6s var(--ease) infinite;
}
@keyframes shimmer { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(110%); } }

.btn--ghost {
  background: rgba(255, 255, 255, .55); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--light { background: #fff; color: var(--ink); }

@media (hover: hover) {
  .btn--shimmer:hover { box-shadow: 0 18px 40px -14px rgba(122, 94, 230, .6), inset 0 1px 0 rgba(255, 255, 255, .2); transform: translateY(-2px); }
  .btn--ghost:hover { background: #fff; }
  .btn--light:hover { background: #F0EBFF; }
  .btn:hover .arrow { transform: translateX(4px); }
}

/* ---------- Miejsca na zdjęcia (czerwone) ---------- */
.ph {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 1.25rem;
  background: var(--ph); color: #fff; text-align: center;
  overflow: hidden;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 16px);
}
.ph > * { position: relative; }
.ph__num { font-family: 'Instrument Serif', serif; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.ph__label { font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.45; max-width: 26ch; }
/* prawdziwe zdjęcia */
.fill { width: 100%; height: 100%; object-fit: cover; display: block; background: #E9E3EC; }
.gallery__item .fill { transition: transform 1s var(--ease); }
@media (hover: hover) { .gallery__item:hover .fill { transform: scale(1.05); } }
.ph--corner { align-items: flex-start; justify-content: flex-start; text-align: left; padding: clamp(96px, 14vh, 140px) clamp(20px, 4vw, 48px); }

/* ---------- Pasek postępu ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- Marquee (Magic UI: Marquee) ---------- */
.marquee {
  --gap: 2rem; --duration: 40s;
  display: flex; gap: var(--gap); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; flex-shrink: 0; align-items: center; gap: var(--gap);
  min-width: 100%;
  animation: marquee var(--duration) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }

/* ---------- Ogłoszenie ---------- */
.announce {
  height: 40px; display: flex; align-items: center;
  background: var(--ink); color: rgba(255, 255, 255, .85);
  font-size: .8rem; letter-spacing: .04em;
}
.announce .marquee { width: 100%; }
.announce span { white-space: nowrap; }
.announce i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  transition: transform .6s var(--ease), background-color .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(245, 242, 238, .74);
  backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(calc(-100% - 40px)); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand { font-family: 'Instrument Serif', serif; font-size: 1.85rem; line-height: 1; letter-spacing: -.01em; }
.brand em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }

.nav__links { display: flex; gap: .15rem; margin-left: auto; }
.nav__links a {
  padding: .5rem .85rem; border-radius: 999px;
  font-size: .9rem; color: var(--ink-soft);
  transition: background-color .3s, color .3s;
}
@media (hover: hover) { .nav__links a:hover { background: rgba(21, 18, 26, .06); color: var(--ink); } }
.nav__cta { --h: 44px; padding: 0 1.2rem; font-size: .88rem; }

.burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--ink); cursor: pointer;
  place-content: center; gap: 6px;
}
.burger span { display: block; width: 18px; height: 1.5px; background: #fff; border-radius: 2px; }
.burger span:last-child { width: 12px; margin-left: 6px; }

@media (max-width: 1020px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .burger { display: grid; margin-left: 0; }
}
@media (max-width: 560px) { .nav__cta { display: none; } .burger { margin-left: auto; } }

/* ---------- Menu mobilne ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--nav-h) + 40px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--dark); color: #fff;
  clip-path: circle(0% at calc(100% - 44px) 76px);
  visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 76px); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
.menu__close {
  position: absolute; top: 53px; right: var(--gutter);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.menu__close .i { transform: rotate(45deg); width: 22px; height: 22px; }
.menu__nav { display: flex; flex-direction: column; }
.menu__link {
  font-family: 'Instrument Serif', serif; font-size: clamp(2.6rem, 11vw, 4.5rem); line-height: 1.12;
  opacity: 0; transform: translateY(40px);
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.menu.is-open .menu__link { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .06s); }
.menu__cta { --h: 58px; width: 100%; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--nav-h) - 40px);
  padding-block: clamp(32px, 6vw, 72px) clamp(90px, 10vw, 130px);
  display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(21, 18, 26, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 30% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 30% 45%, #000 10%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float 20s ease-in-out infinite alternate; }
.blob--1 { width: 42vw; height: 42vw; background: var(--lilac); top: -14vw; right: -8vw; }
.blob--2 { width: 30vw; height: 30vw; background: var(--peach); bottom: -12vw; left: 18vw; animation-delay: -7s; }
.blob--3 { width: 20vw; height: 20vw; background: var(--butter); top: 38%; left: 48%; opacity: .45; animation-delay: -13s; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 3vw) scale(1.1); }
  100% { transform: translate(-3vw, -2vw) scale(.95); }
}

.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 96px); align-items: center; width: min(1240px, 100% - 2 * var(--gutter)); }
.hero__title { font-size: clamp(3.6rem, 8vw + 1rem, 8.5rem); line-height: .92; letter-spacing: -.035em; }
.hero__lead { max-width: 46ch; margin: 1.75rem 0 2rem; font-size: clamp(1.02rem, 1.2vw, 1.15rem); color: var(--ink-soft); }
.rotator { display: inline-grid; vertical-align: bottom; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.3em; line-height: 1.1; color: var(--ink); }
.rotator__item {
  grid-area: 1 / 1; white-space: nowrap;
  opacity: 0; transform: translateY(55%); filter: blur(6px);
  transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease);
}
.rotator__item.is-active { opacity: 1; transform: none; filter: none; }
.rotator__item.is-leaving { opacity: 0; transform: translateY(-55%); filter: blur(6px); }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.rating {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 2rem; padding: .5rem 1rem .5rem .75rem;
  border-radius: 999px; background: rgba(255, 255, 255, .6);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .88rem; color: var(--ink-soft);
}
.stars {
  letter-spacing: .12em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__visual { position: relative; justify-self: end; width: min(100%, 440px); }
.arch {
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 50px 90px -40px rgba(70, 45, 120, .45);
}
.badge {
  position: absolute; left: -58px; bottom: 56px;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(21, 18, 26, .35), inset 0 0 0 1px rgba(255, 255, 255, .8);
  transition: transform .6s var(--ease);
}
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 20s linear infinite; }
.badge__ring text { font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); }
.badge__icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
@media (hover: hover) { .badge:hover { transform: scale(1.06) rotate(-6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ukrycie elementów hero do czasu startu animacji */
.js [data-hero], .js [data-hero-title], .js [data-hero-media], .js .badge { visibility: hidden; }

@media (max-width: 860px) {
  .hero { min-height: 0; padding-bottom: 72px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; width: min(100%, 360px); margin-top: 8px; }
  .badge { left: -10px; bottom: 28px; width: 108px; height: 108px; }
  .badge__icon { width: 42px; height: 42px; }
  .scroll-hint { display: none; }
  .blob--1 { width: 80vw; height: 80vw; }
  .blob--2 { width: 60vw; height: 60vw; }
  .blob--3 { display: none; }
}

/* ---------- Rozwijane zdjęcie ---------- */
.expand { position: relative; height: 240vh; }
.expand__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.expand__media { position: absolute; inset: 0; will-change: clip-path; }
.expand__media .ph { will-change: transform; }
.expand__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 14, 20, .15), rgba(17, 14, 20, .6)); }
.expand__copy { position: relative; text-align: center; color: #fff; padding-inline: var(--gutter); }
.expand__copy h2 { font-size: clamp(3rem, 9vw, 8rem); max-width: 11ch; margin-inline: auto; }
.expand__chips {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 56px);
  display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem;
  margin: 0; padding: 0 var(--gutter); list-style: none;
}
.expand__chips li {
  padding: .55rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: .85rem;
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ---------- Manifest ---------- */
.statement { position: relative; height: 220vh; }
.statement__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.statement__text {
  margin: 0; max-width: 24ch;
  font-family: 'Instrument Serif', serif; font-size: clamp(2.1rem, 5vw, 4.6rem); line-height: 1.06; letter-spacing: -.015em;
}
.statement__text .w { overflow: visible; }
.statement__text em { color: #7E63E8; }

/* ---------- Nagłówki sekcji ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem 4rem; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head__aside { max-width: 36ch; margin: 0; color: var(--muted); }
@media (max-width: 760px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* ---------- Specjalności: karty nakładające się ---------- */
.specialties { padding-block: var(--section) calc(var(--section) * .6); }
.stack { display: grid; gap: 7vh; }
.stack__card {
  --card-ink: var(--ink);
  --card-muted: var(--ink-soft);
  position: sticky;
  top: calc(var(--nav-h) + 16px + var(--i) * 14px);
  height: min(calc(100svh - var(--nav-h) - 72px), 640px);
  display: grid; grid-template-columns: 1fr 1.1fr;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card-bg); color: var(--card-ink);
  transform-origin: 50% 0;
  box-shadow: 0 30px 70px -40px rgba(21, 18, 26, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.stack__card--dark { --card-ink: #F4F0F8; --card-muted: rgba(244, 240, 248, .7); box-shadow: 0 30px 70px -40px rgba(21, 18, 26, .6); }
.stack__text { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 56px); min-width: 0; }
.stack__top { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--card-muted); }
.stack__text h3 { margin-top: auto; font-size: clamp(2.4rem, 5vw, 4.8rem); }
.stack__text p { margin: 1.1rem 0 1.5rem; max-width: 40ch; color: var(--card-muted); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.tags li { padding: .38rem .85rem; border-radius: 999px; font-size: .8rem; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-ink) 22%, transparent); }
.stack__media { position: relative; margin: 12px; border-radius: calc(var(--radius) - 10px); overflow: hidden; }
.stack__dim { position: absolute; inset: 0; background: #0B090D; opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  .stack__card { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; top: calc(var(--nav-h) + 8px + var(--i) * 10px); height: calc(100svh - var(--nav-h) - 100px); max-height: 680px; }
  .stack__media { order: -1; margin: 10px 10px 0; }
  .stack__text { padding: 20px 22px 24px; }
  .stack__text h3 { font-size: 2.35rem; margin-top: .6rem; }
  .stack__text p { font-size: .95rem; margin: .6rem 0 1rem; }
  .tags li { font-size: .75rem; padding: .3rem .7rem; }
}

/* ---------- Promocje ---------- */
.promos { padding-bottom: var(--section); }
.promos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  min-height: 400px; padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius);
}
.promo h3 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
.promo p { margin: 0; max-width: 40ch; }
.promo .btn { margin-top: auto; }
.promo--light { background: var(--surface); color: var(--ink); }
.promo--light > p:not(.eyebrow) { color: var(--ink-soft); }
.promo--dark { background: var(--dark); color: #F4F0F8; }
.promo--dark > p:not(.eyebrow):not(.promo__big) { color: rgba(244, 240, 248, .72); }
.promo__big {
  font-family: 'Instrument Serif', serif; font-size: clamp(5.5rem, 12vw, 9.5rem); line-height: .85; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) { .promos__grid { grid-template-columns: 1fr; } .promo { min-height: 340px; } }

/* Magic UI: Magic Card (światło podążające za kursorem) */
.magic { position: relative; isolation: isolate; }
.magic::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background:
    radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(154, 130, 242, .9), rgba(238, 143, 134, .5) 30%, transparent 60%),
    var(--line);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.magic::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(183, 163, 247, .16), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
@media (hover: hover) { .magic:hover::after { opacity: 1; } }

/* Magic UI: Border Beam */
@property --beam { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.beam::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--beam), transparent 0 72%, #9A82F2 82%, #EE8F86 90%, #E3BD62 96%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam 6s linear infinite;
}
@keyframes beam { to { --beam: 360deg; } }

/* ---------- O mnie ---------- */
.about {
  margin-inline: clamp(8px, 1.5vw, 20px);
  padding-block: var(--section);
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--dark); color: #F4F0F8;
  overflow: hidden;
}
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.about__inner { height: 116%; margin-top: -8%; }
.about__copy h2 { margin-bottom: 1.75rem; }
.about__copy > p:not(.eyebrow):not(.signature) { color: rgba(244, 240, 248, .72); max-width: 48ch; margin: 0 0 1rem; }
.signature { margin: 1.5rem 0 0; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 2.2rem; line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.75rem 0 0; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.stats dt {
  font-family: 'Instrument Serif', serif; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stats dd { margin: .5rem 0 0; font-size: .85rem; color: rgba(244, 240, 248, .6); }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }
}

/* ---------- Galeria ---------- */
.gallery { position: relative; padding-top: var(--section); }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(24px, 4vh, 48px); }
.gallery__head .eyebrow { margin-bottom: 1rem; }
.link-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .6);
  font-size: .9rem; transition: background-color .3s;
}
@media (hover: hover) { .link-pill:hover { background: #fff; } }

.gallery__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__track { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); width: max-content; padding-inline: max(var(--gutter), (100vw - 1240px) / 2); will-change: transform; }
.gallery__item { margin: 0; flex: none; scroll-snap-align: center; }
.gallery__item .frame { height: min(56svh, 500px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.gallery__item--short .frame { height: min(44svh, 400px); aspect-ratio: 1 / 1; }
.gallery__item figcaption { display: flex; justify-content: space-between; margin-top: .8rem; font-size: .85rem; color: var(--muted); }
.gallery__end {
  flex: none; display: flex; flex-direction: column; justify-content: space-between;
  height: min(44svh, 400px); aspect-ratio: 4 / 5; padding: 28px;
  border-radius: var(--radius); background: var(--ink); color: #fff;
  font-family: 'Instrument Serif', serif; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.02;
}
.gallery__end em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gallery__end-icon { align-self: flex-end; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transition: transform .5s var(--ease); }
@media (hover: hover) { .gallery__end:hover .gallery__end-icon { transform: rotate(-45deg); } }
.gallery__bar { height: 2px; margin-top: clamp(24px, 4vh, 40px); background: var(--line); border-radius: 2px; overflow: hidden; }
.gallery__bar span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }

/* tryb przypięty (włączany przez JS) */
.gallery.is-pinned { padding-top: 0; }
.gallery.is-pinned .gallery__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.gallery.is-pinned .gallery__viewport { overflow: visible; scroll-snap-type: none; }

/* ---------- Opinie ---------- */
.reviews { padding-block: var(--section); overflow: hidden; }
.reviews__head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.reviews__score { margin: 1.5rem 0 0; color: var(--muted); font-size: .95rem; }
.reviews__score strong { color: var(--ink); }
.reviews__row + .reviews__row { margin-top: 16px; }
.reviews__row .marquee__track { align-items: stretch; }
.review {
  width: 370px; flex: none;
  display: flex; flex-direction: column; gap: .9rem;
  padding: 26px 28px; border-radius: 24px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.review p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.stars__off { color: #E2DCE6; -webkit-text-fill-color: #E2DCE6; }
.review footer { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.review footer strong { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.review footer small { color: var(--muted); font-size: .8rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 600; }
@media (max-width: 600px) { .review { width: 290px; padding: 22px; } }

/* ---------- Usługi (akordeon) ---------- */
.services { padding-block: calc(var(--section) * .5) var(--section); }
.services__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.services__intro { position: sticky; top: calc(var(--nav-h) + 32px); }
.services__intro h2 { margin-bottom: 1.5rem; }
.services__intro > p:not(.eyebrow) { color: var(--ink-soft); max-width: 36ch; margin: 0 0 2rem; }

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.8rem) 0;
  font-family: 'Instrument Serif', serif; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1;
  transition: color .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc__num { font-family: 'Geist', sans-serif; font-size: .75rem; letter-spacing: .1em; color: var(--muted); align-self: flex-start; margin-top: .35em; }
.acc__count { margin-left: auto; font-family: 'Geist', sans-serif; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.acc__icon {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), background-color .3s, color .3s;
}
.acc details[open] .acc__icon { transform: rotate(45deg); background: var(--ink); color: #fff; }
@media (hover: hover) { .acc summary:hover .acc__icon { box-shadow: inset 0 0 0 1px var(--ink); } }
.acc ul { list-style: none; margin: 0; padding: 0 0 1.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.acc li { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.acc li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex: none; }
.acc details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .6s var(--ease), content-visibility .6s allow-discrete;
}
.acc details[open]::details-content { block-size: auto; }

@media (max-width: 860px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .acc ul { grid-template-columns: 1fr; }
  .acc__count { display: none; }
  .acc__icon { margin-left: auto; }
}

/* ---------- Kontakt ---------- */
.contact { position: relative; overflow: hidden; padding-block: var(--section); }
.contact__glow {
  position: absolute; left: 50%; top: 4%; z-index: -1;
  width: min(90vw, 1000px); aspect-ratio: 2 / 1; translate: -50% 0;
  background: conic-gradient(from 0deg, var(--lilac), var(--peach), var(--butter), var(--lilac));
  border-radius: 50%; filter: blur(110px); opacity: .38;
  animation: spin 30s linear infinite;
}
.contact__hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact__title { font-size: clamp(3.4rem, 11vw, 10rem); line-height: .9; letter-spacing: -.035em; }
.contact__lead { margin: 1.75rem 0 2.5rem; color: var(--ink-soft); max-width: 42ch; font-size: 1.05rem; }
.contact__cta { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }

/* Magic UI: Rainbow Button */
.rainbow-wrap { position: relative; isolation: isolate; }
.btn-rainbow {
  display: inline-flex; align-items: center; gap: .8rem;
  height: 70px; padding: 0 2.2rem; border-radius: 999px;
  border: 2px solid transparent;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--grad-loop) border-box;
  background-size: 100% 100%, 200% 100%;
  color: #fff; font-size: clamp(1rem, 2.4vw, 1.15rem); font-weight: 500; white-space: nowrap;
  animation: rainbow 4s linear infinite;
  transition: transform .5s var(--ease);
}
.btn-rainbow .i { width: 22px; height: 22px; }
.rainbow-wrap::before {
  content: ""; position: absolute; z-index: -1;
  left: 12%; right: 12%; bottom: -14px; height: 55%;
  background: var(--grad-loop); background-size: 200% 100%;
  filter: blur(22px); opacity: .85;
  animation: rainbow-glow 4s linear infinite;
}
@keyframes rainbow { to { background-position: 0 0, 200% 0; } }
@keyframes rainbow-glow { to { background-position: 200% 0; } }
@media (hover: hover) { .btn-rainbow:hover { transform: translateY(-3px) scale(1.02); } }
.btn-rainbow:active { transform: scale(.97); }

.copy {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: .45rem .45rem .45rem 1.3rem; border-radius: 999px;
  background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.copy__label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.copy__num { font-size: 1.2rem; font-weight: 600; letter-spacing: .03em; font-variant-numeric: tabular-nums; user-select: all; }
.copy__btn {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 42px; padding: 0 1.05rem; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .85rem; cursor: pointer;
  transition: background-color .3s, transform .3s var(--ease);
}
.copy__btn:active { transform: scale(.95); }
.copy__btn .i { width: 16px; height: 16px; }
.copy__btn .i--check { display: none; }
.copy__btn.is-copied { background: #2E9B6A; }
.copy__btn.is-copied .i--copy { display: none; }
.copy__btn.is-copied .i--check { display: block; }

.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(64px, 8vw, 110px); }
.info { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .7); }
.info h3 { font-size: 1.9rem; margin-bottom: 1rem; }
.info p { margin: 0 0 1.25rem; color: var(--ink-soft); }
.info__link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform .4s var(--ease); }
@media (hover: hover) { .socials a:hover { transform: translateY(-3px); } }
.map { grid-column: 1 / -1; height: clamp(260px, 36vw, 420px); border-radius: var(--radius); overflow: hidden; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .copy__label { display: none; }
  .copy { padding-left: 1.1rem; }
}

/* ---------- Stopka ---------- */
.footer {
  margin-inline: clamp(8px, 1.5vw, 20px);
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
  padding-top: clamp(56px, 7vw, 96px);
  background: var(--dark); color: rgba(244, 240, 248, .66);
  overflow: hidden;
}
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; font-size: .92rem; }
.footer__top > div { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.footer__top p { margin: .75rem 0 0; max-width: 28ch; }
.footer h4 { margin: 0 0 .5rem; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.4rem; color: #fff; }
.footer a { transition: color .3s; }
@media (hover: hover) { .footer a:hover { color: #fff; } }
.brand--light { color: #fff; }
.footer__word {
  margin-top: clamp(40px, 6vw, 80px);
  font-family: 'Instrument Serif', serif; font-size: 28vw; line-height: .78; letter-spacing: -.04em;
  text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92) 10%, rgba(183, 163, 247, .25) 70%, transparent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
}
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > div:first-child { grid-column: 1 / -1; }
  .footer__bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Pływający przycisk (telefon) ---------- */
.callbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; gap: .85rem;
  padding: 7px; border-radius: 999px;
  background: rgba(21, 18, 26, .9); color: #fff;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -12px rgba(21, 18, 26, .5), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: translateY(160%);
  transition: transform .7s var(--ease);
}
.callbar.is-visible { transform: none; }
.callbar__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--ink); }
.callbar__text { display: flex; flex-direction: column; line-height: 1.2; }
.callbar__text strong { font-size: .98rem; font-weight: 600; }
.callbar__text small { font-size: .8rem; opacity: .65; letter-spacing: .03em; }
.callbar__arrow { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
@media (max-width: 760px) { .callbar { display: flex; } }

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .expand, .statement { height: auto; }
  .expand__sticky { position: relative; height: 80svh; }
  .statement__sticky { position: relative; height: auto; padding-block: var(--section); }
}
