/* ============================================================
   KlaudiNails — komponenty sekcji
   ============================================================ */

/* ---------- HERO (tekst + zdjęcie w ramce) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--rose-wash) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 110%, #E7F0FF 0%, transparent 60%),
    var(--cream);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) 28px clamp(56px, 8vw, 108px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { max-width: 46ch; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-photo-wrap { position: relative; width: min(100%, 440px); }
.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  pointer-events: none;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-cta, .hero-tags { justify-content: center; }
}

/* ---------- nagłówek sekcji ---------- */
.sec-head { max-width: 640px; margin: 0 auto 56px; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-head h2 { margin: 16px 0 14px; }

/* ---------- USŁUGI ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  position: relative;
  overflow: hidden;
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--rose-wash), transparent);
  opacity: 0;
  transition: .4s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--rose-soft); }
.svc:hover::before { opacity: .5; }
.svc > * { position: relative; }
.svc-ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--rose-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--rose-deep);
}
.svc-ico svg { width: 26px; height: 26px; }
.svc h3 { margin-bottom: 10px; }
.svc p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 880px) { .services { grid-template-columns: 1fr; } }

/* ---------- O MNIE ---------- */
.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-img { position: relative; }
.about-img .ph { box-shadow: var(--shadow); }
.about-sign { font-family: 'Parisienne', cursive; font-size: 2rem; color: var(--rose-deep); }
.stats { display: flex; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.stat .n { font-family: 'Jost', sans-serif; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.stat .l { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } }

/* ---------- GALERIA / TYPY ---------- */
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.type {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--paper);
}
.type .ph { border-radius: 0; }
.type-body { padding: 24px 26px; }
.type-body h3 { margin-bottom: 8px; }
.type-body p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.type-tag { position: absolute; top: 16px; left: 16px; z-index: 2; }
@media (max-width: 680px) { .types { grid-template-columns: 1fr; } }

/* ---------- masonry ---------- */
.masonry { columns: 4; column-gap: 18px; margin-top: 48px; }
.masonry .shot {
  display: block;
  margin-bottom: 18px;
  border-radius: var(--r);
  overflow: hidden;
  break-inside: avoid;
  cursor: zoom-in;
}
.masonry img { width: 100%; display: block; border-radius: var(--r); transition: transform .4s var(--ease); }
.masonry .shot:hover img { transform: scale(1.03); }
@media (max-width: 980px) { .masonry { columns: 3; } }
@media (max-width: 680px) { .masonry { columns: 2; } }

/* ---------- CENNIK ---------- */
.price-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 56px;
  max-width: 920px;
  margin: 0 auto;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.price-row .name { font-family: 'Jost', sans-serif; font-size: 1.08rem; color: var(--ink); }
.price-row .desc { font-size: .84rem; color: var(--ink-soft); }
.price-row .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.price-row .val { font-family: 'Jost', sans-serif; font-size: 1.1rem; color: var(--gold); white-space: nowrap; }
.price-note { text-align: center; margin-top: 34px; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 760px) { .price-wrap { grid-template-columns: 1fr; gap: 0; } }

/* ---------- OPINIE ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stars { color: var(--gold); letter-spacing: 3px; font-size: 1rem; }
.review p { font-size: .96rem; color: var(--ink); font-style: italic; margin: 0; line-height: 1.6; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--rose-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-deep);
  font-family: 'Jost', sans-serif;
  font-weight: 600;
}
.review .who b { font-family: 'Jost', sans-serif; font-weight: 500; font-size: .95rem; display: block; }
.review .who span { font-size: .78rem; color: var(--ink-soft); }
@media (max-width: 880px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- FEED IG/FB ---------- */
.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.ig-handle { display: flex; align-items: center; gap: 14px; }
.ig-av {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 30deg, var(--gold), var(--rose), var(--rose-deep), var(--gold));
}
.ig-av span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Parisienne', cursive;
  font-size: 1.4rem;
  color: var(--ink);
}
.ig-handle b { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 1.05rem; }
.ig-handle span.sub { font-size: .84rem; color: var(--ink-soft); }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ig-grid .ph { aspect-ratio: 1/1; border-radius: var(--r-sm); cursor: pointer; transition: transform .4s var(--ease); }
.ig-grid .ph:hover { transform: scale(1.03); }
@media (max-width: 980px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- KONTAKT ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.ci-row { display: flex; gap: 16px; align-items: flex-start; }
.ci-ico {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--rose-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-deep);
}
.ci-ico svg { width: 21px; height: 21px; }
.ci-row b { font-family: 'Jost', sans-serif; font-weight: 500; display: block; margin-bottom: 2px; }
.ci-row span { color: var(--ink-soft); font-size: .95rem; }
.ci-row a { color: var(--rose-deep); }
.map { border-radius: var(--r-lg); overflow: hidden; min-height: 340px; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: saturate(.9); }
.hours { margin-top: 6px; }
.hours .h-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.hours .h-row span:first-child { color: var(--ink); }
.hours .h-row span:last-child { color: var(--ink-soft); }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

/* ---------- BRWI: porównywarka przed/po (web component) ---------- */
.ba-grid { max-width: 540px; margin: 0 auto; }
.ba-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-3);
}
img-comparison-slider {
  --divider-width: 2px;
  --divider-color: #fff;
  --default-handle-opacity: 1;
  width: 100%;
  height: 100%;
  display: block;
  visibility: hidden; /* odsłaniane po zdefiniowaniu custom elementu */
}
img-comparison-slider.rendered { visibility: visible; }
img-comparison-slider img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-knob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-deep);
  font-size: 1rem;
}
.ba-badge {
  position: absolute;
  bottom: 14px;
  z-index: 3;
  padding: 5px 13px;
  border-radius: 100px;
  font-family: 'Jost', sans-serif;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.ba-badge.before { left: 14px; }
.ba-badge.after { right: 14px; }

/* ---------- MESSENGER (mock, native <dialog>-less popover panel) ---------- */
.msgr { position: fixed; right: 22px; bottom: 22px; z-index: 90; }
.msgr-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--rose-deep), var(--gold));
  box-shadow: 0 14px 30px -8px rgba(120, 86, 72, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s var(--ease);
}
.msgr-btn:hover { transform: scale(1.07); }
.msgr-btn svg { width: 30px; height: 30px; fill: #fff; }
.msgr-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 330px;
  max-width: 84vw;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(14px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transition: .35s var(--ease);
}
.msgr-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.msgr-top {
  background: linear-gradient(135deg, var(--rose-deep), var(--gold));
  color: #fff;
  padding: 18px 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.msgr-top .ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Parisienne', cursive;
  font-size: 1.2rem;
}
.msgr-top b { font-family: 'Jost', sans-serif; font-weight: 500; display: block; font-size: 1rem; }
.msgr-top span { font-size: .76rem; opacity: .9; }
.msgr-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.3rem; opacity: .85; line-height: 1; }
.msgr-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.msgr-bubble {
  background: #fff;
  border: 1px solid var(--line);
  padding: 11px 15px;
  border-radius: 16px 16px 16px 4px;
  font-size: .9rem;
  color: var(--ink);
  max-width: 85%;
}
.msgr-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.msgr-foot a {
  flex: 1;
  text-align: center;
  background: #0866FF;
  color: #fff;
  border-radius: 100px;
  padding: 11px;
  font-family: 'Jost', sans-serif;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .03em;
}
.msgr-foot a.ig { background: linear-gradient(135deg, #feda75, #d62976, #962fbf); }

/* Galerię/lightbox obsługuje PhotoSwipe (assets/vendor/photoswipe/photoswipe.css). */

/* ---------- baner zgody na cookies ---------- */
.kn-consent {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 95;
  width: min(420px, calc(100% - 44px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
}
.kn-consent[hidden] { display: none; }
.kn-consent-text { font-size: .9rem; color: var(--ink); margin: 0 0 14px; line-height: 1.5; }
.kn-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kn-consent-actions .btn { padding: 10px 20px; font-size: .8rem; }
@media (max-width: 520px) {
  .kn-consent { left: 12px; bottom: 12px; width: calc(100% - 24px); }
  .msgr { bottom: 96px; } /* nad banerem, gdy widoczny */
}
