:root {
  --color-white: #ffffff;
  --color-black: #171717;
  --color-text: #222222;
  --color-muted: #666666;
  --color-border: #e8e0d3;
  --color-soft: #faf7f1;
  --color-gold: #c7983a;
  --color-gold-dark: #9f7628;
  --shadow: 0 22px 60px rgba(23, 23, 23, .10);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-white);
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 9999;
  left: 20px;
  top: 20px;
  padding: 12px 18px;
  background: var(--color-black);
  color: var(--color-white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 224, 211, .85);
}
.site-header__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}
.site-logo__img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 12px;
}
.site-logo__text {
  display: grid;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.site-logo__text strong {
  font-size: 19px;
  font-weight: 800;
}
.site-logo__text span {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-muted);
}
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 16px;
  font-weight: 700;
}
.main-nav a { padding: 12px 0; }
.main-nav a:hover { color: var(--color-gold-dark); }
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.menu-toggle { display: none; }

.section { padding: 96px 0; }
.section--soft { background: var(--color-soft); }
.eyebrow {
  margin: 0 0 16px;
  color: var(--color-gold-dark);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  color: var(--color-black);
  letter-spacing: -0.045em;
  line-height: 1.08;
}
h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(44px, 6.5vw, 82px);
  font-weight: 800;
}
h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
}
h3 {
  margin-bottom: 14px;
  font-size: 25px;
  font-weight: 800;
}
p { margin-bottom: 18px; }
.section-heading { max-width: 820px; margin-bottom: 44px; }
.section-heading--center { text-align: center; margin-inline: auto; }
.section-heading p:not(.eyebrow) { color: var(--color-muted); font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-gold); color: var(--color-black); }
.btn--primary:hover { background: #d8ab50; }
.btn--secondary { background: var(--color-white); border-color: var(--color-border); color: var(--color-black); }
.btn--secondary:hover { border-color: var(--color-gold); }

.hero { padding: 78px 0 92px; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .78fr);
  align-items: center;
  gap: 58px;
}
.hero__lead {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.42;
  font-weight: 700;
  color: var(--color-black);
}
.hero__text { max-width: 680px; color: var(--color-muted); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero__image {
  position: relative;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 12px);
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.hero__image:before {
  content: '';
  position: absolute;
  inset: auto -24px -24px auto;
  width: 42%;
  height: 42%;
  border-radius: 28px;
  background: var(--color-soft);
  z-index: -1;
}
.hero__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.features { padding: 0 0 82px; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card, .offer-card, .process-step, .contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}
.feature-card {
  padding: 30px;
}
.feature-card span, .process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--color-soft);
  color: var(--color-gold-dark);
  font-weight: 800;
}
.feature-card h2 { font-size: 25px; margin-bottom: 12px; }
.feature-card p { margin-bottom: 0; color: var(--color-muted); font-size: 17px; line-height: 1.65; }

.about__grid {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 72px;
}
.about__content {
  font-size: 20px;
  font-weight: 500;
  color: #383838;
}
.about__content p:last-child { margin-bottom: 0; }

.offer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.offer-card {
  padding: 34px;
  min-height: 230px;
  box-shadow: 0 12px 40px rgba(23,23,23,.04);
}
.offer-card:before {
  content: '';
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 26px;
  border-radius: 99px;
  background: var(--color-gold);
}
.offer-card p { margin-bottom: 0; color: var(--color-muted); font-size: 17px; line-height: 1.65; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  border: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-soft);
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(23,23,23,.08);
}
.gallery-item.is-large { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item.is-large img { aspect-ratio: auto; }
.gallery-item:hover img { transform: scale(1.045); }

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.process-step { padding: 30px; }
.process-step h3 { font-size: 22px; }
.process-step p { margin-bottom: 0; color: var(--color-muted); font-size: 17px; line-height: 1.65; }

.contact {
  background: var(--color-black);
  color: var(--color-white);
}
.contact h2, .contact h3 { color: var(--color-white); }
.contact p { color: rgba(255,255,255,.78); }
.contact .eyebrow { color: #e4bd65; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 70px;
  align-items: center;
}
.contact__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.contact .btn--secondary { background: transparent; border-color: rgba(255,255,255,.24); color: var(--color-white); }
.contact-card {
  display: grid;
  gap: 10px;
  padding: 38px;
  color: var(--color-black);
  font-style: normal;
}
.contact-card strong {
  margin-bottom: 6px;
  font-size: 23px;
  line-height: 1.25;
}
.contact-card hr {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--color-border);
  margin: 18px 0;
}
.contact-card a {
  font-weight: 800;
  color: var(--color-gold-dark);
  word-break: break-word;
}

.site-footer { padding: 26px 0; background: #0d0d0d; color: rgba(255,255,255,.72); font-size: 15px; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--color-white); font-weight: 700; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, .88);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(100%, 1120px);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0,0,0,.45);
}
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-black);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .gallery-item img { transition: none; }
}

@media (max-width: 1024px) {
  .site-header__inner { min-height: 82px; }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    width: 54px;
    height: 54px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }
  .menu-toggle span:not(.sr-only) { width: 22px; height: 2px; background: var(--color-black); }
  .main-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 92px;
    display: none;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: var(--color-white);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 16px 12px; border-bottom: 1px solid var(--color-border); }
  .main-nav a:last-child { border-bottom: 0; }
  .header-phone { display: none; }
  .hero__inner, .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 42px; }
  .hero__image img { aspect-ratio: 16 / 11; }
  .features__grid, .offer__grid { grid-template-columns: 1fr 1fr; }
  .process__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 17px; line-height: 1.7; }
  .container { width: min(100% - 28px, var(--container)); }
  .site-logo__img { width: 54px; height: 54px; }
  .site-logo__text strong { font-size: 17px; }
  .site-logo__text span { font-size: 13px; }
  .hero { padding: 44px 0 58px; }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  h2 { font-size: clamp(31px, 9vw, 42px); }
  .section { padding: 68px 0; }
  .hero__actions, .contact__actions { display: grid; }
  .btn { width: 100%; min-height: 64px; padding-inline: 18px; }
  .features { padding-bottom: 58px; }
  .features__grid, .offer__grid, .process__grid, .gallery__grid { grid-template-columns: 1fr; }
  .gallery-item.is-large { grid-row: auto; }
  .gallery-item img { min-height: 280px; aspect-ratio: 4 / 3; }
  .contact-card { padding: 28px; }
  .site-footer__inner { display: grid; }
}

/* Dekory i rozbudowana galeria */
.hero,
.about,
.offer,
.gallery,
.process,
.contact {
  position: relative;
}

.hero:before,
.offer:before,
.gallery:before,
.contact:before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero:before {
  right: max(20px, calc((100vw - var(--container)) / 2));
  top: 42px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(199, 152, 58, .36);
  border-radius: 50%;
}

.offer:before {
  left: 0;
  top: 54px;
  width: 120px;
  height: 240px;
  background: repeating-linear-gradient(135deg, rgba(199, 152, 58, .14) 0 2px, transparent 2px 16px);
  opacity: .75;
}

.gallery:before {
  right: 0;
  top: 80px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(199, 152, 58, .34) 2px, transparent 3px);
  background-size: 20px 20px;
  opacity: .5;
}

.contact:before {
  left: 0;
  bottom: 0;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.hero > *,
.about > *,
.offer > *,
.gallery > *,
.process > *,
.contact > * {
  position: relative;
  z-index: 1;
}

.section-heading:after {
  content: '';
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 28px;
  border-radius: 999px;
  background: var(--color-gold);
}

.section-heading--center:after {
  margin-inline: auto;
}

.gallery-slider {
  position: relative;
}

.gallery-slider__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -18px 0 20px;
}

.gallery-slider__top p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  font-weight: 600;
}

.gallery-slider__controls {
  display: flex;
  gap: 10px;
}

.gallery-slider__btn {
  width: 54px;
  height: 54px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-black);
  font-size: 25px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.gallery-slider__btn:hover {
  border-color: var(--color-gold);
  background: var(--color-soft);
  transform: translateY(-2px);
}

.gallery__grid[data-gallery-scroll] {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 31%);
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 28px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.gallery__grid[data-gallery-scroll] .gallery-item {
  scroll-snap-align: start;
}

.gallery__grid[data-gallery-scroll] .gallery-item.is-large {
  grid-row: auto;
}

.gallery__grid[data-gallery-scroll] .gallery-item img {
  min-height: 360px;
  aspect-ratio: 4 / 5;
}

.gallery__grid[data-gallery-scroll]::-webkit-scrollbar {
  height: 10px;
}

.gallery__grid[data-gallery-scroll]::-webkit-scrollbar-track {
  background: var(--color-soft);
  border-radius: 999px;
}

.gallery__grid[data-gallery-scroll]::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 999px;
}

.map-section {
  width: 100%;
  background: #111;
  line-height: 0;
}

.map-section iframe {
  display: block;
  width: 100%;
  min-height: 460px;
  filter: grayscale(1) contrast(1.08) brightness(.92);
}

@media (max-width: 1024px) {
  .gallery__grid[data-gallery-scroll] {
    grid-auto-columns: minmax(260px, 44%);
  }
}

@media (max-width: 680px) {
  .hero:before,
  .offer:before,
  .gallery:before {
    display: none;
  }

  .gallery-slider__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery__grid[data-gallery-scroll] {
    grid-auto-columns: minmax(260px, 86%);
  }

  .gallery__grid[data-gallery-scroll] .gallery-item img {
    min-height: 330px;
  }

  .map-section iframe {
    min-height: 380px;
  }
}

/* v3: galeria klasyczna + więcej dekorów + przewijanie w lightboxie */
.hero:after,
.about:before,
.about:after,
.features:before,
.features:after,
.process:before,
.process:after,
.map-section:before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.features,
.map-section {
  position: relative;
  overflow: hidden;
}

.features:before {
  left: max(14px, calc((100vw - var(--container)) / 2));
  top: -34px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(199, 152, 58, .24);
  border-radius: 50%;
}

.features:after {
  right: max(14px, calc((100vw - var(--container)) / 2));
  bottom: 26px;
  width: 210px;
  height: 76px;
  background: radial-gradient(circle, rgba(199, 152, 58, .28) 2px, transparent 3px);
  background-size: 18px 18px;
  opacity: .45;
}

.hero:after {
  left: -42px;
  bottom: 34px;
  width: 220px;
  height: 220px;
  background: repeating-linear-gradient(135deg, rgba(199, 152, 58, .12) 0 2px, transparent 2px 15px);
  border-radius: 40px;
  transform: rotate(10deg);
}

.about:before {
  left: max(14px, calc((100vw - var(--container)) / 2));
  bottom: 62px;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.about:after {
  right: 5vw;
  top: 78px;
  width: 90px;
  height: 90px;
  border-top: 2px solid rgba(199, 152, 58, .42);
  border-right: 2px solid rgba(199, 152, 58, .42);
}

.process:before {
  left: 0;
  bottom: 80px;
  width: 130px;
  height: 220px;
  background: radial-gradient(circle, rgba(199, 152, 58, .24) 2px, transparent 3px);
  background-size: 20px 20px;
  opacity: .42;
}

.process:after {
  right: max(14px, calc((100vw - var(--container)) / 2));
  top: 64px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(199, 152, 58, .22);
  border-radius: 50%;
}

.map-section:before {
  left: 0;
  top: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-gold), transparent 42%, var(--color-gold));
  z-index: 2;
}

.feature-card,
.offer-card,
.process-step,
.contact-card,
.hero__image {
  position: relative;
}

.feature-card:after,
.offer-card:after,
.process-step:after {
  content: '';
  position: absolute;
  right: 22px;
  top: 22px;
  width: 28px;
  height: 28px;
  border-top: 2px solid rgba(199, 152, 58, .28);
  border-right: 2px solid rgba(199, 152, 58, .28);
}

.gallery-wrap {
  position: relative;
}

.gallery-wrap:before {
  content: '';
  position: absolute;
  left: -24px;
  top: -24px;
  width: 96px;
  height: 96px;
  border-left: 2px solid rgba(199, 152, 58, .34);
  border-top: 2px solid rgba(199, 152, 58, .34);
  pointer-events: none;
}

.gallery-wrap:after {
  content: '';
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 150px;
  height: 80px;
  background: repeating-linear-gradient(135deg, rgba(199, 152, 58, .16) 0 2px, transparent 2px 14px);
  pointer-events: none;
  z-index: -1;
}

.gallery__grid,
.gallery__grid[data-gallery-scroll] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 18px;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.gallery__grid[data-gallery-scroll] .gallery-item img,
.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item--large,
.gallery-item.is-large {
  grid-row: span 2;
}

.gallery-item--large img,
.gallery-item.is-large img,
.gallery__grid[data-gallery-scroll] .gallery-item--large img {
  aspect-ratio: auto;
}

.gallery-slider__top,
.gallery-slider__controls {
  display: none;
}

.lightbox {
  gap: 22px;
}

.lightbox__nav {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--color-black);
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background-color .2s ease;
}

.lightbox__nav:hover {
  transform: scale(1.05);
  background: var(--color-gold);
}

.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--color-black);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .gallery__grid,
  .gallery__grid[data-gallery-scroll] {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .lightbox__nav:hover {
    transform: translateY(-50%) scale(1.05);
  }

  .lightbox__nav--prev { left: 18px; }
  .lightbox__nav--next { right: 18px; }
}

@media (max-width: 680px) {
  .features:before,
  .features:after,
  .hero:after,
  .about:before,
  .about:after,
  .process:before,
  .process:after,
  .gallery-wrap:before,
  .gallery-wrap:after {
    display: none;
  }

  .gallery__grid,
  .gallery__grid[data-gallery-scroll] {
    grid-template-columns: 1fr;
  }

  .gallery-item--large,
  .gallery-item.is-large {
    grid-row: auto;
  }

  .gallery__grid[data-gallery-scroll] .gallery-item img,
  .gallery-item img {
    min-height: 280px;
    aspect-ratio: 4 / 3;
  }

  .lightbox {
    padding: 76px 14px 72px;
  }

  .lightbox img {
    max-height: 76vh;
  }

  .lightbox__nav {
    width: 52px;
    height: 52px;
    font-size: 40px;
  }

  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}
