/* ============================================================
   MarkWeb  ·  home.css
   Sekcje strony głównej: hero, klienci, liczby, o nas, oferta,
   proces, hosting (panel), realizacje, opinie, kontakt.
   ============================================================ */

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 1.5rem);
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero .glow-violet { width: 620px; height: 620px; top: -220px; left: -160px; }
.hero .glow-blue   { width: 540px; height: 540px; bottom: -200px; right: -120px; }
.hero .glow-pink   { width: 380px; height: 380px; top: 30%; left: 46%; }

html.js .hero .glow { animation: drift 20s ease-in-out infinite alternate; }
html.js .hero .glow-blue { animation-delay: -7s; }
html.js .hero .glow-pink { animation-delay: -13s; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 800;
}

.hero-copy > p {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-3);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* Wejście hero (animacja ładowania, nie scroll) */
html.js .hero-copy > *, html.js .hero-visual {
  opacity: 0;
  transform: translateY(34px);
  animation: hero-in 1s var(--ease-out) forwards;
}

html.js .hero-copy h1 { animation-delay: 0.08s; }
html.js .hero-copy > p { animation-delay: 0.2s; }
html.js .hero-copy .hero-actions { animation-delay: 0.32s; }
html.js .hero-visual { animation-delay: 0.3s; }

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Wizual hero: podgląd realizacji + pływające karty --- */

.hero-visual {
  position: relative;
  perspective: 1000px;
}

.hero-shot {
  position: relative;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
}

html.js .hero-shot { animation: floaty 7s ease-in-out infinite; animation-delay: 1.2s; }

/* Pasek przeglądarki */
.browser-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fbfbfe;
}

.browser-dots { display: flex; gap: 5px; }

.browser-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #e3e4f0;
}

.browser-url {
  flex: 1;
  max-width: 240px;
  padding: 0.28em 0.9em;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-3);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mini-strona (autorska miniatura projektu, motyw ciepły: palarnia kawy) */
.mini {
  --m-bg: #fff8f1;
  --m-ink: #2d1c12;
  --m-mut: #8a705d;
  --m-ac: #c46a2d;
  background: var(--m-bg);
  padding: 1.3rem 1.5rem 1.6rem;
  color: var(--m-ink);
}

.mini-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--m-mut);
}

.mini-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--m-ink);
  margin-right: auto;
}

.mini-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.6rem;
}

.mini-hero h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--m-ink);
}

.mini-hero p {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--m-mut);
}

.mini-btn {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.5em 1.15em;
  border-radius: var(--r-pill);
  background: var(--m-ac);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.mini-art {
  position: relative;
  aspect-ratio: 0.92;
  border-radius: 18px 18px 120px 120px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 45%),
    linear-gradient(150deg, #e8a663, #b05c22 70%);
  overflow: hidden;
}

.mini-art::before {
  content: "";
  position: absolute;
  inset: auto 12% 14% 12%;
  height: 42%;
  border-radius: 50% 50% 44% 44%;
  background: #4a2c17;
  box-shadow: inset 0 6px 12px rgba(255, 255, 255, 0.25);
}

.mini-art::after {
  content: "";
  position: absolute;
  top: 14%; right: 16%;
  width: 26%; aspect-ratio: 1;
  border-radius: 50%;
  background: #fff3e4;
  opacity: 0.9;
}

.mini-strip {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.mini-strip span {
  flex: 1;
  padding: 0.55em 0.4em;
  border-radius: 10px;
  background: rgba(196, 106, 45, 0.10);
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--m-ac);
}

/* Pływające karty wyników */
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 0.85rem 1.05rem;
  z-index: 2;
}

html.js .float-card { animation: floaty-soft 6s ease-in-out infinite; }

.fc-rank { top: 8%; left: -9%; --rot: -3deg; animation-delay: 0.6s !important; }
.fc-traffic { bottom: -6%; left: -9%; --rot: 2deg; animation-delay: 1.8s !important; }
.fc-review { top: 40%; right: -8%; --rot: 2.5deg; animation-delay: 2.8s !important; }

.fc-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 0.2rem;
}

.fc-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.fc-value .up { color: #0d8a53; font-size: 1rem; }

.fc-value svg { width: 64px; height: 26px; }

.fc-stars { color: #f5a623; font-size: 0.9rem; letter-spacing: 0.08em; }

.fc-sub { font-size: 0.7rem; color: var(--ink-3); margin-top: 0.15rem; }

/* ---------- KLIENCI (marquee) ---------- */

.clients {
  padding-block: 2.2rem 3.2rem;
}

.clients-label {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 1.6rem;
}

/* ---------- LICZBY ---------- */

.stats { padding-block: clamp(3rem, 6vw, 4.5rem); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.stat {
  padding: clamp(1.6rem, 3vw, 2.5rem) 1.5rem;
  text-align: center;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-3);
}

/* ---------- O NAS ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about-visual { position: relative; }

.about-photo {
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 0.86;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.38), rgba(37, 99, 235, 0.30));
  mix-blend-mode: multiply;
}

.about-photo-sm {
  position: absolute;
  right: -10%;
  bottom: -9%;
  width: 46%;
  aspect-ratio: 1.1;
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow-md);
}

.about-photo-sm img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.about-photo-sm::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(37, 99, 235, 0.35), rgba(124, 58, 237, 0.28));
  mix-blend-mode: multiply;
}

.about-badge {
  position: absolute;
  top: 6%;
  left: -7%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.3rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

html.js .about-badge { animation: floaty-soft 6.5s ease-in-out infinite; --rot: -2deg; }

.about-badge b {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-badge span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.25;
  max-width: 12ch;
}

.about-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
}

.about-copy > p {
  margin-top: 1.2rem;
  color: var(--ink-3);
  font-size: 1.08rem;
  max-width: 54ch;
}

.about-points { margin-top: 2rem; display: grid; gap: 1.1rem; }

.about-points li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about-points i {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.10);
  color: var(--violet);
  font-size: 1.4rem;
}

.about-points b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.about-points p { font-size: 0.98rem; color: var(--ink-3); margin-top: 0.2rem; }

/* ---------- OFERTA (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 1.1rem;
}

.bento-card {
  position: relative;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.7rem 1.8rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, 0.30);
}

.bento-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.10);
  color: var(--violet);
  font-size: 1.65rem;
  margin-bottom: 1.1rem;
  transition: transform 0.45s var(--ease-out);
}

.bento-card:hover .bento-icon { transform: scale(1.08) rotate(-4deg); }

.bento-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bento-card > p {
  font-size: 0.97rem;
  color: var(--ink-3);
  max-width: 44ch;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.2rem;
}

.bento-tags span {
  padding: 0.32em 0.8em;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* Karta duża: strony www */
.bento-www { grid-column: span 2; grid-row: span 2; }

.bento-www .bento-art {
  position: relative;
  margin: 1.4rem -1.8rem -1.7rem;
  flex: 1;
  min-height: 190px;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.14), rgba(91, 124, 250, 0.20));
  overflow: hidden;
}

.bento-www .bento-art .mini-frame {
  position: absolute;
  left: 10%; right: -6%; top: 14%;
  bottom: -10%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.2rem;
  transition: transform 0.6s var(--ease-out);
}

.bento-www:hover .bento-art .mini-frame { transform: translateY(-10px) rotate(-1deg); }

.mini-frame .bar {
  height: 10px;
  border-radius: 6px;
  background: var(--bg-2);
  margin-bottom: 8px;
}

.mini-frame .bar.w60 { width: 60%; }
.mini-frame .bar.w35 { width: 35%; background: var(--grad); }
.mini-frame .bar.w80 { width: 80%; }

.mini-frame .blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.mini-frame .blocks span {
  aspect-ratio: 1.25;
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.22), rgba(91, 124, 250, 0.30));
}

.mini-frame .blocks span:nth-child(2) { background: var(--bg-2); }

/* Karta SEO: drabinka pozycji */
.bento-seo { grid-row: span 2; }

.seo-ladder {
  margin-top: auto;
  padding-top: 1.3rem;
  display: grid;
  gap: 0.5rem;
}

.seo-ladder .rung {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55em 0.85em;
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-3);
}

.seo-ladder .rung b {
  font-family: var(--font-display);
  color: var(--ink-3);
  font-size: 0.9rem;
}

.seo-ladder .rung.top {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(83, 47, 210, 0.55);
  transform: scale(1.03);
}

.seo-ladder .rung.top b { color: #fff; }

.seo-ladder .rung.top i { margin-left: auto; font-size: 1rem; }

/* Karta hostingu: ciemna */
.bento-host {
  background: var(--dark);
  border-color: transparent;
}

.bento-host h3 { color: #fff; }
.bento-host > p { color: var(--on-dark-2); }

.bento-host .bento-icon {
  background: rgba(124, 58, 237, 0.30);
  color: #c9b3ff;
}

.bento-host::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  bottom: -110px; right: -70px;
  border-radius: 50%;
  background: rgba(91, 124, 250, 0.4);
  filter: blur(60px);
}

.host-uptime {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  position: relative;
}

.host-uptime b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.host-uptime span { font-size: 0.8rem; color: var(--on-dark-2); font-weight: 600; }

/* Karta social: gradientowa */
.bento-social {
  grid-column: span 2;
  background: linear-gradient(130deg, rgba(139, 92, 246, 0.13), rgba(37, 99, 235, 0.12)), var(--surface);
}

.bento-social .reactions {
  position: absolute;
  top: 1.4rem; right: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.bento-social .reactions i {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 1.15rem;
  color: var(--violet);
}

html.js .bento-social .reactions i { animation: floaty-soft 5s ease-in-out infinite; }
.bento-social .reactions i:nth-child(2) { animation-delay: 0.7s; color: #e2547a; }
.bento-social .reactions i:nth-child(3) { animation-delay: 1.4s; color: var(--blue); }

/* ---------- PROCES ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.8rem 1.6rem 1.7rem;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.process-step:nth-child(2) { margin-top: 2.2rem; }
.process-step:nth-child(3) { margin-top: 4.4rem; }
.process-step:nth-child(4) { margin-top: 6.6rem; }

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.35;
  margin-bottom: 0.9rem;
}

.process-step h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.5rem; }

.process-step p { font-size: 0.95rem; color: var(--ink-3); }

.step-time {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3em 0.85em;
  border-radius: var(--r-pill);
  background: rgba(124, 58, 237, 0.09);
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- HOSTING (ciemny panel) ---------- */

.host-panel {
  position: relative;
  border-radius: calc(var(--r-card) + 8px);
  background: var(--dark);
  color: var(--on-dark-2);
  padding: clamp(2.5rem, 5.5vw, 4.5rem);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.host-panel::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  top: -260px; right: -160px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.35);
  filter: blur(110px);
  pointer-events: none;
}

.host-panel::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  bottom: -240px; left: -120px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.30);
  filter: blur(100px);
  pointer-events: none;
}

.host-copy { position: relative; z-index: 1; }

.host-copy h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 800;
}

.host-copy > p { margin-top: 1.1rem; font-size: 1.06rem; max-width: 48ch; }

.host-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.4rem;
  margin-top: 1.8rem;
}

.host-feats li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--on-dark);
}

.host-feats i { color: #9db2ff; font-size: 1.2rem; flex: none; }

.host-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2.2rem;
}

.host-price { font-size: 0.95rem; }

.host-price b {
  display: block;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Pierścień uptime */
.host-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.uptime-ring {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.uptime-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.uptime-ring .track { stroke: rgba(238, 240, 251, 0.12); }

.uptime-ring .fill {
  stroke: url(#ringGrad);
  stroke-linecap: round;
  stroke-dasharray: 690;
  stroke-dashoffset: 690;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.25s;
}

.uptime-ring.in-view .fill { stroke-dashoffset: 8; }

.uptime-center { text-align: center; }

.uptime-center b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.uptime-center span { font-size: 0.9rem; font-weight: 600; }

.host-sat {
  position: absolute;
  padding: 0.55em 1.05em;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(238, 240, 251, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--on-dark);
  white-space: nowrap;
}

html.js .host-sat { animation: floaty-soft 6s ease-in-out infinite; }

.host-sat.s1 { top: 4%; left: 2%; --rot: -3deg; }
.host-sat.s2 { top: 38%; right: -4%; --rot: 2deg; animation-delay: 1.2s !important; }
.host-sat.s3 { bottom: 6%; left: 8%; --rot: 2deg; animation-delay: 2.2s !important; }

/* ---------- REALIZACJE (zajawka) + karty projektów ---------- */

.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.work-head .section-head { margin-bottom: 0; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.project-card {
  display: block;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-thumb {
  position: relative;
  aspect-ratio: 1.35;
  overflow: hidden;
}

/* Prawdziwe zrzuty realizacji (nakładka na szkielet miniatury) */
.project-thumb .shot,
.case-visual .shot {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease-out);
}

.project-card:hover .shot { transform: scale(1.045); }
.case-card:hover .case-visual .shot { transform: scale(1.03); }

/* Wspólny szkielet miniatur projektów */
.pmini {
  position: absolute;
  inset: 9% 9% 0;
  border-radius: 14px 14px 0 0;
  background: var(--p-bg, #fff);
  color: var(--p-ink, #222);
  box-shadow: 0 18px 44px -18px rgba(20, 23, 46, 0.35);
  padding: 1rem 1.1rem;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out);
}

.project-card:hover .pmini { transform: translateY(-8px) scale(1.015); }

.project-thumb { background: var(--p-wash, var(--bg-2)); }

.pmini-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--p-mut, #888);
}

.pmini-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--p-ink);
  margin-right: auto;
}

.pmini h3 {
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--p-ink);
  margin-top: 0.9rem;
  max-width: 15ch;
}

.pmini .pmini-btn {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.45em 1em;
  border-radius: var(--r-pill);
  background: var(--p-ac, #333);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
}

.pmini-shapes {
  position: absolute;
  right: -12%;
  bottom: -18%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 34% 66% 58% 42% / 45% 38% 62% 55%;
  background: var(--p-blob, linear-gradient(140deg, #ddd, #bbb));
  opacity: 0.9;
}

.pmini-chip {
  position: absolute;
  right: 8%;
  top: 12%;
  padding: 0.45em 0.85em;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--p-ink);
  font-size: 0.58rem;
  font-weight: 800;
  box-shadow: 0 10px 22px -10px rgba(20, 23, 46, 0.35);
}

.project-meta { padding: 1.3rem 1.5rem 1.5rem; }

.project-meta .cat {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--violet);
}

.project-meta h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.project-meta h3 i {
  font-size: 1.05rem;
  color: var(--ink-3);
  transform: translate(0, 0);
  transition: transform 0.4s var(--ease-out), color 0.3s;
  flex: none;
}

.project-card:hover .project-meta h3 i {
  transform: translate(4px, -4px);
  color: var(--violet);
}

.project-meta .result {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: var(--ink-3);
}

/* ---------- OPINIE ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.3rem;
}

.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.9rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.review:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.review-featured {
  grid-row: span 2;
  background: var(--grad-btn);
  border: 0;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  overflow: hidden;
}

.review-featured::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  top: -140px; right: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(60px);
}

.review .stars { color: #f5a623; font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 1rem; }

.review-featured .stars { color: #ffd479; }

.review blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.review-featured blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: #fff;
}

.review figcaption {
  margin-top: auto;
  padding-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.review .avatar {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(140deg, #8b5cf6, #5b7cfa);
}

.review-featured .avatar { background: rgba(255, 255, 255, 0.2); }

.review figcaption b { display: block; color: var(--ink); font-size: 0.98rem; }
.review-featured figcaption b { color: #fff; }

.review figcaption span { font-size: 0.85rem; color: var(--ink-3); }
.review-featured figcaption span { color: rgba(255, 255, 255, 0.75); }

/* ---------- KONTAKT ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
}

.contact-info > p {
  margin-top: 1.1rem;
  color: var(--ink-3);
  font-size: 1.08rem;
  max-width: 44ch;
}

.contact-rows { margin-top: 2.2rem; display: grid; gap: 1rem; }

.contact-rows a, .contact-rows .row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}

.contact-rows a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.35);
}

.contact-rows i {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.10);
  color: var(--violet);
  font-size: 1.35rem;
}

.contact-rows b { display: block; color: var(--ink); font-size: 1rem; }
.contact-rows span { font-size: 0.88rem; color: var(--ink-3); }

.contact-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-3);
}

.contact-note i { color: #0d8a53; font-size: 1.2rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--r-card) + 4px);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-grid .field-full { grid-column: 1 / -1; }

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form .btn { width: 100%; margin-top: 1.4rem; }

.form-rodo {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--ink-3);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.form-success i {
  font-size: 3.2rem;
  color: #0d8a53;
  margin-bottom: 1rem;
  display: inline-block;
}

.form-success h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--ink-3); }

/* ---------- Responsywność strony głównej ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 3.5rem); }
  .hero-copy > p { max-width: 56ch; }
  .hero-visual { max-width: 620px; }
  .fc-rank { left: -2%; }
  .fc-traffic { left: -3%; }
  .fc-review { right: -2%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-www, .bento-social { grid-column: span 2; }
  .bento-seo { grid-row: span 1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(n) { margin-top: 0; }
  .host-panel { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-featured { grid-row: auto; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(odd) { border-top: 1px solid var(--border); }
  .stat:nth-child(even) { border-top: 1px solid var(--border); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 480px; margin-inline: auto; }
  .work-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .float-card { padding: 0.7rem 0.85rem; }
  .fc-value { font-size: 1rem; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-www, .bento-social { grid-column: auto; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .fc-traffic { display: none; }
}
