@font-face { font-family: 'Manrope'; src: url('assets/fonts/Manrope.ttf') format('truetype'); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('assets/fonts/DMSerifDisplay-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  --ink: #111111;
  --paper: #f8f2ed;
  --cocoa: #5a392b;
  --white: #fffdfb;
  --taupe: #cbbdb2;
  --line: rgba(17, 17, 17, 0.16);
  --muted: #6d6660;
  --display: "DM Serif Display", Georgia, serif;
  --body: "Manrope", Arial, sans-serif;
  --header-height: 112px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: var(--header-height); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.7; }
body.menu-open { overflow: hidden; }
img, video { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: 10px clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 242, 237, 0.96);
  backdrop-filter: blur(14px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.32s ease;
}
.site-header.is-scrolled::after { transform: scaleY(1); }
.brand { width: clamp(230px, 20vw, 330px); height: 82px; display: flex; align-items: center; overflow: visible; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
.main-nav a:not(.nav-contact) { position: relative; }
.main-nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { border: 1px solid var(--ink); padding: 12px 18px; transition: background 0.25s ease, color 0.25s ease; }
.nav-contact:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; }

.hero-video {
  position: relative;
  height: clamp(520px, 72vh, 820px);
  margin-top: var(--header-height);
  overflow: hidden;
  color: var(--white);
  background: #302b27;
}
.hero-slideshow { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: var(--hero-start);
  transition: opacity 1s ease;
  will-change: transform, opacity;
}
.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}
.hero-slide.is-leaving {
  z-index: 0;
  opacity: 0;
}
.hero-slide.is-moving {
  transition: opacity 1s ease, transform 4s linear;
  transform: var(--hero-end);
}
.hero-slide--left {
  --hero-start: scale(1.045) translate3d(-1.3%, -0.7%, 0);
  --hero-end: scale(1.01) translate3d(1.3%, 0.7%, 0);
}
.hero-slide--right {
  --hero-start: scale(1.045) translate3d(1.3%, 0.7%, 0);
  --hero-end: scale(1.01) translate3d(-1.3%, -0.7%, 0);
}
.hero-slide--up {
  --hero-start: scale(1.045) translate3d(0, 1.2%, 0);
  --hero-end: scale(1.01) translate3d(0, -1.2%, 0);
}
.hero-slide--down {
  --hero-start: scale(1.045) translate3d(0, -1.2%, 0);
  --hero-end: scale(1.01) translate3d(0, 1.2%, 0);
}
.hero-slide--diagonal {
  --hero-start: scale(1.045) translate3d(-1%, 1%, 0);
  --hero-end: scale(1.01) translate3d(1%, -1%, 0);
}
.hero-video-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17, 0.05) 28%, rgba(17, 17, 17, 0.65) 100%); }
.hero-video-copy { position: absolute; z-index: 2; left: clamp(24px, 6vw, 100px); right: clamp(24px, 6vw, 100px); bottom: clamp(40px, 7vh, 84px); }
.hero-video h1 { margin: 0; font-family: var(--display); font-size: clamp(52px, 7vw, 92px); font-weight: 400; line-height: 0.96; letter-spacing: -0.025em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.26); }
.hero-video h1 span { display: block; }

.hero-intro { padding: 54px clamp(24px, 8vw, 140px) 64px; }
.hero-intro p { max-width: 920px; margin: 0; font-size: 16px; line-height: 1.85; }

.eyebrow { margin: 0 0 22px; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }

.parallax-break { position: relative; height: calc(36vh + 70px); min-height: 400px; max-height: 560px; overflow: hidden; display: grid; place-items: center; color: var(--white); }
.parallax-media { position: absolute; inset: -18% 0; background: url("assets/parallax-guests.webp") center 42% / cover no-repeat; transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.03); will-change: transform; }
.parallax-shade { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.42); }
.parallax-break p { position: relative; z-index: 2; max-width: 1100px; margin: 0; padding: 30px; text-align: center; font-family: var(--display); font-size: clamp(36px, 5vw, 72px); line-height: 1.06; }

.manifesto { padding: 140px clamp(24px, 8vw, 140px); display: grid; grid-template-columns: 160px 1fr; gap: 48px; }
.section-label { padding-top: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.manifesto-copy { max-width: 1180px; }
.manifesto h2 { max-width: 1120px; margin: 0; font-family: var(--display); font-size: clamp(46px, 5vw, 69.05px); font-weight: 400; line-height: 1.03; letter-spacing: -0.025em; }
.about-text { max-width: 960px; margin-top: 54px; font-size: 16px; line-height: 1.85; }
.about-text p { margin: 0 0 20px; }
.about-text p:last-child { margin-bottom: 0; }

.offer-break { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 660px; background: var(--white); }
.offer-break-copy { padding: clamp(70px, 9vw, 140px); display: flex; flex-direction: column; justify-content: center; color: #77716c; font-family: var(--display); font-size: clamp(25px, 2.4vw, 40px); line-height: 1.25; }
.offer-break-copy p { margin: 0 0 24px; }
.offer-break-copy p:last-child { margin-bottom: 0; }
.offer-break-photo { margin: 0; min-height: 560px; overflow: hidden; }
.offer-break-photo img { height: 100%; object-fit: cover; object-position: center 30%; }

.service-story { display: grid; grid-template-columns: 1fr 1fr; min-height: 860px; background: var(--cocoa); color: var(--paper); }
.service-photo { min-height: 640px; overflow: hidden; }
.service-photo img { height: 100%; object-fit: cover; object-position: center; filter: saturate(1.05) contrast(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.service-photo:hover img { transform: scale(1.025); }
.service-content { padding: clamp(70px, 9vw, 140px); display: flex; flex-direction: column; justify-content: center; }
.service-content h2 { margin: 0; font-family: var(--display); font-size: clamp(46px, 5vw, 78px); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; }
.service-intro { max-width: 620px; margin: 30px 0 46px; color: rgba(248, 242, 237, 0.72); }
.service-steps { margin: 0 0 48px; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid rgba(248, 242, 237, 0.22); }
.service-steps li { counter-increment: step; padding: 20px 0; display: grid; grid-template-columns: 36px 160px 1fr; gap: 16px; border-bottom: 1px solid rgba(248, 242, 237, 0.22); }
.service-steps li::before { content: "0" counter(step); font-size: 10px; letter-spacing: 0.14em; color: rgba(248, 242, 237, 0.5); }
.service-steps strong { font-size: 13px; }
.service-steps span { color: rgba(248, 242, 237, 0.66); font-size: 13px; }

.button { min-height: 52px; padding: 15px 24px; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; cursor: pointer; transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: transparent; color: var(--ink); }

.realizations { padding: 120px clamp(24px, 7vw, 120px); }
.realizations-head { margin-bottom: 50px; }
.realizations h2 { max-width: 880px; margin: 0; font-family: var(--display); font-size: clamp(50px, 6vw, 88px); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery figure { position: relative; min-width: 0; height: clamp(250px, 25vw, 380px); margin: 0; overflow: hidden; background: #d9cec5; transform: translateZ(0); }
.gallery img { height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.15s cubic-bezier(.19,1,.22,1); will-change: transform; }
.gallery figure:hover img { transform: scale(1.075); }
.gallery figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 17px 19px; display: grid; gap: 2px; background: rgba(255, 253, 251, 0.95); backdrop-filter: blur(8px); font-size: 20px; font-weight: 600; line-height: 1.25; }
.gallery figcaption small { color: var(--muted); font-size: 15px; font-weight: 400; }

.contact { padding: 130px clamp(24px, 7vw, 120px); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(60px, 10vw, 160px); background: var(--white); }
.contact-info { max-width: 520px; }
.contact h2 { margin: 0 0 28px; font-family: var(--display); font-size: clamp(44px, 4.4vw, 72px); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; }
.contact h2 span { display: block; white-space: nowrap; }
.contact-info > p:not(.eyebrow) { color: var(--muted); font-size: 20px; }
.contact dd { margin: 0; font-size: 20px; }
.contact dl { margin: 104px 0 0; }
.contact dl div { padding: 18px 0; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.contact dt { font-size: 20px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.contact dd { margin: 0; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 22px; }
.field { display: grid; gap: 9px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 20px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.field label span { color: var(--muted); font-weight: 400; text-transform: none; }
.field input, .field textarea { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; outline: none; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-width: 2px; }
.field input::placeholder, .field textarea::placeholder { color: #948b84; }
.contact-form .button { width: 100%; margin-top: 8px; }
.form-note { margin: -12px 0 0; color: var(--muted); font-size: 22px; text-align: center; }

.site-footer { padding: 58px clamp(24px, 5vw, 80px); display: grid; grid-template-columns: minmax(280px, 390px) 1fr auto; align-items: center; gap: 46px; border-top: 1px solid var(--line); font-size: 15px; }
.footer-brand { width: 100%; max-width: 320px; height: 92px; display: flex; align-items: center; overflow: visible; }
.footer-brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.company-data { display: grid; gap: 2px; line-height: 1.5; }
.company-data strong { font-size: 17px; }
.company-data span { color: var(--muted); }
.footer-meta { display: grid; gap: 5px; color: var(--muted); text-align: right; font-size: 14px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-video-media { display: none; }
}

@media (max-width: 1080px) {
  .manifesto { grid-template-columns: 110px 1fr; }
  .offer-break-copy { padding: 70px 54px; }
  .service-content { padding: 70px 54px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .contact-info { max-width: 700px; }
  .site-footer { grid-template-columns: minmax(260px, 340px) 1fr; }
  .footer-meta { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; text-align: left; }
  .footer-meta span:last-child { text-align: right; }
}

@media (max-width: 760px) {
  :root { --header-height: 92px; }
  .site-header { padding: 7px 20px; }
  .brand { width: 210px; height: 70px; }
  .menu-toggle { position: relative; z-index: 60; width: 44px; height: 44px; padding: 0; display: grid; place-content: center; gap: 7px; border: 1px solid var(--ink); background: var(--paper); }
  .menu-toggle span:not(.sr-only) { width: 20px; height: 1px; background: var(--ink); }
  .main-nav { position: fixed; z-index: 55; inset: 0; padding: 120px 30px 50px; display: flex; flex-direction: column; justify-content: center; gap: 24px; background: var(--paper); font-family: var(--display); font-size: 36px; font-weight: 400; transform: translateX(100%); transition: transform 0.35s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .nav-contact { margin-top: 10px; font-family: var(--body); font-size: 12px; }
  .hero-video { height: 68vh; min-height: 520px; }
  .hero-video-copy { left: 20px; right: 20px; bottom: 38px; }
  .hero-video h1 { font-size: clamp(43px, 12vw, 64px); }
  .hero-intro { padding: 38px 20px 48px; }
  .parallax-break { height: 48vh; min-height: 380px; }
  .parallax-break p { font-size: clamp(34px, 10vw, 52px); }
  .manifesto { padding: 90px 20px; grid-template-columns: 1fr; gap: 24px; }
  .manifesto h2 { font-size: clamp(44px, 12vw, 58px); }
  .about-text { margin-top: 38px; }
  .offer-break { grid-template-columns: 1fr; min-height: 0; }
  .offer-break-copy { padding: 76px 20px; font-size: 29px; }
  .offer-break-photo { min-height: 500px; }
  .service-story { grid-template-columns: 1fr; }
  .service-photo { min-height: 520px; }
  .service-content { padding: 80px 20px; }
  .service-steps li { grid-template-columns: 32px 1fr; }
  .service-steps span { grid-column: 2; }
  .realizations { padding: 90px 20px; }
  .gallery { grid-template-columns: 1fr; gap: 16px; }
  .gallery figure { height: 360px; }
  .gallery figcaption { font-size: 19px; }
  .gallery figcaption small { font-size: 15px; }
  .contact { padding: 90px 20px; gap: 60px; }
  .contact h2 { font-size: clamp(36px, 10vw, 58px); }
  .contact-form { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .site-footer { padding: 42px 20px; grid-template-columns: 1fr; gap: 18px; font-size: 15px; }
  .footer-brand { max-width: 300px; height: 86px; }
  .footer-meta { grid-column: auto; grid-template-columns: 1fr; text-align: left; }
  .footer-meta span:last-child { text-align: left; }
}


/* Korekty układu po akceptacji projektu */
.hero-video-media { display: block; }
.parallax-break p span,
.manifesto h2 span,
.contact h2 span { display: block; }

.offer-break {
  grid-template-columns: 48% 52%;
  min-height: 0;
  align-items: center;
  padding: clamp(70px, 8vw, 120px) 0;
}
.offer-break-photo {
  min-height: 0;
  height: min(72vh, 680px);
}
.offer-break-photo img { object-position: center 28%; }

.service-story { grid-template-columns: 48% 52%; }
.service-photo img { transition: none; }
.service-photo:hover img { transform: none; }

.realizations h2 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(46px, 5.35vw, 82px);
}
.gallery figcaption {
  max-height: 74px;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(.19,1,.22,1), padding 0.55s cubic-bezier(.19,1,.22,1);
}
.gallery figcaption small {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 0.55s cubic-bezier(.19,1,.22,1), margin-top 0.4s ease, opacity 0.35s ease, transform 0.55s cubic-bezier(.19,1,.22,1);
}
.gallery figure:hover figcaption,
.gallery figure:focus-within figcaption {
  max-height: 190px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.gallery figure:hover figcaption small,
.gallery figure:focus-within figcaption small {
  max-height: 100px;
  margin-top: 9px;
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .parallax-break p span,
  .manifesto h2 span,
  .contact h2 span { display: initial; }
  .parallax-break p span::after,
  .manifesto h2 span::after,
  .contact h2 span::after { content: " "; }
  .offer-break { grid-template-columns: 1fr; padding: 0; }
  .offer-break-photo { height: min(68vh, 580px); }
  .service-story { grid-template-columns: 1fr; }
  .realizations h2 { white-space: normal; }
  .gallery figcaption { max-height: 190px; }
  .gallery figcaption small { max-height: 100px; margin-top: 9px; opacity: 1; transform: none; }
}


/* Płynna paralaksa i korekty kadrowania */
.offer-break-photo img { object-position: center 72%; }

@media (max-width: 760px) {
  .parallax-break p span,
  .manifesto h2 span,
  .contact h2 span { display: block; }
  .parallax-break p span::after,
  .manifesto h2 span::after,
  .contact h2 span::after { content: ""; }
  .offer-break-photo img { object-position: center 74%; }
}


/* Sekcja blog */
.blog-section {
  padding: clamp(90px, 9vw, 150px) clamp(24px, 7vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(56px, 9vw, 140px);
  background: var(--paper);
}
.blog-photo {
  height: min(68vh, 700px);
  margin: 0;
  overflow: hidden;
}
.blog-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.15s cubic-bezier(.19,1,.22,1);
}
.blog-content { max-width: 620px; }
.blog-content h2 {
  margin: 0 0 30px;
  font-family: var(--display);
  font-size: clamp(50px, 5.5vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.blog-content > p:not(.eyebrow) {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.blog-button {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.blog-button:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .blog-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .blog-photo { height: min(62vh, 600px); }
  .blog-content { max-width: 760px; }
}

@media (max-width: 760px) {
  .blog-section { padding: 90px 20px; }
  .blog-photo { height: 480px; }
  .blog-content h2 { font-size: clamp(46px, 12vw, 64px); }
}


/* Dalsze dopracowanie hierarchii i zdjęć */
.hero-video-copy {
  right: auto;
  max-width: min(1180px, calc(100% - 48px));
  padding: 24px 34px 30px;
  background: transparent;
}
.hero-video h1 { font-style: italic; }
.hero-intro p {
  max-width: 1050px;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.65;
}
.parallax-break p {
  max-width: 1300px;
  font-size: clamp(32px, 4.3vw, 64px);
}
@media (min-width: 761px) {
  .parallax-break p span { white-space: nowrap; }
}
.section-label { font-size: 20px; }
.contact .eyebrow,
.realizations-head .eyebrow,
.blog-content .eyebrow { font-size: 20px; }
.manifesto .eyebrow {
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: 0.12em;
}
.manifesto h2 .about-tagline {
  color: var(--muted);
  font-style: italic;
}
.offer-break-copy p:first-child { color: var(--ink); }
.service-photo img { object-position: center bottom; }

@media (max-width: 760px) {
  .hero-video-copy {
    right: 20px;
    max-width: none;
    padding: 18px 20px 22px;
  }
  .parallax-break p span { white-space: normal; }
  .section-label { font-size: 18px; }
  .field label,
  .contact dt,
  .contact-info > p:not(.eyebrow),
  .contact dd { font-size: 18px; }
  .manifesto .eyebrow { font-size: 18px; }
  .contact .eyebrow,
  .realizations-head .eyebrow,
  .blog-content .eyebrow { font-size: 18px; }
}


/* Galeria: płynne powiększanie niezależnie od preferencji animacji systemu */
@media (prefers-reduced-motion: reduce) {
  .gallery img {
    transition: transform 1.15s cubic-bezier(.19, 1, .22, 1) !important;
  }
  .gallery figcaption,
  .gallery figcaption small {
    transition-duration: 0.55s !important;
  }
}


/* Sekcja pod paralaksą */
.parallax-intro {
  padding: 112px clamp(24px, 8vw, 140px) 118px;
  background: var(--paper);
}
.parallax-intro h2 {
  max-width: 1120px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(46px, 5vw, 69.05px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.parallax-intro h2 span { display: block; }
.parallax-intro p {
  max-width: 1050px;
  margin: 42px 0 0;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.65;
}
@media (max-width: 760px) {
  .parallax-intro { padding: 82px 20px 88px; }
  .parallax-intro h2 { font-size: clamp(42px, 11vw, 58px); }
  .parallax-intro p { margin-top: 32px; }
}


/* Niższa sekcja Nasza perełka i ciaśniejsze kadrowanie zdjęcia */
@media (min-width: 761px) {
  .service-story {
    min-height: 760px;
  }
  .service-content {
    padding: 80px clamp(40px, 6vw, 96px);
  }
  .service-photo {
    min-height: 0;
  }
}


@media (min-width: 761px) {
  .service-story {
    height: 900px;
    min-height: 0;
  }
  .service-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}


/* Rotacja zdjęć w kafelkach realizacji */
.gallery-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.gallery-slideshow .gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(100%, 0, 0) scale(1.001);
  transition: transform 0.9s cubic-bezier(.19, 1, .22, 1), opacity 0.9s ease !important;
}
.gallery-slideshow .gallery-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.001);
}
.gallery-slideshow .gallery-slide.is-entering {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.001);
}
.gallery-slideshow .gallery-slide.is-leaving {
  opacity: 0;
}
.gallery-slideshow:hover .gallery-slide.is-active {
  transform: scale(1.075);
}


/* Płynne przenikanie zdjęć zamiast przesuwania */
.gallery-slideshow .gallery-slide,
.gallery-slideshow .gallery-slide.is-active,
.gallery-slideshow .gallery-slide.is-entering,
.gallery-slideshow .gallery-slide.is-leaving {
  transform: scale(1.001);
  transition: opacity 0.9s ease, transform 1.15s cubic-bezier(.19, 1, .22, 1) !important;
}
.gallery-slideshow .gallery-slide.is-active {
  opacity: 1;
}
.gallery-slideshow .gallery-slide.is-entering,
.gallery-slideshow .gallery-slide.is-leaving {
  opacity: 0;
}
.gallery-slideshow:hover .gallery-slide.is-active {
  transform: scale(1.075);
}




/* Kadrowanie zapisywane w panelu administratora */
.gallery-slideshow .gallery-slide {
  object-position: var(--gallery-focus-desktop, 50% 50%);
}
@media (max-width: 1024px) {
  .gallery-slideshow .gallery-slide {
    object-position: var(--gallery-focus-tablet, var(--gallery-focus-desktop, 50% 50%));
  }
}
@media (max-width: 760px) {
  .gallery-slideshow .gallery-slide {
    object-position: var(--gallery-focus-mobile, var(--gallery-focus-tablet, var(--gallery-focus-desktop, 50% 50%)));
  }
}

/* Formularz kontaktowy */
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note.is-success { color: #496e4d; }
.form-note.is-error { color: #9e3c32; }
.contact-form button:disabled { cursor: wait; opacity: .65; }


/* Mobilny układ kontaktu: dane firmy pod formularzem */
@media (max-width: 760px) {
  .contact {
    display: flex;
    flex-direction: column;
  }

  .contact-info {
    display: contents;
  }

  .contact-info > .eyebrow {
    order: 1;
  }

  .contact-info > h2 {
    order: 2;
  }

  .contact-info > p:not(.eyebrow) {
    order: 3;
  }

  .contact-form {
    order: 4;
  }

  .contact-info > dl {
    order: 5;
    width: 100%;
    margin: 24px 0 0;
  }
}


@media (max-width: 760px) {
  .contact > dl {
    order: 5;
    width: 100%;
    margin: 24px 0 0;
  }
}


/* Mobilne menu na pełną wysokość okna */
@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    background: var(--paper);
  }
}


.offer-break-kicker {
  margin: 0 0 22px !important;
  color: var(--ink) !important;
  font-family: var(--body);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: none;
}

.offer-break-title {
  color: var(--ink) !important;
  font-family: var(--display);
  font-size: clamp(32px, 3.2vw, 52px);
  line-height: 1.12;
}

.offer-break-title span {
  display: block;
}

@media (max-width: 760px) {
  .offer-break-kicker {
    font-size: 18px;
  }

  .offer-break-title {
    font-size: 29px;
  }
}


/* Wyrównanie opisu sekcji O NAS do etykiety sekcji */
.manifesto {
  grid-template-columns: 1fr;
}

.manifesto-copy {
  max-width: 960px;
}

.about-text {
  margin-top: 0;
}


@media (max-width: 760px) {
  .menu-toggle span:not(.sr-only) {
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }
}


/* Zmniejszanie nagłówka po rozpoczęciu przewijania */
.site-header {
  transition: height 0.35s ease, padding 0.35s ease;
}

.brand {
  transition: width 0.35s ease, height 0.35s ease;
}

.site-header.is-scrolled {
  height: 67px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.site-header.is-scrolled .brand {
  width: clamp(138px, 12vw, 198px);
  height: 49px;
}

@media (max-width: 760px) {
  .site-header.is-scrolled {
    height: 60px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .site-header.is-scrolled .brand {
    width: 126px;
    height: 42px;
  }
}


/* Przy powrocie na górę najpierw znika linia pod nagłówkiem */
.site-header::after {
  transition: transform 0.22s ease;
}

.site-header.no-transition,
.site-header.no-transition .brand,
.site-header.no-transition::after {
  transition: none !important;
}

.site-header:not(.is-scrolled) {
  transition: height 0.35s ease 0.22s, padding 0.35s ease 0.22s;
}

.site-header:not(.is-scrolled) .brand {
  transition: width 0.35s ease 0.22s, height 0.35s ease 0.22s;
}

.site-header.is-scrolled {
  transition: height 0.35s ease, padding 0.35s ease;
}

.site-header.is-scrolled .brand {
  transition: width 0.35s ease, height 0.35s ease;
}

@media (max-width: 760px) {
  .site-header:not(.is-scrolled) .brand {
    transition: width 0.35s ease 0.22s, height 0.35s ease 0.22s;
  }
}


/* Linia pozostaje przy górnej krawędzi sekcji ze zdjęciami */
.site-header::after {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: auto;
  left: 0;
  height: 1px;
  transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.site-header.is-scrolled::after {
  transform: none;
  opacity: 1;
}


/* Linia wraca pod nagłówek i szybko znika przy powrocie na górę */
.site-header::after {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleY(0);
  opacity: 1;
  transition: transform 0.1s ease;
}

.site-header.is-scrolled::after {
  transform: scaleY(1);
}


/* Linia widoczna dopiero po przekroczeniu pierwotnej wysokości nagłówka */
.site-header.is-scrolled:not(.is-line-visible)::after {
  transform: scaleY(0);
}

.site-header.is-line-visible::after {
  transform: scaleY(1);
}


/* Delikatny cień poprawiający czytelność hasła na jasnych zdjęciach */
.hero-video h1 {
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.74), 0 0 34px rgba(0, 0, 0, 0.38), 0 1px 3px rgba(0, 0, 0, 0.62);
}


.hero-video h1 {
  letter-spacing: 2px;
}


.mobile-break {
  display: none;
}

@media (max-width: 760px) {
  .mobile-break {
    display: block;
  }
}


@media (max-width: 760px) {
  .hero-video h1 {
    font-size: clamp(36px, 10vw, 52px);
    letter-spacing: 2px;
  }
}


@media (min-width: 1600px) {
  .hero-intro p {
    max-width: 1500px;
  }
}


@media (min-width: 1600px) {
  .parallax-intro p {
    max-width: 1500px;
  }
}


@media (max-width: 760px) {
  .gallery figcaption {
    padding: 10px 12px;
  }
}


@media (max-width: 760px) {
  .offer-break-photo {
    order: 1;
  }

  .offer-break-copy {
    order: 2;
  }
}


.parallax-break p {
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.74), 0 0 34px rgba(0, 0, 0, 0.38), 0 1px 3px rgba(0, 0, 0, 0.62);
}


/* Większa typografia w sekcji Nasza perełka, bez zmiany głównego nagłówka */
.service-content > .eyebrow {
  font-size: clamp(15px, 1.1vw, 18px);
}

.service-intro {
  font-size: clamp(18px, 1.15vw, 21px);
  line-height: 1.5;
}

.service-steps li::before {
  font-size: 12px;
}

.service-steps strong,
.service-steps span {
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.45;
}


/* Lekko powiększony opis sekcji O NAS */
.about-text {
  font-size: clamp(17px, 1.1vw, 19px);
  line-height: 1.75;
}


/* Ręczne przełączanie zdjęć w kafelkach realizacji */
.gallery-slideshow ~ .gallery-arrow {
  position: absolute;
  top: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 30px;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(80, 80, 80, 0.52);
  color: rgba(255, 255, 255, 0.95);
  font: 400 30px/1 Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.gallery-slideshow ~ .gallery-arrow.gallery-arrow--prev {
  left: 0;
}

.gallery-slideshow ~ .gallery-arrow.gallery-arrow--next {
  right: 0;
}

.gallery-slideshow ~ .gallery-arrow {
  pointer-events: auto;
}

.gallery-slideshow:hover ~ .gallery-arrow,
.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slideshow ~ .gallery-arrow {
  font-size: 60px;
}

.gallery-arrow:hover {
  background: rgba(80, 80, 80, 0.72);
}

.gallery-arrow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -2px;
}

@media (hover: none) {
  .gallery-slideshow ~ .gallery-arrow {
    opacity: 0.72;
    pointer-events: auto;
  }
}


/* Wskaźniki pozycji i brak powiększania zdjęć w galeriach */
.gallery figure:hover img,
.gallery-slideshow:hover .gallery-slide.is-active {
  transform: scale(1.001) !important;
}

.gallery figure:has(.gallery-dots) figcaption {
  bottom: 40px;
}

.gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
}

.gallery-dot {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(220, 220, 220, 0.9);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.gallery-dot.is-active {
  background: rgba(255, 255, 255, 0.98);
}

.gallery-dot:hover,
.gallery-dot:focus-visible {
  transform: scale(1.12);
  background: #fff;
}

.gallery-arrow {
  width: 50px;
}

.gallery-arrow:hover {
  background: rgba(180, 180, 180, 0.82);
}


.gallery-slideshow ~ .gallery-arrow {
  width: 50px;
}


/* Korekta wskaźników galerii i warstwy opisu */
.gallery-dot {
  width: 9px;
  height: 9px;
  background: rgba(155, 155, 155, 0.9);
}

.gallery-dot.is-active {
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.98);
}

.gallery figcaption {
  z-index: 7;
}


.gallery-slideshow ~ .gallery-arrow {
  font-size: 60px;
}


/* Zmniejszenie przestrzeni wskaźników i paddingu opisu */
.gallery figure:has(.gallery-dots) figcaption {
  bottom: 28px;
  padding: 12px 15px;
}

.gallery figure:hover figcaption,
.gallery figure:focus-within figcaption {
  padding-top: 14px;
  padding-bottom: 14px;
}


.gallery-dots {
  bottom: 4px;
}


.gallery-dots {
  bottom: 7px;
}


/* Nawigacja gestem na urządzeniach dotykowych */
.gallery-slideshow {
  touch-action: pan-y;
}

@media (hover: none) {
  .gallery-slideshow ~ .gallery-arrow {
    opacity: 0;
    pointer-events: none;
  }
}


@media (hover: none), (pointer: coarse) {
  .gallery-slideshow ~ .gallery-arrow,
  .gallery-slideshow ~ .gallery-arrow:hover,
  .gallery-slideshow ~ .gallery-arrow:focus,
  .gallery-slideshow ~ .gallery-arrow:focus-visible {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}


@media (hover: none), (pointer: coarse) {
  .gallery figcaption {
    background: rgba(255, 253, 251, 0.5);
  }
}


@media (hover: none), (pointer: coarse) {
  .gallery figcaption {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}


@media (hover: none), (pointer: coarse) {
  .gallery figcaption {
    background: rgba(255, 253, 251, 0.3);
    color: #fff;
  }

  .gallery figcaption small {
    color: rgba(235, 235, 235, 0.82);
  }
}


@media (hover: none), (pointer: coarse) {
  .gallery figcaption {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
  }

  .gallery figcaption small {
    color: #fff;
  }
}


@media (hover: none), (pointer: coarse) {
  .gallery figcaption {
    background: rgba(0, 0, 0, 0.8);
  }
}


@media (hover: none), (pointer: coarse) {
  .gallery figcaption {
    background: rgba(0, 0, 0, 0.5);
  }
}


@media (hover: none), (pointer: coarse) {
  .gallery figcaption {
    background: rgba(0, 0, 0, 0.3);
  }
}


@media (hover: none), (pointer: coarse) {
  .gallery figcaption {
    background: rgba(0, 0, 0, 0.4);
  }
}


@media (hover: none), (pointer: coarse) {
  .gallery figcaption {
    padding: 8px 10px;
    gap: 0;
  }
}


@media (hover: none), (pointer: coarse) {
  .gallery figcaption {
    padding: 5px 8px;
    line-height: 1.1;
  }

  .gallery figcaption small {
    line-height: 1.1;
  }
}


.gallery figcaption {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.gallery figcaption small {
  color: #fff;
}


.gallery figcaption {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}


.hero-slide {
  transition: opacity 3s ease;
}

.hero-slide.is-moving {
  transition: opacity 3s ease, transform 4s linear;
}


.hero-slide {
  transition: opacity 1s ease;
}

.hero-slide.is-moving {
  transition: opacity 1s ease, transform 4s linear;
}


/* Menu Świąteczne 2026 */
.seasonal-menu-bar {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
}

.seasonal-menu-bar__button {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  background: rgba(72, 42, 29, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font: 600 12px/1.2 var(--body);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.seasonal-menu-bar__button:hover,
.seasonal-menu-bar__button:focus-visible {
  background: rgba(118, 63, 39, 0.98);
  transform: translateY(-2px);
}

.seasonal-menu-modal[hidden] {
  display: none;
}

.seasonal-menu-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.seasonal-menu-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 15, 10, 0.72);
  cursor: pointer;
}

.seasonal-menu-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 1180px);
  max-height: 94vh;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  background: #f6f1ec;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.seasonal-menu-modal__dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.seasonal-menu-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #fff;
  background: rgba(50, 28, 19, 0.84);
  font: 30px/32px Arial, sans-serif;
  cursor: pointer;
}

body.seasonal-menu-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .seasonal-menu-bar {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .seasonal-menu-bar__button {
    width: 100%;
  }

  .seasonal-menu-modal {
    padding: 10px;
  }

  .seasonal-menu-modal__dialog {
    width: 100%;
    max-height: 96vh;
    padding: 5px;
  }

  .seasonal-menu-modal__close {
    top: 8px;
    right: 8px;
  }
}


@keyframes seasonal-menu-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes seasonal-menu-dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.seasonal-menu-modal__backdrop {
  animation: seasonal-menu-backdrop-in 0.35s ease both;
}

.seasonal-menu-modal__dialog {
  animation: seasonal-menu-dialog-in 0.45s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.asset-loader { display: none; }
.loading-assets .asset-loader { display: flex; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; flex-direction: column; gap: 14px; background: rgba(246, 241, 236, 0.75); backdrop-filter: blur(5px); color: #4d3529; font: 600 14px var(--body); }
.asset-loader__spinner { width: 42px; height: 42px; border: 3px solid rgba(90, 57, 43, 0.2); border-top-color: #5a392b; border-radius: 50%; animation: asset-loader-spin 0.8s linear infinite; }
@keyframes asset-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .asset-loader__spinner { animation: none; } }

.loading-assets .asset-loader { background: #f6f1ec; backdrop-filter: none; -webkit-backdrop-filter: none; color: #111; }
.asset-loader__mark { position: relative; display: flex; align-items: center; justify-content: center; width: 180px; height: 180px; }
.asset-loader__mark img { display: block; width: 120px; max-height: 110px; object-fit: contain; }
.asset-loader__mark .asset-loader__spinner { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; border: 3px solid rgba(0, 0, 0, 0.12); border-top-color: #000; }

.asset-loader { display: flex; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; flex-direction: column; gap: 14px; background: #f6f1ec; color: #111; font: 600 14px var(--body); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.45s ease, visibility 0s linear 0.45s; }
.loading-assets .asset-loader { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.45s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .asset-loader, .loading-assets .asset-loader { transition: none; } }

.seasonal-menu-image-status:not([hidden]) { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 48px; color: #4d3529; text-align: center; }
.seasonal-menu-image-spinner { width: 36px; height: 36px; border: 3px solid rgba(0, 0, 0, 0.15); border-top-color: #000; border-radius: 50%; animation: asset-loader-spin 0.8s linear infinite; }
.seasonal-menu-image-status.is-error .seasonal-menu-image-spinner { display: none; }
@media (prefers-reduced-motion: reduce) { .seasonal-menu-image-spinner { animation: none; } }

@media (min-width: 761px) {
  .service-photo { position: relative; min-height: 0; }
  .service-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
}

@media (min-width: 761px) {
  .service-story { height: auto; }
}
