/* Fixed parallax background — marmur jak spgroby.com */
.parallax-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('../images/marble-bg.png') center center / cover no-repeat;
  background-attachment: fixed;
  transform: translateZ(0);
}

.parallax-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, hsl(38 80% 50% / 0.08), transparent 55%),
    radial-gradient(ellipse at 80% 90%, hsl(38 70% 45% / 0.06), transparent 60%),
    linear-gradient(180deg, hsl(15 12% 6% / 0.55), hsl(24 14% 5% / 0.75));
}

.page-content { position: relative; z-index: 1; }

.page-content > section,
.page-content > .logo-ticker-wrap {
  background: #120f0dc7;
  backdrop-filter: blur(8px);
}

.page-content > section.section-alt {
  background: #1e1915b8;
}

.page-content > section.section-light {
  background: #231e1a59;
}

.page-content > .header,
.page-content > header.header {
  background: #120f0dc7 !important;
  backdrop-filter: blur(14px);
}

/* Logo spgroby.com */
.logo-brand .logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-brand { gap: 12px !important; }

/* Hero — większe napisy, dolne elementy 5% nad końcem ekranu */
.hero-parallax {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  display: flex;
  align-items: stretch;
  padding: var(--header-h) 0 5vh;
  background: transparent !important;
  backdrop-filter: none !important;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(hsl(40, 85%, 62%, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, hsl(40, 85%, 62%, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, black 20%, transparent 75%);
}

.hero-parallax .hero-grid {
  width: 100%;
  gap: 32px;
  align-items: center;
  align-self: stretch;
  min-height: calc(100svh - var(--header-h) - 5vh);
}

.hero-parallax .hero-inner {
  position: relative;
  z-index: 1;
  max-width: none;
  align-self: end;
}

.hero-parallax .hero-tag { margin-bottom: 12px; font-size: 0.85rem; }

.hero-parallax .hero-sub {
  font-size: 1.08rem;
  line-height: 1.52;
  margin-bottom: 20px;
  max-width: 540px;
}

.hero-parallax .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-phone {
  display: inline-block;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.hero-phone:hover {
  color: var(--accent-gold-light);
  text-shadow: 0 0 24px hsl(40, 85%, 62%, 0.35);
}

.hero-parallax .hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.hero-parallax .hero-badge-main {
  font-size: 0.88rem;
  padding: 8px 14px;
}

.hero-parallax .hero-badge-sm {
  font-size: 0.78rem;
  padding: 7px 12px;
  opacity: 0.92;
}

.hero-parallax .hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid hsl(40, 85%, 62%, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  aspect-ratio: 4/3;
  max-height: min(68vh, 500px);
  width: 100%;
  align-self: center;
  justify-self: center;
}

.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-parallax h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 14px;
}

/* Ikony SVG */
.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(40, 85%, 62%, 0.12);
  border: 1px solid hsl(40, 85%, 62%, 0.25);
  flex-shrink: 0;
}

.icon-wrap svg { width: 22px; height: 22px; stroke: var(--accent-gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.icon-wrap-sm { width: 40px; height: 40px; border-radius: 10px; }
.icon-wrap-sm svg { width: 18px; height: 18px; }

.floating-phone svg { width: 24px; height: 24px; stroke: var(--accent-gold-fg); fill: none; stroke-width: 2; }

/* Usługi — kompaktowe */
.services-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-mini {
  background: hsl(28, 16%, 10%, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
}

.service-mini h3 { font-size: 0.95rem; margin: 12px 0 8px; font-family: var(--font-display); }
.service-mini p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.service-mini .icon-wrap { margin: 0 auto; }

/* Cennik — kafelki -5% od poprzedniego rozmiaru */
.pricing-sp .grid-3 { gap: 26px; }

.pricing-sp .pricing-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 36px 30px;
  background: hsl(28, 16%, 10%, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  min-height: 100%;
}

.pricing-sp .pricing-card.featured {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px hsl(40, 85%, 62%, 0.35);
}

.pricing-sp .pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: var(--accent-gold-fg);
  font-size: 19px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 50px;
  white-space: nowrap;
}

.pricing-sp .pricing-card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }

.pricing-sp .pricing-card-note {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 4px 0 16px;
  padding: 0 4px;
}

.pricing-sp .pricing-includes-label {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 21px 0 13px;
  text-align: left;
}

.pricing-sp .pricing-includes {
  list-style: none;
  text-align: left;
  margin-bottom: 26px;
  flex: 1;
}

.pricing-sp .pricing-includes li {
  font-size: 19px;
  color: var(--text-muted);
  padding: 8px 0 8px 23px;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid hsl(38, 35%, 28%, 0.12);
}

.pricing-sp .pricing-includes li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.pricing-sp .pricing-actions-row {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: auto;
}

.pricing-sp .pricing-actions-row .btn { width: 100%; justify-content: center; font-size: 19px; padding: 13px 21px; }

.pricing-sp .pricing-trust { font-size: 19px; }

.form-conditional[hidden] { display: none !important; }

.form-group input[readonly] {
  background: hsl(28, 14%, 14%);
  color: var(--accent-gold);
  font-weight: 700;
}

.form-group input.price-combined {
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 14px 16px;
}

/* Modal personalne ceny */
.pricing-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.pricing-modal.open { opacity: 1; visibility: visible; }

.pricing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.pricing-modal-dialog {
  position: relative;
  background: hsl(28, 16%, 10%);
  border: 1px solid hsl(40, 85%, 62%, 0.35);
  border-radius: var(--radius-lg);
  max-width: 624px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 34px 29px 29px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pricing-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: hsl(40, 85%, 62%, 0.1);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.pricing-modal-dialog h3 {
  font-family: var(--font-display);
  text-align: center;
  font-size: 18px;
  margin-bottom: 10px;
  padding-right: 32px;
}

.pricing-modal-base-price {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 0 0 8px;
}

.pricing-modal-base-price strong { font-weight: 800; }

.pricing-modal-intro {
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-detail-group { margin-bottom: 24px; }

.pricing-detail-group h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}

.pricing-detail-rows { list-style: none; }

.pricing-detail-rows li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  font-size: 18px;
  color: var(--text-muted);
  border-bottom: 1px solid hsl(38, 35%, 28%, 0.1);
}

.pricing-detail-rows li span:last-child { font-weight: 600; color: var(--text); white-space: nowrap; }

.pricing-modal-note { font-size: 18px; color: var(--text-muted); text-align: center; margin-top: 19px; }

/* Galeria — zdjęcia +25% i większe ramki */
.ba-grid-photos { display: flex; flex-direction: column; gap: 40px; max-width: 1125px; margin: 0 auto; }

.ba-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.ba-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 220px;
  cursor: zoom-in;
}

.ba-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  transform: scale(1.25);
  transform-origin: center center;
}

.ba-photo:hover img { transform: scale(1.3); }

.ba-label-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ba-label-tag.after { background: hsl(140, 40%, 30%, 0.85); }

.ba-caption { margin-top: 16px; }
.ba-caption h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.ba-caption p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* FAQ — kompaktowy */
.faq-compact .faq-item { border-radius: var(--radius); margin-bottom: 8px; }
.faq-compact .faq-question { padding: 14px 18px; font-size: 0.92rem; }
.faq-compact .faq-answer-inner { padding: 0 18px 14px; font-size: 0.88rem; line-height: 1.6; }
.faq-compact .section-header { margin-bottom: 28px; }
.faq-compact .section-header h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

/* Kontakt karty z ikonami */
.contact-icon-card .icon-wrap { margin: 0 auto 12px; }

#uslugi { padding: 48px 0; }

/* Usługi — kwadraty: 3 u góry, 2 pod spodem */
.bento-grid-squares {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.bento-card-square {
  grid-column: span 2;
  aspect-ratio: 1;
  background: hsl(28, 16%, 10%, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: border-color 0.25s, transform 0.25s;
}

.bento-card-square:nth-child(4) { grid-column: 2 / span 2; }
.bento-card-square:nth-child(5) { grid-column: 4 / span 2; }

.bento-card-square:hover {
  border-color: hsl(40, 85%, 62%, 0.45);
  transform: translateY(-2px);
}

.bento-card-square .bento-icon-sm {
  width: 44px;
  height: 44px;
  background: hsl(40, 85%, 62%, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.bento-card-square h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.25;
}

.bento-card-square p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 10px;
}

.bento-card-square .bento-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: auto;
}

/* Kompaktowy bento z linkami (legacy) */
.bento-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bento-card-compact {
  background: hsl(28, 16%, 10%, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

.bento-card-compact:hover {
  border-color: hsl(40, 85%, 62%, 0.45);
  transform: translateY(-2px);
}

.bento-card-compact.span-2 { grid-column: span 2; }

.bento-icon-sm {
  width: 40px;
  height: 40px;
  background: hsl(40, 85%, 62%, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.bento-card-compact h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.bento-card-compact p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 8px;
}

.bento-card-compact .bento-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
}

/* Lightbox galerii */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 82vh;
}

.lightbox-content img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  border: none;
  background: hsl(40, 85%, 62%, 0.15);
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: hsl(40, 85%, 62%, 0.35); }

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  z-index: 2;
  text-align: center;
  max-width: 80vw;
}

.contact-icon-card .icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 968px) {
  .services-compact { grid-template-columns: repeat(2, 1fr); }
  .bento-grid-compact { grid-template-columns: 1fr; }
  .bento-card-compact.span-2 { grid-column: span 1; }
  .bento-grid-squares {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
  .bento-card-square,
  .bento-card-square:nth-child(4),
  .bento-card-square:nth-child(5) {
    grid-column: span 1;
  }
  .hero-parallax {
    min-height: auto;
    max-height: none;
    padding: calc(var(--header-h) + 12px) 0 32px;
  }
  .hero-parallax .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-parallax .hero-visual { order: -1; max-height: 220px; align-self: center; justify-self: center; }
  .hero-parallax .hero-inner { align-self: auto; }
  .parallax-bg { background-attachment: scroll; }
  .ba-grid-photos { max-width: 100%; }
}

@media (max-width: 600px) {
  .services-compact { grid-template-columns: 1fr; }
  .ba-row { grid-template-columns: 1fr; }
}
