﻿:root {
  --ink: #11100f;
  --charcoal: #181715;
  --charcoal-soft: #24221f;
  --paper: #ffffff;
  --warm: #f6f2eb;
  --sand: #e7d6be;
  --gold: #c79b61;
  --gold-dark: #a77c45;
  --muted: #706b64;
  --line: #e6dfd5;
  --shadow: 0 22px 60px rgba(18, 16, 13, 0.16);
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section-pad {
  padding: 86px 0;
}

#home,
#realizacje,
#oferta,
#o-wykonawcy,
#opinie,
#kontakt {
  scroll-margin-top: 104px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(24, 23, 21, 0.08);
  backdrop-filter: blur(18px);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(24, 23, 21, 0.12);
  box-shadow: 0 14px 34px rgba(18, 16, 13, 0.1);
  backdrop-filter: blur(22px);
}

.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 42px;
  align-items: center;
  padding: 14px 0;
  transition: min-height 0.28s ease, padding 0.28s ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 77px;
  padding: 8px 0;
}

.brand img {
  width: auto;
  height: 82px;
  max-width: 288px;
  object-fit: contain;
  object-position: center;
  transition: height 0.28s ease, max-width 0.28s ease;
}

.site-header.is-scrolled .brand img {
  height: 74px;
  max-width: 260px;
}

.footer-logo img {
  width: 156px;
  height: 56px;
  object-fit: contain;
  object-position: center;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.footer-logo img {
  filter: invert(1) brightness(1.55) contrast(0.9);
  opacity: 0.94;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-nav a {
  position: relative;
  padding: 22px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  column-gap: 8px;
  color: #8a5f32;
  font-size: 18px;
  font-weight: 800;
  transition: filter 0.2s ease;
}

.phone-link:hover,
.phone-link:focus-visible,
.hero-phone:hover,
.hero-phone:focus-visible {
  filter: brightness(1.1);
}

.phone-icon {
  display: inline-block;
  width: 1.13em;
  height: 1.13em;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.35 2.65 3.52 4.82 6.17 6.17l2.06-2.06c.29-.29.72-.39 1.1-.26 1.2.4 2.49.62 3.82.62.6 0 1.09.49 1.09 1.09v3.28c0 .6-.49 1.09-1.09 1.09C10.64 20.72 3.28 13.36 3.28 4.25c0-.6.49-1.09 1.09-1.09h3.28c.6 0 1.09.49 1.09 1.09 0 1.33.22 2.62.62 3.82.12.38.03.81-.26 1.1L6.6 10.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.35 2.65 3.52 4.82 6.17 6.17l2.06-2.06c.29-.29.72-.39 1.1-.26 1.2.4 2.49.62 3.82.62.6 0 1.09.49 1.09 1.09v3.28c0 .6-.49 1.09-1.09 1.09C10.64 20.72 3.28 13.36 3.28 4.25c0-.6.49-1.09 1.09-1.09h3.28c.6 0 1.09.49 1.09 1.09 0 1.33.22 2.62.62 3.82.12.38.03.81-.26 1.1L6.6 10.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  min-height: 56px;
  padding-inline: 36px;
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: #2a2723;
  border-color: var(--gold);
  color: var(--paper);
}

.btn-gold {
  background: #8a5f32;
  color: #ffffff;
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-dark);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--paper);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 86px);
  overflow: hidden;
  background: var(--charcoal);
}

.hero-bg {
  --hero-parallax-y: 0px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: none;
  animation: heroImageReveal 7.5s ease-out both;
  transform: translate3d(0, var(--hero-parallax-y), 0) scale(1);
  will-change: transform;
}

.hero-shade {
  --hero-shade-opacity: 1;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.86) 0%, rgba(10, 10, 10, 0.63) 34%, rgba(10, 10, 10, 0.22) 61%, rgba(10, 10, 10, 0) 100%);
  opacity: var(--hero-shade-opacity);
  will-change: opacity;
}

.hero-content {
  --hero-scroll-opacity: 1;
  --hero-scroll-y: 0px;
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - 86px);
  width: min(790px, calc(100% - 56px));
  max-width: 790px;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--paper);
  margin-left: clamp(72px, 6.5vw, 124px);
  margin-right: auto;
  padding: clamp(114px, calc(28vh - 40px), 186px) 0 92px;
  opacity: var(--hero-scroll-opacity);
  transform: translate3d(0, var(--hero-scroll-y), 0);
  will-change: opacity, transform;
}

.hero-content > * {
  animation: heroContentFade 0.72s ease-out 0.12s both;
}

.hero-content > :nth-child(2) {
  animation-delay: 0.16s;
}

.hero-content > :nth-child(3) {
  animation-delay: 0.2s;
}

.hero-content > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-content > :nth-child(5) {
  animation-delay: 0.28s;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(231, 214, 190, 0.88);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 790px;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 5vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-subtitle {
  max-width: 540px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.6;
}

.hero-contact {
  width: fit-content;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.hero-actions .btn {
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.hero-actions .btn:hover,
.hero-actions .btn:focus-visible {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.hero-actions .btn-gold {
  box-shadow: 0 16px 34px rgba(199, 155, 97, 0.26), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.hero-actions .btn-gold:hover,
.hero-actions .btn-gold:focus-visible {
  box-shadow: 0 20px 42px rgba(199, 155, 97, 0.32), 0 12px 24px rgba(0, 0, 0, 0.2);
}

.hero-phone {
  display: flex;
  width: fit-content;
  align-items: center;
  column-gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 31px auto 0;
  color: var(--paper);
  opacity: 0.88;
  transition: filter 0.2s ease;
}

.hero-phone span {
  margin: 0;
  align-self: center;
  color: inherit;
  font-size: 26px;
}

.hero-phone strong {
  font-size: 26px;
  font-weight: 700;
}

.hero-phone small {
  flex-basis: 100%;
  margin-left: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-align: center;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 55px;
  z-index: 1;
  display: inline-grid;
  justify-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  animation: heroScrollFloat 3.6s ease-in-out infinite;
  transform: translateX(-50%);
}

.hero-scroll-icon {
  position: relative;
  width: 18px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.hero-scroll-icon::before {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.hero-scroll::after {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

@keyframes heroImageReveal {
  from {
    transform: translate3d(0, var(--hero-parallax-y), 0) scale(1.04);
  }

  to {
    transform: translate3d(0, var(--hero-parallax-y), 0) scale(1);
  }
}

@keyframes heroContentFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroScrollFloat {
  0%,
  100% {
    transform: translate3d(-50%, 0, 0);
  }

  50% {
    transform: translate3d(-50%, -7px, 0);
  }
}

.about {
  background: var(--warm);
}

.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.72s ease, transform 0.72s ease;
  will-change: opacity, transform;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about.section-pad {
  padding: 72px 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  max-width: 1180px;
}

.about h2,
.offer h2,
.process h2,
.reviews h2,
.quote-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
}

.about h2 {
  font-size: clamp(25px, 3.25vw, 38px);
}

.about-heading {
  padding-top: 10px;
}

.about-copy {
  max-width: 690px;
}

.about-copy p {
  margin: 0;
  color: #4c4741;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.5;
}

.about-copy p + p {
  margin-top: 10px;
}

.offer {
  background: #fbfaf7;
  border-bottom: 1px solid rgba(230, 223, 213, 0.72);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.benefits-grid article {
  min-height: 112px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(230, 223, 213, 0.78);
  box-shadow: 0 14px 34px rgba(18, 16, 13, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.benefits-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(199, 155, 97, 0.42);
  box-shadow: 0 18px 42px rgba(18, 16, 13, 0.075);
}

.line-icon {
  display: block;
  color: var(--gold-dark);
  font-size: 20px;
  line-height: 1;
}

.benefits-grid h2,
.benefits-grid h3 {
  margin: 11px 0 4px;
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
}

.benefits-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
}

.text-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--gold);
  padding: 0 20px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.text-btn:hover,
.text-btn:focus-visible {
  background: var(--gold);
  color: var(--paper);
}

#realizacje.section-pad {
  padding: 46px 0 56px;
}

@media (min-width: 1024px) {
  #realizacje.section-pad {
    min-height: 100vh;
    padding: 7vh 0 8vh;
  }
}

#realizacje .container {
  width: min(1272px, calc(100% - 8px));
}

@media (min-width: 1024px) {
  #realizacje .container {
    display: flex;
    min-height: 85vh;
    flex-direction: column;
    justify-content: center;
  }
}

#realizacje .section-head {
  margin-bottom: 34px;
}

@media (min-width: 1024px) {
  #realizacje .section-head {
    margin-bottom: 42px;
  }

  #realizacje .section-head h2 {
    font-size: clamp(42px, 4.7vw, 58px);
  }

  #realizacje .text-btn {
    min-height: 52px;
    padding: 0 28px;
  }
}

#realizacje .portfolio-shell {
  gap: 22px;
}

#realizacje .portfolio-categories {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: clamp(300px, 34vh, 340px);
  gap: 18px;
}

@media (min-width: 1024px) {
  #realizacje .portfolio-categories {
    gap: 22px;
  }
}

#realizacje .portfolio-category-card {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(18, 16, 13, 0.14);
}

#realizacje .portfolio-category-card[data-category-target="sypialnie"] img {
  object-position: 46% 58%;
}

#realizacje .portfolio-category-card:nth-child(1),
#realizacje .portfolio-category-card:nth-child(4) {
  grid-column: span 3;
}

#realizacje .portfolio-category-card:nth-child(2),
#realizacje .portfolio-category-card:nth-child(3) {
  grid-column: span 2;
}

#realizacje .portfolio-category-card::after {
  background: linear-gradient(180deg, rgba(17, 16, 15, 0), rgba(17, 16, 15, 0.56));
}

#realizacje .portfolio-category-card span {
  bottom: 38px;
  font-size: clamp(22px, 2.35vw, 32px);
  font-weight: 800;
  line-height: 1.08;
}

#realizacje .portfolio-category-card small {
  bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

#realizacje .portfolio-category-card:hover::after,
#realizacje .portfolio-category-card:focus-visible::after {
  background: linear-gradient(180deg, rgba(17, 16, 15, 0.04), rgba(17, 16, 15, 0.64));
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-shell[data-active-category="szafy"] .portfolio-grid-gallery {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  grid-auto-rows: calc((100cqw - 48px) / 4);
}

.portfolio-shell[data-active-category="sypialnie"] .portfolio-grid-gallery {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  grid-auto-rows: calc((100cqw - 48px) / 4);
}

.portfolio-shell {
  display: grid;
  gap: 30px;
}

.portfolio-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.portfolio-category-card {
  position: relative;
  display: block;
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--charcoal);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.portfolio-category-card.is-featured {
  grid-column: span 2;
}

.portfolio-category-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.portfolio-category-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 16, 15, 0.04), rgba(17, 16, 15, 0.74));
  content: "";
  transition: background 0.3s ease;
}

.portfolio-category-card span,
.portfolio-category-card small {
  position: absolute;
  z-index: 1;
  left: 26px;
  color: var(--paper);
}

.portfolio-category-card span {
  right: 26px;
  bottom: 52px;
  font-size: clamp(21px, 2.3vw, 32px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.portfolio-category-card small {
  bottom: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.portfolio-category-card:hover img,
.portfolio-category-card:focus-visible img {
  filter: brightness(0.86);
  transform: scale(1.045);
}

.portfolio-category-card:hover::after,
.portfolio-category-card:focus-visible::after {
  background: linear-gradient(180deg, rgba(17, 16, 15, 0.16), rgba(17, 16, 15, 0.84));
}

.portfolio-gallery-panel {
  display: none;
}

.portfolio-shell[data-active-category="szafy"] .portfolio-gallery-panel,
.portfolio-shell[data-active-category="sypialnie"] .portfolio-gallery-panel {
  container-type: inline-size;
}

.portfolio-shell.is-gallery-open .portfolio-categories {
  display: none;
}

.portfolio-shell.is-gallery-open .portfolio-gallery-panel {
  display: block;
  animation: portfolio-panel-in 0.35s ease both;
}

.portfolio-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.portfolio-gallery-head h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
  text-transform: uppercase;
}

.portfolio-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(199, 155, 97, 0.42);
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portfolio-back:hover,
.portfolio-back:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

@keyframes portfolio-panel-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.project-card.wide {
  grid-column: span 2;
}

.portfolio-grid-kitchens .project-card:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.portfolio-grid-kitchens .project-card:nth-child(2),
.portfolio-grid-kitchens .project-card:nth-child(3) {
  aspect-ratio: auto;
}

.project-card[data-category="lazienki"].wide,
.project-card[data-category="szafy"].wide {
  grid-row: span 2;
  aspect-ratio: auto;
}

.portfolio-shell[data-active-category="sypialnie"] .project-card[data-category="sypialnie"] {
  aspect-ratio: auto;
}

.portfolio-shell[data-active-category="sypialnie"] .project-card[data-category="sypialnie"].wide {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.portfolio-shell[data-active-category="sypialnie"] .project-card[data-category="sypialnie"][href$="aspar-sypialnie-02.jpg"] {
  grid-column: 3;
  grid-row: 1;
}

.portfolio-shell[data-active-category="sypialnie"] .project-card[data-category="sypialnie"][href$="aspar-sypialnie-03.jpg"] {
  grid-column: 3;
  grid-row: 2;
}

.portfolio-shell[data-active-category="sypialnie"] .project-card[data-category="sypialnie"][href$="aspar-sypialnie-04.jpg"] {
  grid-column: 1;
  grid-row: 3;
}

.portfolio-shell[data-active-category="sypialnie"] .project-card[data-category="sypialnie"][href$="aspar-sypialnie-05.jpg"] {
  grid-column: 2 / span 2;
  grid-row: 3;
}

.portfolio-shell[data-active-category="szafy"] .project-card[data-category="szafy"].wide {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  aspect-ratio: auto;
}

.portfolio-shell[data-active-category="szafy"] .project-card[data-category="szafy"][href$="aspar-szafy-02.jpg"] {
  grid-column: 3;
  grid-row: 1;
  aspect-ratio: 4 / 3;
}

.project-card[data-category="lazienki"].bathroom-stack {
  aspect-ratio: auto;
}

.project-card[data-category="szafy"].bathroom-stack {
  grid-column: 3;
  grid-row: 2;
  aspect-ratio: 4 / 3;
}

.portfolio-shell[data-active-category="szafy"] .project-card[data-category="szafy"][href$="aspar-szafy-04.jpg"] {
  grid-column: 1;
  grid-row: 3;
}

.portfolio-shell[data-active-category="szafy"] .project-card[data-category="szafy"][href$="aspar-szafy-05.jpg"] {
  grid-column: 2;
  grid-row: 3;
}

.portfolio-shell[data-active-category="szafy"] .project-card[data-category="szafy"][href$="aspar-szafy-06.jpg"] {
  grid-column: 3;
  grid-row: 3;
}

.project-card.is-hidden {
  display: none;
}

@media (min-width: 701px) and (max-width: 1023px) {
  .portfolio-shell[data-active-category="sypialnie"] .portfolio-grid-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .portfolio-shell[data-active-category="sypialnie"] .project-card[data-category="sypialnie"],
  .portfolio-shell[data-active-category="sypialnie"] .project-card[data-category="sypialnie"].wide {
    grid-column: span 1;
    grid-row: span 2;
  }
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 16, 15, 0.02), rgba(17, 16, 15, 0.78));
  content: "";
  transition: background 0.3s ease;
}

.project-card-clean::after {
  display: none;
}

.project-card span,
.project-card small {
  position: absolute;
  z-index: 1;
  left: 22px;
  color: var(--paper);
}

.project-card span {
  bottom: 48px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card small {
  bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.project-card:hover img,
.project-card:focus-visible img {
  filter: brightness(0.9);
  transform: scale(1.045);
}

.project-card-clean:hover img,
.project-card-clean:focus-visible img {
  filter: none;
}

.project-card:hover::after,
.project-card:focus-visible::after {
  background: linear-gradient(180deg, rgba(17, 16, 15, 0.12), rgba(17, 16, 15, 0.82));
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(10, 10, 10, 0.86);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox img {
  max-width: min(100%, 1280px);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox button {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(17, 16, 15, 0.72);
  color: var(--paper);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox button:hover,
.gallery-lightbox button:focus-visible {
  background: rgba(199, 155, 97, 0.72);
}

.gallery-lightbox-close {
  top: 22px;
  right: 22px;
}

.gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.gallery-lightbox-prev {
  left: 22px;
}

.gallery-lightbox-next {
  right: 22px;
}

.process {
  background: #fbfaf7;
  text-align: center;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.process article {
  position: relative;
  padding: 18px 18px 0;
}

.process article:not(:last-child)::after {
  position: absolute;
  top: 44px;
  right: -32px;
  width: 54px;
  height: 1px;
  border-top: 2px dashed var(--gold);
  content: "";
  opacity: 0.55;
}

.process span {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--gold-dark);
  font-size: 24px;
  font-weight: 900;
}

.process h3 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
}

.process p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stats,
.quote-section,
.site-footer {
  background: radial-gradient(circle at 15% 0%, rgba(199, 155, 97, 0.14), transparent 32%), var(--charcoal);
  color: var(--paper);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 42px 0;
}

.stats-grid div {
  display: grid;
  gap: 6px;
}

.stats strong {
  color: var(--paper);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reviews.section-pad {
  padding-top: 52px;
  padding-bottom: 56px;
  background: #ffffff;
}

.reviews-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  column-gap: 44px;
  align-items: start;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.rating-block .eyebrow {
  margin: 0 0 26px;
  color: #a87945;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.reviews-line {
  display: block;
  width: 56px;
  height: 2px;
  margin-bottom: 64px;
  background: #a87945;
}

.rating-block h2 {
  margin: 0;
  color: #050505;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.05;
  text-transform: none;
}

.google-rating {
  margin: 20px 0 0;
  color: #050505;
  font-size: 50px;
  font-weight: 500;
  line-height: 1;
}

.stars {
  margin-top: 26px;
  color: #a87945;
  font-size: 22px;
  letter-spacing: 4px;
  line-height: 1;
}

.rating-note {
  margin: 28px 0 0;
  color: #6f6f6f;
  font-size: 14px;
  line-height: 1.5;
}

.google-reviews-link {
  display: inline-flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
  border: 1px solid #a87945;
  padding: 0 26px;
  background: transparent;
  color: #a87945;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.google-reviews-link:hover,
.google-reviews-link:focus-visible {
  background: #a87945;
  color: #ffffff;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.review-cards article {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  padding: 30px 30px 26px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.045);
}

.review-quote {
  display: block;
  margin-bottom: 18px;
  color: #a87945;
  font-size: 36px;
  line-height: 0.8;
  opacity: 0.75;
}

.review-cards p {
  margin: 0 0 36px;
  color: #111111;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.review-divider {
  display: block;
  height: 1px;
  margin-top: auto;
  margin-bottom: 20px;
  background: #e7d7be;
}

.review-stars {
  margin-bottom: 18px;
  color: #a87945;
  font-size: 17px;
  letter-spacing: 3px;
  line-height: 1;
}

.review-cards strong {
  margin-bottom: 16px;
  color: #050505;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.google-source {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7a7a7a;
  font-size: 16px;
  font-weight: 400;
}

.google-source .google-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  vertical-align: middle;
}

@media (max-width: 1100px) {
  .reviews-layout {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .review-cards {
    grid-template-columns: 1fr;
  }

  .review-cards article {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .reviews.section-pad {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .reviews-layout {
    padding-left: 20px;
    padding-right: 20px;
  }

  .rating-block h2 {
    font-size: 46px;
  }

  .google-rating {
    font-size: 50px;
  }

  .google-reviews-link {
    width: 100%;
    height: 48px;
  }

  .review-cards article {
    padding: 30px 30px 26px;
  }

  .review-cards p {
    font-size: 15px;
  }
}

.quote-section {
  padding: 76px 0;
}

.quote-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 48px;
  align-items: start;
}

.quote-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.quote-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.quote-copy li::before {
  margin-right: 10px;
  color: var(--gold);
  content: "âś“";
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 26px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.quote-form label {
  display: grid;
  gap: 8px;
}

.quote-form .honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-form span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font: inherit;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.quote-form textarea {
  min-height: 128px;
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.quote-form option {
  color: var(--ink);
}

.form-wide {
  grid-column: span 2;
}

.file-field {
  grid-column: span 2;
}

.file-field input {
  padding-top: 10px;
}

.form-submit {
  align-self: end;
  width: 100%;
}

.materials {
  padding: 28px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.materials p {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  align-items: center;
}

.brand-strip span {
  color: #4f4b46;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 900;
  filter: grayscale(1);
}

.contact {
  background: var(--warm);
}

.contact-stack {
  display: grid;
  gap: 52px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
}

.contact .quote-layout {
  padding: 34px;
  background: radial-gradient(circle at 15% 0%, rgba(199, 155, 97, 0.14), transparent 32%), var(--charcoal);
  color: var(--paper);
}

.contact p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
}

address {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-style: normal;
  box-shadow: var(--shadow);
}

address a:not(.btn) {
  font-weight: 800;
}

.site-footer {
  padding: 34px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.footer-copy {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.site-footer .footer-credit {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  opacity: 1;
}

.privacy-page {
  background: var(--warm);
}

.privacy-content {
  max-width: 920px;
}

.privacy-content h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
}

.privacy-content section {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.privacy-content h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.privacy-content p {
  margin: 0;
  color: var(--muted);
}

.privacy-content a {
  color: var(--ink);
  font-weight: 700;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 9999;
  display: none;
  width: calc(100% - 48px);
  max-width: 980px;
  transform: translateX(-50%);
  background: #111111;
  border-radius: 0;
  padding: 22px 26px;
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cookie-banner h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-banner-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 22px;
}

.cookie-accept,
.cookie-reject {
  height: 44px;
  border: 1px solid #a87945;
  padding: 0 24px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-accept {
  border-color: #8a5f32;
  background: #8a5f32;
  color: #ffffff;
}

.cookie-reject {
  background: transparent;
  color: #ffffff;
}

.cookie-accept:hover,
.cookie-accept:focus-visible {
  background: #8f6538;
  border-color: #8f6538;
}

.cookie-reject:hover,
.cookie-reject:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.cookie-policy {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 20px;
  }

  .cookie-banner-content,
  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    gap: 14px;
  }

  .cookie-accept,
  .cookie-reject {
    width: 100%;
  }

  .cookie-policy {
    text-align: center;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto auto;
    min-height: 74px;
    gap: 22px;
    padding: 11px 0;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 66px;
    padding: 8px 0;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    justify-self: end;
    border: 1px solid var(--line);
    background: var(--paper);
  }

  .brand img {
    width: auto;
    height: 67px;
    max-width: 238px;
  }

  .site-header.is-scrolled .brand img {
    height: 60px;
    max-width: 214px;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-nav.is-open,
  .header-actions.is-open {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-nav.is-open {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    padding: 13px 0;
  }

  .header-actions.is-open {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 20px;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-layout {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .process-grid,
  .stats-grid,
  .brand-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .process article:not(:last-child)::after {
    display: none;
  }

  .reviews-layout,
  .quote-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 60px;
    padding: 10px 0;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 54px;
    padding: 7px 0;
  }

  .brand img {
    height: 53px;
    max-width: 154px;
  }

  .site-header.is-scrolled .brand img {
    height: 48px;
    max-width: 140px;
  }

  .section-pad {
    padding: 62px 0;
  }

  .hero,
  .hero-content {
    min-height: calc(100vh - 60px);
    height: auto;
    max-height: none;
    width: var(--container);
    margin-inline: auto;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.66) 54%, rgba(10, 10, 10, 0.24) 100%);
  }

  .hero-bg {
    object-position: 63% center;
  }

  .hero-content {
    padding: 48px 0 76px;
  }

  .hero h1 {
    font-size: clamp(40px, 10.8vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.025em;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-contact {
    width: 100%;
  }

  .hero-scroll {
    bottom: 43px;
    gap: 5px;
    font-size: 11px;
  }

  .hero-scroll-icon {
    width: 16px;
    height: 26px;
  }

  .hero-phone strong {
    font-size: 22px;
  }

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .benefits-grid,
  .portfolio-grid,
  .review-cards,
  .quote-form,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid article,
  .benefits-grid article:first-child {
    min-height: 108px;
    padding: 16px 13px;
  }

  .process-grid,
  .stats-grid,
  .brand-strip {
    grid-template-columns: 1fr;
  }

  .form-wide,
  .file-field {
    grid-column: auto;
  }

  .quote-form {
    padding: 18px;
  }

  .project-card,
  .project-card img {
    min-height: 0;
  }

  .project-card.wide {
    grid-column: auto;
  }

  .portfolio-grid-kitchens .project-card:first-child,
  .portfolio-grid-kitchens .project-card:nth-child(2),
  .portfolio-grid-kitchens .project-card:nth-child(3) {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .portfolio-shell[data-active-category="sypialnie"] .portfolio-grid-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .project-card[data-category="lazienki"].wide,
  .project-card[data-category="lazienki"].bathroom-stack,
  .project-card[data-category="sypialnie"],
  .project-card[data-category="szafy"].wide,
  .project-card[data-category="szafy"].bathroom-stack,
  .portfolio-shell[data-active-category="szafy"] .project-card[data-category="szafy"][href$="aspar-szafy-02.jpg"],
  .portfolio-shell[data-active-category="szafy"] .project-card[data-category="szafy"][href$="aspar-szafy-04.jpg"],
  .portfolio-shell[data-active-category="szafy"] .project-card[data-category="szafy"][href$="aspar-szafy-05.jpg"],
  .portfolio-shell[data-active-category="szafy"] .project-card[data-category="szafy"][href$="aspar-szafy-06.jpg"] {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .portfolio-categories {
    grid-template-columns: 1fr;
  }

  .portfolio-category-card,
  .portfolio-category-card.is-featured,
  .portfolio-category-card:nth-child(4),
  .portfolio-category-card:nth-child(5) {
    grid-column: auto;
    aspect-ratio: auto;
  }

  .portfolio-category-card img {
    min-height: 240px;
  }

  .portfolio-gallery-head {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .portfolio-back {
    justify-content: center;
    width: 100%;
  }

  .gallery-lightbox {
    padding: 18px;
  }

  .gallery-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .gallery-lightbox-prev {
    left: 12px;
  }

  .gallery-lightbox-next {
    right: 12px;
  }

  .footer-inner,
  .site-footer nav {
    justify-items: center;
    text-align: center;
  }

  .footer-copy {
    justify-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-bg,
  .hero-content > *,
  .hero-scroll {
    animation: none;
  }

  .hero-bg,
  .hero-content,
  .reveal-section {
    opacity: 1;
    transform: none;
  }

  .reveal-section {
    transition: none;
  }
}
