/* === MOBILE-FIRST RESET & TOKENS === */
:root{
  --pad: clamp(16px, 4vw, 28px);
  --gap: clamp(12px, 3vw, 24px);
  --radius: 16px;
  --maxw: 1100px;
  --text: #1a1a1a;
  --muted: #6b7280;
  --surface: #ffe1f0;
}
html,body{margin:0;padding:0}
*,*::before,*::after{box-sizing:border-box}
img,video{max-width:100%;height:auto;display:block}
body{font: 400 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:var(--text); background:var(--surface)}
h1{font-size:clamp(28px, 6vw, 44px); line-height:1.1; margin:0 0 .6em}
h2{font-size:clamp(22px, 4.5vw, 32px); line-height:1.2; margin:0 0 .6em}
h3{font-size:clamp(18px, 3.8vw, 24px); line-height:1.25; margin:0 0 .5em}
p{margin:0 0 1em}

/* Improved focus states for better accessibility */
.btn:focus, 
input:focus, 
textarea:focus, 
select:focus,
button:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Better performance for animations */
.card.service,
.gallery img,
.ts-item {
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Prevent layout shift during image loading */
.gallery img,
.hero-img {
  aspect-ratio: 1/1;
  object-fit: cover;
}

.hero-img {
  aspect-ratio: auto;
}

/* Improved mobile typography */
@media (max-width: 768px) {
  body { font-size: 15px; line-height: 1.5; }
  h1 { line-height: 1.1; }
  h2 { line-height: 1.2; }
  h3 { line-height: 1.25; }
}

/* === LAYOUT UTILS === */
.container{max-width:var(--maxw); margin-inline:auto; padding-inline:var(--pad)}
.section{padding-block: clamp(28px, 8vw, 80px)}
.grid{display:grid; gap:var(--gap)}
.grid-1{grid-template-columns:1fr}
.grid-2{grid-template-columns:1fr}
.grid-3{grid-template-columns:1fr}
@media (min-width: 768px){
  .grid-2{grid-template-columns: repeat(2, 1fr)}
  .grid-3{grid-template-columns: repeat(3, 1fr)}
}
.auto-fit{grid-template-columns: repeat(auto-fit, minmax(min(280px,100%), 1fr))}

.card{border:1px solid #eee; border-radius:var(--radius); padding:clamp(14px,3.5vw,24px); background:#ffe1f0; box-shadow:0 6px 18px rgba(0,0,0,.06)}
.hero{display:grid; gap:var(--gap); align-items:center}
@media (min-width: 992px){ .hero{grid-template-columns: 1.15fr .85fr} }

/* Nawigacja (hamburger) */
.navbar{position:sticky; top:0; z-index:40; background:#fff; border-bottom:1px solid #eee}
.nav-row{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px var(--pad)}
#mobileNav[hidden]{display:none}
#mobileNav{position:fixed; inset:64px 0 0; background:#fff; padding:var(--pad); display:grid; gap:12px; overflow:auto; box-shadow:0 12px 30px rgba(0,0,0,.12)}
@media (min-width: 992px){
  #navToggle{display:none}
  #mobileNav{all:unset; display:flex; gap:18px}
}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 18px; border-radius:999px; border:1px solid #111; background:#111; color:#fff; text-decoration:none}
.btn.secondary{background:#fff; color:#111; border-color:#ddd}
.cta-stick{position:fixed; left:var(--pad); right:var(--pad); bottom:16px; z-index:50}
@media (min-width: 992px){ .cta-stick{position:static} }

/* Formularze */
.input{width:100%; padding:14px 16px; border:1px solid #e5e7eb; border-radius:12px; background:#ffe1f0}
.input:focus{outline:none; border-color:#111; box-shadow:0 0 0 4px rgba(0,0,0,.06)}
label{display:block; font-weight:600; margin:12px 0 6px}

.figure{border-radius:var(--radius); overflow:hidden}
.figure > img{width:100%; height:auto; display:block}

.table-wrap{overflow:auto}
code, pre{max-width:100%; white-space:pre-wrap; word-break:break-word}

.testi-track{display:flex; gap:var(--gap); overflow:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; padding-bottom:4px}
.testi-card{flex:0 0 85%; scroll-snap-align:start}
@media (min-width:768px){ .testi-card{flex:0 0 45%} }

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important}
}
.service-modal,
.service-modal:hover,
.service-modal:active,
.service-modal:focus {
  background: #ffe1f0 !important;
  border: 2.5px solid #e93b81 !important;
  box-shadow: 0 48px 120px 0 rgba(233,59,129,.32), 0 12px 48px rgba(0,0,0,.28) !important;
  transform: translate(-50%, -50%) scale(1) !important;
  transition: none !important;
  pointer-events: auto;
}
.service-modal,
.service-modal:hover,
.service-modal:active,
.service-modal:focus {
  /* Całkowicie wyłącz efekt hover/active/focus dla modala */
  transform: translate(-50%, -50%) scale(1) !important;
  box-shadow: 0 48px 120px 0 rgba(233,59,129,.32), 0 12px 48px rgba(0,0,0,.28) !important;
  transition: none !important;
  pointer-events: auto;
}
/* Rozmycie krawędzi Malena.png */
.hero-img {
  filter: drop-shadow(0 0 18px #ffb6e6) drop-shadow(0 0 24px #ffb347);
  mask: 
    radial-gradient(ellipse at center, black 85%, transparent 97%),
    linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask: 
    radial-gradient(ellipse at center, black 85%, transparent 97%),
    linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  opacity: 0.85;
}

/* Specyficzna reguła dla hero-img z reveal-show - wymusza przezroczystość */
.hero-img.reveal-show {
  opacity: 0.85 !important;
}
.service-modal {
  position: fixed !important;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 52vw;
  max-width: 600px;
  min-width: 320px;
  z-index: 1000;
  box-shadow: 0 48px 120px 0 rgba(233,59,129,.32), 0 12px 48px rgba(0,0,0,.28);
  background: var(--surface);
  border: 2.5px solid var(--brand);
  opacity: 0;
  animation: servicePop .55s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes servicePop {
  0%   { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
  60%  { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
  80%  { transform: translate(-50%, -50%) scale(0.98); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.service-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(233,59,129,.10);
  z-index: 999;
  animation: fadeInBg .32s;
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
:root {
  --bg: #fde2e9;
  --surface: #ffe1f0;
  --muted: #9d65d1;
  --text: #3b0a2a;
  --brand: #e93b81;
  --brand-2: #f78fb3;
  --danger: #f2416c;
  --radius: 18px;
  --maxw: 1200px;
  --shadow: 0 6px 20px rgba(0,0,0,.15);
}

@media (prefers-color-scheme: light){
  :root{ --bg:#f6f7fb; --surface:#ffe1f0; --text:#12141a; --muted:#5b6573; }
  header.nav{background:linear-gradient(90deg, rgba(255,215,0,.30), rgba(255,165,0,.22));backdrop-filter:saturate(180%) blur(14px);}
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
    background: linear-gradient(180deg, #ffe0b3 0%, #ffd6ec 100%);
  color:var(--text);
  font:16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, "Noto Sans", Arial;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
a{color:inherit}
img{max-width:100%;display:block}
.container{max-width:var(--maxw);margin-inline:auto;padding:0 20px}
.btn{display:inline-flex;align-items:center;gap:.6rem;border:1px solid transparent;padding:.9rem 1.1rem;border-radius:12px;font-weight:600;cursor:pointer;text-decoration:none;transition:.2s ease;}
.btn.primary{background:linear-gradient(90deg,var(--brand), var(--brand-2));color:#06220e;}
.btn.primary:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.btn.ghost{border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.06)}
.chip{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;color:#0d2015;background:rgba(124,243,160,.18);border:1px solid rgba(124,243,160,.35);padding:.35rem .6rem;border-radius:999px;text-shadow: 0 1px 2px rgba(0,0,0,0.1);}

/* Header */
header.nav{
  position:sticky; top:0; z-index:50;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:linear-gradient(90deg, rgba(255,215,0,.32), rgba(255,165,0,.24)); /* półprzezroczysty złoty */
  backdrop-filter:saturate(160%) blur(10px);
  box-shadow:0 2px 6px rgba(0,0,0,.12);
  min-height:64px;
  /* usunięto animację cienia i min-height przy scrollu */
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
.logo{display:flex;align-items:center;gap:.7rem;font-weight:800;letter-spacing:.3px;text-shadow: 0 1px 3px rgba(0,0,0,0.15);}
.logo .mark{width:34px;height:34px;border-radius:12px;background:conic-gradient(from 210deg at 50% 50%, var(--brand), var(--brand-2) 50%, transparent 60%);position:relative;}
.logo .mark:after{content:"";position:absolute;inset:5px;border-radius:10px;background:var(--surface);}
nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0}
nav a{opacity:.86;text-decoration:none;font-weight:600;text-shadow: 0 1px 2px rgba(0,0,0,0.08);}
nav a:hover{opacity:1}
.nav-cta{display:flex;align-items:center;gap:10px}
.burger{display:none;}

/* Hero */
.hero{position:relative;padding: clamp(64px, 10vw, 90px) 0 clamp(40px, 8vw, 70px);}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.hero h1{font-size:clamp(1.9rem, 3.5vw, 3.2rem);line-height:1.1;margin:.3rem 0 1rem;text-shadow: 0 2px 4px rgba(0,0,0,0.15);}
.hero p{font-size:1.08rem;color:var(--muted);max-width:60ch;margin:0 0 1.4rem;text-shadow: 0 1px 3px rgba(0,0,0,0.12);}
.hero .cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:.6rem}
.stats{display:flex;gap:18px;flex-wrap:wrap;margin-top:18px;max-width:900px;margin-inline:auto}
.stat{background:var(--surface);border:1px solid rgba(255,255,255,.06);padding:12px 14px;border-radius:14px;min-width:140px;text-align:center;box-shadow:var(--shadow)}
.stat b{font-size:1.3rem;text-shadow: 0 1px 2px rgba(0,0,0,0.1);}
.hero-visual{position:relative;max-width:720px;margin-inline:auto}

/* Badges row */
.badges{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.badge{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);padding:.45rem .7rem;border-radius:999px;font-size:.9rem;text-shadow: 0 1px 2px rgba(0,0,0,0.1);}

/* Sections */
section{padding:clamp(48px, 8vw, 72px) 0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:28px}
.eyebrow{letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:800;font-size:.85rem;text-shadow: 0 1px 2px rgba(0,0,0,0.1);}
h2{font-size:clamp(1.4rem,2.6vw,2.25rem);margin:.5rem 0 0;text-shadow: 0 2px 4px rgba(0,0,0,0.12);}
.lead{color:var(--muted);max-width:70ch;text-shadow: 0 1px 2px rgba(0,0,0,0.08);}

/* Cards grid */
.grid{display:grid;gap: clamp(10px, 3vw, 16px);}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}
.grid {
  max-width: 900px;
  margin-inline: auto;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .grid.cols-3{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
  nav ul{display:none}
  .burger{display:inline-flex}
  .grid.cols-3, .grid.cols-2{grid-template-columns:1fr}
}

/* Card */
.card{background:#ffe1f0;border:1px solid rgba(255,255,255,.06);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.card h3{margin:.2rem 0 .4rem}
.card p{color:var(--muted)}

/* Services */
.service{display:flex;gap:14px}
.card.service {
  transition: transform .38s cubic-bezier(.22,.61,.36,1), box-shadow .32s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.card.service:hover {
  transform: scale(1.07) translateY(-8px);
  z-index: 2;
  box-shadow: 0 18px 38px rgba(0,0,0,.16);
}

.service-modal:hover,
.service-modal:active,
.service-modal:focus {
  /* Całkowicie wyłącz efekt hover/active/focus dla modala */
  transform: translate(-50%, -50%) scale(1) !important;
  box-shadow: 0 48px 120px 0 rgba(233,59,129,.32), 0 12px 48px rgba(0,0,0,.28) !important;
  transition: none !important;
}

.service-modal:hover {
  /* Wyłącz efekt hover dla modala */
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 48px 120px 0 rgba(233,59,129,.32), 0 12px 48px rgba(0,0,0,.28);
}
.icon{flex:0 0 44px;height:44px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(120deg, rgba(60,120,80,.4), rgba(50,100,150,.4));border:1px solid rgba(255,255,255,.15)}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(6, 1fr);gap:10px}
.gallery img{border-radius:12px;border:1px solid rgba(255,255,255,.08);aspect-ratio:1/1;object-fit:cover}

/* Efekt wyskakiwania zdjęć w galerii */
.gallery img {
  transition: transform .38s cubic-bezier(.22,.61,.36,1), box-shadow .32s cubic-bezier(.22,.61,.36,1);
  transform-origin: center center;
  will-change: transform;
}
.gallery img:hover {
  transform: scale(1.5) translateY(-12px);
  z-index: 3;
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
}
@media (max-width: 980px){.gallery{grid-template-columns:repeat(3,1fr)}}
@media (max-width: 640px){.gallery{grid-template-columns:repeat(2,1fr)}}

/* Testimonials */
.testimonial{display:flex;gap:12px}
.avatar{width:44px;height:44px;border-radius:999px;background:linear-gradient(90deg, var(--brand), var(--brand-2));border:1px solid rgba(255,255,255,.2)}
.stars{letter-spacing:.1rem}

/* Services: hover effect (jak testimonials) */

/* FAQ */
details.faq{background:var(--surface);border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:14px}
details.faq + details.faq{margin-top:10px}
details[open]{outline:1px solid rgba(124,243,160,.35)}
details.faq summary{text-shadow: 0 1px 2px rgba(0,0,0,0.08);}

/* FAQ: płynne rozwijanie */
details.faq {
  overflow: hidden;
  transition: box-shadow .2s, outline .2s;
}
details.faq summary {
  cursor: pointer;
}
.faq-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: scaleY(0.7) translateY(12px);
  transition:
    max-height 4.2s cubic-bezier(.22,.61,.36,1),
    opacity 2.8s,
    transform 4.2s cubic-bezier(.22,.61,.36,1);
}
details[open] .faq-content {
  max-height: 400px;
  opacity: 1;
  transform: scaleY(1) translateY(0);
}

/* Contact */
form{display:grid;gap:clamp(10px, 3vw, 14px)}
input, textarea, select{
  width:100%;padding:.85rem 1rem;border-radius:12px;
  border:1px solid rgba(233,59,129,.35);
  background:rgba(255,255,255,.55);
  color:var(--text);outline:none;
  transition:border-color .2s, box-shadow .2s, background .2s;
  font-size:16px; /* iOS anti-zoom */
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
input:hover, textarea:hover, select:hover{ border-color: rgba(233,59,129,.5); }
input:focus, textarea:focus, select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(233,59,129,.22);
  background:#ffe1f0;
}
input::placeholder, textarea::placeholder{ color:#9aa3af; }
.form-row{display:grid;gap:clamp(8px, 2vw, 12px);grid-template-columns:1fr 1fr}
@media (max-width: 640px){.form-row{grid-template-columns:1fr}}
.notice{font-size:.9rem;color:var(--muted);text-shadow: 0 1px 2px rgba(0,0,0,0.08);}
.success{display:none;margin-top:8px;color:var(--brand);font-weight:700;text-shadow: 0 1px 2px rgba(0,0,0,0.1);}
.error{display:none;margin-top:8px;color:var(--danger);font-weight:700;text-shadow: 0 1px 2px rgba(0,0,0,0.1);}

/* Footer */
footer{border-top:1px solid rgba(255,255,255,.08);padding:40px 0;color:var(--muted);text-shadow: 0 1px 2px rgba(0,0,0,0.08);}
.foot{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* Utilities */
.hide{display:none!important}
.center{display:grid;place-items:center}
.surface{background:var(--surface);border:1px solid rgba(255,255,255,.06);border-radius:var(--radius);padding:16px}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{animation:none!important;transition:none!important}
}

/* --- Scroll reveal (bezpieczny) --- */
/* Domyślnie widoczne – nic nie ukrywamy, jeśli JS nie działa */
.reveal { opacity: 1; transform: none; }

/* Ukrywanie dopiero, gdy JS działa (.js na <html>) */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

/* Kierunki */
.js .reveal[data-reveal="up"]    { transform: translate3d(0, 18px, 0); }
.js .reveal[data-reveal="down"]  { transform: translate3d(0, -18px, 0); }
.js .reveal[data-reveal="left"]  { transform: translate3d(18px, 0, 0); }
.js .reveal[data-reveal="right"] { transform: translate3d(-18px, 0, 0); }

/* Po pokazaniu */
.reveal-show { opacity: 1 !important; transform: none; }

/* Parallax target */
.hero-parallax{will-change: transform; transition: transform .2s linear;}

.lang-switch {
  display: flex;
  gap: 8px;
}
.lang-switch button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: transform .2s;
}
.lang-switch button:hover {
  transform: scale(1.1);
}
.lang-switch img {
  width: 24px;
  height: 16px;
  display: block;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* --- Testimonials: carousel (v2) --- */
.testimonial-carousel{
  position: relative;
  margin-top: 8px;
}

/* strzałki NA ZEWNĄTRZ toru */
.ts-arrow{
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #2b0a1f;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  font-size: 26px; line-height: 1;
  z-index: 5;
}
.ts-arrow.left  { left: -22px; }   /* poza kartami */
.ts-arrow.right { right: -22px; }
.ts-arrow[disabled]{ opacity:.45; cursor:not-allowed; box-shadow:none; }

/* viewport przewijany */
.ts-viewport{
  overflow-x: hidden;
  overflow-y: visible;
  padding: 8px 0 20px;       /* miejsce na cień i hover */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ts-viewport::-webkit-scrollbar{ height: 0; }

/* tor z elementami */
.ts-track{
  display: flex;
  gap: 16px;
  will-change: transform;
}

/* karta w torze – stała szerokość na krok przewijania */
.ts-item{
  flex: 0 0 clamp(280px, 32vw, 420px);
  scroll-snap-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
    opacity: 0;
    transform: translateY(30px) scale(1);
    transition: opacity .7s, transform .7s cubic-bezier(.22,.61,.36,1);
}
.ts-item.reveal-show:hover{
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
}
  .ts-item:hover {
    transform: translateY(-8px) scale(1.06);
    box-shadow: 0 18px 38px rgba(0,0,0,.16);
    transition: transform .32s cubic-bezier(.22,.61,.36,1), box-shadow .32s cubic-bezier(.22,.61,.36,1);
    z-index: 2;
  }
  .ts-item.reveal-show {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
/* Animacja ikon w Services */
.service .icon {
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.service.reveal-show:hover .icon {
  transform: scale(1.18) rotate(-8deg);
}
/* Parallax na zdjęciach w galerii */
.gallery img {
  transition: transform .38s cubic-bezier(.22,.61,.36,1), box-shadow .32s cubic-bezier(.22,.61,.36,1);
  transform-origin: center center;
  will-change: transform;
}
.gallery img:hover {
  transform: scale(1.5) translateY(-12px);
  z-index: 3;
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
}
/* Animacja CTA */
.btn.primary {
  position: relative;
  overflow: hidden;
}
.btn.primary::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0; bottom: 0;
  width: 140%;
  background: linear-gradient(90deg,rgba(233,59,129,.18),rgba(247,143,179,.18));
  z-index: 0;
  transition: left .7s cubic-bezier(.22,.61,.36,1);
}
.btn.primary:hover::after {
  left: 0;
}
.btn.primary span, .btn.primary i {
  position: relative;
  z-index: 1;
}
/* Reveal z opóźnieniem i różnymi kierunkami */
.reveal[data-reveal][style*="--d"] {
  transition-delay: var(--d, .15s);
}

@media (max-width: 640px){
  .ts-item{ flex-basis: 88%; }    /* 1 karta na ekran na mobile */
}

/* Social sidebar */
.social-bar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
  pointer-events: auto;
}
.social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #ffe1f0;
  border: 2px solid #e93b81;
  border-radius: 14px 0 0 14px;
  color: #e93b81;
  font-size: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
  transition: background .2s, color .2s, border-color .2s;
  margin-right: 0;
  text-decoration: none;
}
.social-bar a:hover {
  background: #e93b81;
  color: #fff;
  border-color: #e93b81;
}
.kontakt-center {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* === MOBILE FIXES (EXTRA TUNING) === */
@media (max-width:700px){
  html,body{overflow-x:hidden}
  .container{padding:0 12px}
  .hero{padding:56px 0 40px}
  .hero-grid{gap:28px;grid-template-columns:1fr!important}
  .hero-visual{margin-left:0!important;text-align:center;max-width:90%!important;margin-inline:auto!important}
  .hero-img{max-width:80%!important;height:auto!important;margin:0 auto!important;display:block!important}
  .hero h1{font-size:clamp(1.9rem,8.2vw,2.3rem);max-width:90%;margin-left:auto;margin-right:auto}
  .hero p{font-size:1rem;max-width:85%;margin-left:auto;margin-right:auto}
  .grid.cols-3,.grid.cols-2{grid-template-columns:1fr}
  .gallery{grid-template-columns:repeat(2,1fr);gap:8px}
  .gallery img{transform:none!important;box-shadow:0 4px 12px rgba(0,0,0,.08)}
  .gallery img:hover{transform:none!important;box-shadow:0 4px 12px rgba(0,0,0,.1)}
  .stat{min-width:48%;flex:1 1 48%;padding:10px 12px;max-width:none}
  .social-bar{position:fixed;bottom:10px;top:auto;right:10px;left:10px;flex-direction:row;justify-content:center;transform:none;gap:10px;padding:6px;background:rgba(255,225,240,.75);backdrop-filter:blur(8px);border:1px solid #e93b81;border-radius:16px;box-shadow:0 6px 20px rgba(0,0,0,.18)}
  .social-bar a{width:42px;height:42px;font-size:1.4rem;border-radius:12px;border:1px solid #e93b81;box-shadow:none;min-height:44px;min-width:44px}
  nav ul{gap:14px}
  .btn{padding:12px 16px;font-size:.95rem;min-height:44px;min-width:44px}
  .badge{font-size:.75rem}
  .ts-arrow{width:36px;height:36px;font-size:20px;min-height:44px;min-width:44px;top:75%}
  .ts-arrow.left{left:-14px}
  .ts-arrow.right{right:-14px}
  .ts-item{flex:0 0 86%;}
  .service{align-items:flex-start}
  input,textarea,select{font-size:16px;padding:.75rem .85rem;min-height:44px}
}

@media (max-width:420px){
  .hero h1{font-size:clamp(1.7rem,8.5vw,2.05rem)}
  .stat{min-width:calc(50% - 9px);flex:1 1 calc(50% - 9px);max-width:calc(50% - 9px);}
  .social-bar{gap:6px;padding:6px;bottom:8px;max-height:56px}
  .social-bar a{width:38px;height:38px;font-size:1.25rem;min-height:40px;min-width:40px}
  .gallery{grid-template-columns:repeat(2,1fr)}
  .ts-item{flex:0 0 92%;}
}

/* === MODAL GALERII JEDZENIA === */
.food-modal {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.food-modal.show {
  display: flex !important;
}

.food-modal-content {
  background: linear-gradient(180deg, #ffe0b3 0%, #ffd6ec 100%);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.food-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #ffe0b3 0%, #ffd6ec 100%);
  border-radius: 20px 20px 0 0;
  z-index: 10001;
}

.food-modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.8rem;
  font-weight: 700;
}

.food-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.food-modal-close:hover {
  background: #f5f5f5;
  color: #e93b81;
  transform: scale(1.1);
}

.food-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 30px;
}

.food-gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.food-gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(233, 59, 129, 0.3);
}

/* Responsywność dla modalnego okna */
@media (max-width: 768px) {
  .food-modal {
    padding: 10px;
  }
  
  .food-modal-content {
    max-height: 95vh;
    border-radius: 15px;
  }
  
  .food-modal-header {
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
  }
  
  .food-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .food-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
  }
  
  .food-gallery-grid img {
    height: 150px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .food-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
  }
  
  .food-gallery-grid img {
    height: 120px;
  }
  
  .food-modal-header {
    padding: 12px 15px;
  }
  
  .food-modal-header h2 {
    font-size: 1.3rem;
  }
}

/* === MODAL GALERII STEP2FIT === */
.step2fit-modal {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.step2fit-modal.show {
  display: flex !important;
}

.step2fit-modal-content {
  background: linear-gradient(180deg, #ffe0b3 0%, #ffd6ec 100%);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step2fit-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #ffe0b3 0%, #ffd6ec 100%);
  border-radius: 20px 20px 0 0;
  z-index: 10001;
}

.step2fit-modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.8rem;
  font-weight: 700;
}

.step2fit-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.step2fit-modal-close:hover {
  background: #f5f5f5;
  color: #e93b81;
  transform: scale(1.1);
}

.step2fit-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 30px;
}

.step2fit-gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step2fit-gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(233, 59, 129, 0.3);
}

/* Responsywność dla modalnego okna step2fit */
@media (max-width: 768px) {
  .step2fit-modal {
    padding: 10px;
  }
  
  .step2fit-modal-content {
    max-height: 95vh;
    border-radius: 15px;
  }
  
  .step2fit-modal-header {
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
  }
  
  .step2fit-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .step2fit-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
  }
  
  .step2fit-gallery-grid img {
    height: 150px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .step2fit-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
  }
  
  .step2fit-gallery-grid img {
    height: 120px;
  }
  
  .step2fit-modal-header {
    padding: 12px 15px;
  }
  
  .step2fit-modal-header h2 {
    font-size: 1.3rem;
  }
}

/* === MODAL GALERII FOLLOWUP === */
.followup-modal {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.followup-modal.show {
  display: flex !important;
}

.followup-modal-content {
  background: linear-gradient(180deg, #ffe0b3 0%, #ffd6ec 100%);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.followup-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #ffe0b3 0%, #ffd6ec 100%);
  border-radius: 20px 20px 0 0;
  z-index: 10001;
}

.followup-modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.8rem;
  font-weight: 700;
}

.followup-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.followup-modal-close:hover {
  background: #f5f5f5;
  color: #e93b81;
  transform: scale(1.1);
}

.followup-gallery-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.followup-gallery-grid img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsywność dla modalnego okna followup */
@media (max-width: 768px) {
  .followup-modal {
    padding: 10px;
  }
  
  .followup-modal-content {
    max-height: 95vh;
    border-radius: 15px;
    max-width: 90%;
  }
  
  .followup-modal-header {
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
  }
  
  .followup-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .followup-gallery-grid {
    padding: 20px;
  }
  
  .followup-gallery-grid img {
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .followup-gallery-grid {
    padding: 15px;
  }
  
  .followup-modal-header {
    padding: 12px 15px;
  }
  
  .followup-modal-header h2 {
    font-size: 1.3rem;
  }
}

/* === MODAL GALERII PROGRESS === */
.progress-modal {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.progress-modal.show {
  display: flex !important;
}

.progress-modal-content {
  background: linear-gradient(180deg, #ffe0b3 0%, #ffd6ec 100%);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.progress-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #ffe0b3 0%, #ffd6ec 100%);
  border-radius: 20px 20px 0 0;
  z-index: 10001;
}

.progress-modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.8rem;
  font-weight: 700;
}

.progress-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.progress-modal-close:hover {
  background: #f5f5f5;
  color: #e93b81;
  transform: scale(1.1);
}

.progress-gallery-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.progress-gallery-grid img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsywność dla modalnego okna progress */
@media (max-width: 768px) {
  .progress-modal {
    padding: 10px;
  }
  
  .progress-modal-content {
    max-height: 95vh;
    border-radius: 15px;
    max-width: 90%;
  }
  
  .progress-modal-header {
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
  }
  
  .progress-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .progress-gallery-grid {
    padding: 20px;
  }
  
  .progress-gallery-grid img {
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .progress-gallery-grid {
    padding: 15px;
  }
  
  .progress-modal-header {
    padding: 12px 15px;
  }
  
  .progress-modal-header h2 {
    font-size: 1.3rem;
  }
}
