/* =========================================================
   Studio DBP – Dominika Bal-Piechuła
   Projekt i realizacja: PPWebStudio (ppwebstudio.pl)
   Motyw WordPress „Studio DBP” – style strony
   (dodatki dla WordPressa, galerii i 404 są na końcu pliku)
   ========================================================= */

:root {
  /* kolory – wzięte z logo i grafik studia */
  --bg: #FAF9F7;          /* jasne tło */
  --bg-alt: #F2EFEB;      /* tło sekcji naprzemiennych */
  --text: #3F3C39;        /* ciemny grafit z napisu „studio” */
  --text-soft: #5F5A55;   /* tekst pomocniczy */
  --taupe: #B0A59C;       /* beż/taupe z monogramu „dbp” */
  --taupe-dark: #7E736B;  /* ciemniejszy taupe – małe podpisy */
  --line: rgba(63, 60, 57, .16);
  --dark: #2E2C2A;        /* stopka */
  --white: #FFFFFF;

  /* czcionki */
  --f-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-script: "Great Vibes", cursive;

  /* układ */
  --container: 1240px;
  --pad: clamp(20px, 5vw, 60px);
  --section: clamp(64px, 8vw, 128px);
  --header: 96px;          /* wysokość nagłówka na zdjęciu */
  --header-small: 76px;    /* wysokość nagłówka po przewinięciu */
  --ease: cubic-bezier(.22, .61, .21, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --slide-time: 6s;        /* czas jednego zdjęcia w hero (ten sam co SLIDE_TIME w main.js) */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-small) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.menu-open, body.lb-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 1px solid var(--taupe-dark); outline-offset: 4px; }
::selection { background: var(--taupe); color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* kolory logo – zmieniają się przez zmienne (białe na zdjęciu, kolorowe po przewinięciu) */
.lg-word { stroke: var(--logo-word, #3F3C39); }
.lg-dot { fill: var(--logo-word, #3F3C39); }
.lg-mark { stroke: var(--logo-mark, #B0A59C); }
.lg-tag { fill: var(--logo-tag, #A39890); font-family: var(--f-sans); font-weight: 400; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 300;
  background: var(--text); color: var(--white); padding: 10px 18px; font-size: 13px;
}
.skip-link:focus { top: 16px; }

/* ---------- typografia ---------- */
h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.005em;
}
h3 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.7vw, 1.55rem);
  line-height: 1.25;
}
.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--taupe-dark);
  margin-bottom: 16px;
}
.section-head { text-align: center; margin-bottom: clamp(32px, 3vw, 48px); }

/* ---------- przyciski i linki ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 38px; overflow: hidden; isolation: isolate;
  font-family: var(--f-sans); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  border: 1px solid currentColor;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn-white { color: var(--text); background: var(--white); border-color: var(--white); }
.btn-white::before { background: var(--taupe); }
.btn-white:hover { color: var(--white); border-color: var(--taupe); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .75); }
.btn-ghost::before { background: var(--white); }
.btn-ghost:hover { color: var(--text); border-color: var(--white); }
.btn-dark { color: var(--white); background: var(--text); border-color: var(--text); }
.btn-dark::before { background: var(--taupe); }
.btn-dark:hover { border-color: var(--taupe); }
.btn-outline { color: var(--text); border-color: rgba(63, 60, 57, .55); min-height: 48px; padding: 0 30px; }
.btn-outline::before { background: var(--text); }
.btn-outline:hover { color: var(--white); border-color: var(--text); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-line {
  position: relative; display: inline-block; padding-bottom: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
.link-line::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor;
}
.link-line:hover::after { animation: line-swipe .9s var(--ease); }
@keyframes line-swipe {
  0% { transform: scaleX(1); transform-origin: right; }
  50% { transform: scaleX(0); transform-origin: right; }
  50.1% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* =========================================================
   EKRAN ŁADOWANIA
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center; align-content: center; gap: 34px;
  background: var(--bg);
  transition: transform 1.1s var(--ease-out), visibility 0s linear 1.1s;
}
.loader-logo { width: min(300px, 64vw); overflow: visible; }
.loader-logo path, .loader-logo circle:not(.ld-dot) {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ld-draw .9s var(--ease) forwards;
  animation-delay: .15s;
}
/* kolejność rysowania kresek logo */
.loader-logo .s1 { animation-delay: .31s; }
.loader-logo .s2 { animation-delay: .47s; }
.loader-logo .s3 { animation-delay: .63s; }
.loader-logo .s4 { animation-delay: .79s; }
.loader-logo .s5 { animation-delay: .95s; }
.loader-logo .s6 { animation-delay: 1.11s; }
.loader-logo .s7 { animation-delay: 1.27s; }
.ld-mark { stroke: var(--taupe); }
.ld-word { stroke: var(--text); }
.ld-dot { fill: var(--text); opacity: 0; animation: ld-fade .4s ease forwards 1.35s; }
.ld-tag {
  fill: #A39890; font-family: var(--f-sans); font-weight: 400;
  opacity: 0; animation: ld-fade .8s ease forwards 1.45s;
}
.loader-line { width: 120px; height: 1px; background: rgba(176, 165, 156, .3); overflow: hidden; }
.loader-line span { display: block; height: 100%; background: var(--taupe); transform: scaleX(0); transform-origin: left; animation: ld-line 2s var(--ease) forwards .2s; }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-fade { to { opacity: 1; } }
@keyframes ld-line { to { transform: scaleX(1); } }

body.is-loaded .loader { transform: translateY(-100%); visibility: hidden; }

/* =========================================================
   NAGŁÓWEK
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  --logo-word: var(--text); --logo-mark: var(--taupe); --logo-tag: #A39890;
  color: var(--text);
  background: rgba(250, 249, 247, .97);
  box-shadow: 0 1px 0 rgba(63, 60, 57, .08);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease), transform .6s var(--ease);
}
.header.is-top {
  --logo-word: #FFFFFF; --logo-mark: rgba(255, 255, 255, .88); --logo-tag: rgba(255, 255, 255, .88);
  color: var(--white); background: transparent; box-shadow: none;
}
.header.is-hidden { transform: translateY(-100%); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header); max-width: 1400px; margin-inline: auto; padding-inline: var(--pad);
  transition: height .5s var(--ease);
}
.header:not(.is-top) .header-inner { height: var(--header-small); }
.header-logo { display: block; width: 168px; transition: width .5s var(--ease); }
.header:not(.is-top) .header-logo { width: 132px; }
.header-logo svg { display: block; width: 100%; height: auto; overflow: visible; }

.nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.nav-left { justify-content: flex-end; padding-right: clamp(32px, 4.5vw, 72px); }
.nav-right { justify-content: flex-start; padding-left: clamp(32px, 4.5vw, 72px); }
.nav a {
  position: relative; padding-block: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
}
.nav a:not(.nav-icon)::after {
  content: ""; position: absolute; left: 0; right: .26em; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-icon svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: opacity .3s ease; }
.nav-icon svg .dot { fill: currentColor; stroke: none; }
.nav-icon:hover svg { opacity: .6; }

.burger { display: none; position: relative; z-index: 210; width: 44px; height: 44px; justify-self: end; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
body.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* menu na telefonie */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center; gap: 52px;
  padding: 110px var(--pad) 48px;
  background: var(--bg); color: var(--text);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-out);
  visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.2rem, 9.5vw, 2.9rem); line-height: 1.2;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .8s var(--ease-out);
}
body.menu-open .mobile-menu nav a { opacity: 1; transform: none; transition-delay: .25s; }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .32s; }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .39s; }
body.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .46s; }
body.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .53s; }
.mobile-menu-foot { display: grid; gap: 14px; font-size: 13px; color: var(--text-soft); opacity: 0; transition: opacity .6s ease; }
body.menu-open .mobile-menu-foot { opacity: 1; transition-delay: .6s; }
.mobile-menu .socials { display: flex; gap: 24px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--text); }
body.menu-open .header {
  --logo-word: var(--text); --logo-mark: var(--taupe); --logo-tag: #A39890;
  color: var(--text); background: transparent; box-shadow: none; transform: none;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  /* 100lvh = pełna wysokość ekranu, także pod pływającym paskiem Safari na iPhonie
     (100svh zostawiało pod zdjęciem jasny pasek) */
  position: relative; height: 100vh; height: 100lvh; min-height: 560px;
  /* treść wyśrodkowana w widocznej części ekranu, nad paskami przeglądarki */
  padding-bottom: 0; padding-bottom: calc(100lvh - 100svh);
  display: grid; place-items: center; overflow: hidden;
  color: var(--white); background: #2a2826;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide.is-leaving { opacity: 0; z-index: 2; transition: opacity 1.8s ease; }
.hero-slide picture { display: contents; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  transform: scale(1.14);
}
/* kadrowanie zdjęć w hero (komputer) */
.slide-2 img { object-position: 45% 60%; }
.slide-3 img { object-position: 40% 60%; }
.slide-4 img { object-position: 50% 60%; }
.hero-slide.is-active img, .hero-slide.is-leaving img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
body.is-loading .hero-slide img { animation-play-state: paused; }
/* kadrowanie zdjęć w hero (telefon – zdjęcia pionowe) */
@media (max-aspect-ratio: 4/5) {
  .hero-slide img, .slide-2 img, .slide-3 img, .slide-4 img { object-position: 50% 35%; }
}

.hero-shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(20, 18, 16, .34) 0%, rgba(20, 18, 16, 0) 100%),
    linear-gradient(180deg, rgba(20, 18, 16, .45) 0%, rgba(20, 18, 16, 0) 26%),
    linear-gradient(0deg, rgba(20, 18, 16, .55) 0%, rgba(20, 18, 16, .12) 45%, rgba(20, 18, 16, .2) 100%);
}
.hero-content { position: relative; z-index: 4; text-align: center; padding: var(--header) var(--pad) 40px; }

.hero-kicker {
  overflow: hidden; margin-bottom: 24px; text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
  font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
}
.hero-kicker span { display: inline-block; }
.hero-title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2.6rem, 4.6vw, 4.5rem); line-height: 1.1; letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .22);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line-italic { font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: clamp(34px, 4.5vw, 50px); }

/* animacja wejścia hero – startuje, gdy zniknie ekran ładowania */
.hero-kicker span, .hero-title .line > span { transform: translateY(110%); }
.hero-actions, .hero-scroll, .hero-dots { opacity: 0; }
body.is-loaded .hero-kicker span { transform: none; transition: transform 1.2s var(--ease-out) .55s; }
body.is-loaded .hero-title .line > span { transform: none; transition: transform 1.4s var(--ease-out) .7s; }
body.is-loaded .hero-title .line-italic > span { transition-delay: .85s; }
body.is-loaded .hero-actions { opacity: 1; transition: opacity 1s ease 1.3s; }
body.is-loaded .hero-scroll, body.is-loaded .hero-dots { opacity: 1; transition: opacity 1s ease 1.6s; }

.hero-scroll {
  position: absolute; z-index: 4; left: 50%; bottom: 28px; transform: translateX(-50%);
  bottom: calc(28px + 100lvh - 100svh);   /* „Przewiń” zawsze nad paskiem przeglądarki */
  display: grid; justify-items: center; gap: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
}
.hero-scroll i { position: relative; display: block; width: 1px; height: 54px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero-scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: var(--white); animation: scroll-line 2.2s var(--ease) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

.hero-dots { position: absolute; z-index: 4; right: var(--pad); bottom: 44px; display: flex; gap: 10px; }
.hero-dots span { position: relative; width: 34px; height: 1px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hero-dots span::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.hero-dots span.is-active::after { animation: dot-fill var(--slide-time, 6s) linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }

/* =========================================================
   O MNIE
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 8vw, 130px); align-items: center; }
/* zdjęcie dopasowuje się do wysokości ekranu, żeby cała sekcja była widoczna */
.about-photo { overflow: hidden; width: min(100%, calc((100vh - 160px) * .8)); justify-self: center; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.about-text > p:not(.kicker):not(.signature) { color: var(--text-soft); max-width: 46ch; }
.about-text p + p { margin-top: 18px; }
.about-name { font-size: clamp(2.5rem, 4.4vw, 3.7rem); line-height: 1.05; margin-bottom: 26px; }
.signature {
  font-family: var(--f-script); font-size: clamp(2.6rem, 4vw, 3.3rem); line-height: 1;
  color: var(--taupe-dark); margin: 28px 0 32px !important;
}

/* =========================================================
   OFERTA
   ========================================================= */
.offer { background: var(--bg-alt); }
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.offer-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.offer-item .link-line { margin-top: auto; }
.offer-img { display: block; width: 100%; overflow: hidden; margin-bottom: 24px; }
.offer-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.offer-item:hover .offer-img img { transform: scale(1.06); }
.offer-item h3 { margin-bottom: 12px; white-space: nowrap; }
.offer-item p { color: var(--text-soft); font-size: 14px; line-height: 1.7; max-width: 34ch; margin-bottom: 16px; }

/* =========================================================
   CENNIK
   ========================================================= */
.pricing { background: var(--bg); }
.pricing .section-head { margin-bottom: clamp(16px, 2vw, 24px); }
.price-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(24px, 5vw, 64px); margin-bottom: clamp(24px, 3vw, 32px); }
.price-tab {
  position: relative; display: grid; justify-items: center; padding: 0 6px 16px;
  color: var(--taupe); transition: color .5s ease;
}
.price-tab:hover { color: var(--taupe-dark); }
.price-tab[aria-selected="true"] { color: var(--text); }
.tab-script { font-family: var(--f-script); font-size: clamp(2.4rem, 3.6vw, 3.4rem); line-height: 1.1; }
.tab-caps { font-family: var(--f-serif); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; margin-top: -2px; white-space: nowrap; }
.price-tab::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 64px; height: 1px; margin-left: -32px;
  background: currentColor; transform: scaleX(0); transition: transform .6s var(--ease);
}
.price-tab[aria-selected="true"]::after { transform: scaleX(1); }

.price-panel[hidden] { display: none; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); }
.price-grid-2 { grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; }

.price-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(32px, 3vw, 40px) clamp(24px, 3vw, 40px) clamp(32px, 3vw, 40px);
  background: var(--bg-alt);
  outline: 1px solid var(--line); outline-offset: -12px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(46, 44, 42, .35); }
.price-name { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.6rem, 3.4vw, 3.2rem); line-height: 1.05; }
.price-value {
  display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%;
  margin: 8px 0 16px; font-size: 1.15rem; font-weight: 500; letter-spacing: .04em;
}
.price-value::before, .price-value::after { content: ""; flex: 0 1 64px; height: 1px; background: var(--text); opacity: .45; }
.price-list { display: grid; gap: 8px; margin-bottom: 18px; color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.price-note { font-size: 12px; line-height: 1.6; color: var(--taupe-dark); max-width: 44ch; margin-bottom: 8px; }
.price-card .btn { margin-top: auto; }
.price-card .price-list + .btn, .price-card .price-note + .btn { margin-top: 18px; }
.price-foot { margin-top: 24px; text-align: center; font-size: 13px; color: var(--taupe-dark); max-width: none; }

/* karty wjeżdżają po przełączeniu zakładki */
.price-panel.is-entering .price-card { animation: card-in .8s var(--ease-out) both; }
.price-panel.is-entering .price-card:nth-child(2) { animation-delay: .08s; }
.price-panel.is-entering .price-card:nth-child(3) { animation-delay: .16s; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 18px); }
.mosaic li { position: relative; }
.mosaic .is-l { grid-column: span 6; }
.mosaic .is-p { grid-column: span 3; aspect-ratio: 3 / 4; }
.mosaic .is-w { grid-column: span 12; aspect-ratio: 21 / 9; }
.m-item { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; cursor: zoom-in; }
.m-item img { width: 100%; height: 100%; object-fit: cover; }
.m-item::after { content: ""; position: absolute; inset: 0; background: rgba(46, 44, 42, 0); transition: background-color .6s ease; }
.m-item:hover::after { background: rgba(46, 44, 42, .12); }
/* zwinięte portfolio – ukryte zdjęcia pokazuje przycisk „Pokaż więcej zdjęć” */
.mosaic.is-collapsed .is-more { display: none; }
.mosaic-toggle { display: flex; justify-content: center; margin-top: 48px; }
.mosaic-toggle[hidden] { display: none; }
.portfolio-more { margin-top: 52px; text-align: center; color: var(--text-soft); max-width: none; }
.portfolio-more .link-line { margin-left: 10px; color: var(--text); }

/* =========================================================
   KONTAKT
   ========================================================= */
.contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(56px, 8vw, 130px); align-items: start; }
.contact-intro h2 { margin-bottom: 24px; max-width: 13ch; }
.contact-intro > p:not(.kicker) { color: var(--text-soft); max-width: 44ch; }
.contact-list { display: grid; gap: 16px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: 10px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--taupe-dark); }
.contact-list a, .contact-list p { font-family: var(--f-serif); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.35; word-break: break-word; transition: color .4s ease; }
.contact-list a:hover { color: var(--taupe-dark); }

.form { display: grid; gap: 20px; padding: clamp(24px, 3.5vw, 40px); background: var(--bg); }
.field { position: relative; display: grid; }
.field input, .field select, .field textarea {
  width: 100%; padding: 22px 0 10px;
  border: 0; border-bottom: 1px solid rgba(63, 60, 57, .28); border-radius: 0; background: transparent;
  font-size: 15px; font-weight: 400; color: var(--text);
  transition: border-color .4s ease;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233F3C39' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 2px center;
}
.field select:has(option[value=""]:checked) { color: var(--text-soft); }
.field select option, .field select optgroup { color: var(--text); }
.field label {
  position: absolute; left: 0; top: 22px; pointer-events: none;
  font-size: 14px; color: var(--text-soft);
  transform-origin: left top; transition: transform .4s var(--ease), color .4s ease;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.is-static {
  transform: translateY(-20px) scale(.8); color: var(--taupe-dark);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--text); }
.field.has-error input, .field.has-error textarea { border-bottom-color: #A0473C; }
.field-error { margin-top: 6px; font-size: 12px; color: #A0473C; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 6px 12px; align-items: start; }
.check input { width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--text); }
.check label { font-size: 12px; line-height: 1.6; color: var(--text-soft); }
.check .field-error { grid-column: 2; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-status { min-height: 1.4em; font-size: 13px; }
.form-status.is-ok { color: #4F6B4A; }
.form-status.is-error { color: #A0473C; }

/* =========================================================
   POLITYKA PRYWATNOŚCI (podstrona)
   ========================================================= */
.legal { padding: calc(var(--header-small) + 64px) 0 var(--section); }
.legal-inner { max-width: calc(68ch + 2 * var(--pad)); }
.legal h1 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 24px;
}
.legal-lead { font-size: 1.0625rem; color: var(--text-soft); }
.legal section { margin-top: 48px; }
.legal h2 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.3; margin-bottom: 16px; }
.legal p + p { margin-top: 16px; }
.legal ul { list-style: disc; padding-left: 1.25em; margin: 16px 0; display: grid; gap: 8px; }
.legal li::marker { color: var(--taupe); }
.legal a:not(.link-line) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--taupe); }
.legal a:not(.link-line):hover { color: var(--taupe-dark); }
.legal-date { margin-top: 24px; font-size: 13px; color: var(--taupe-dark); }
.legal-back { margin-top: 64px; }
.check label a { text-decoration: underline; text-underline-offset: 2px; }
.check label a:hover { color: var(--text); }

/* =========================================================
   STOPKA
   ========================================================= */
.footer { background: var(--dark); color: #CFC8C1; padding-top: clamp(72px, 9vw, 110px); padding-bottom: 32px; }
.footer-inner { display: grid; justify-items: center; text-align: center; gap: 36px; }
.footer-logo { width: 190px; --logo-word: #F2EFEB; --logo-mark: var(--taupe); --logo-tag: #9E948B; }
.footer-logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.footer-nav a, .footer-bottom a { transition: color .3s ease; }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--white); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(207, 200, 193, .3); border-radius: 50%;
  transition: background-color .4s ease, border-color .4s ease;
}
.footer-social a:hover { background: var(--taupe); border-color: var(--taupe); }
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.footer-social svg .dot, .footer-social svg .solid { fill: currentColor; stroke: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; width: 100%;
  margin-top: 24px; padding-top: 28px; border-top: 1px solid rgba(207, 200, 193, .14);
  font-size: 12px; color: #9E948B;
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg); color: var(--text); box-shadow: 0 6px 24px rgba(46, 44, 42, .14);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .5s ease, transform .5s var(--ease), background-color .3s ease, color .3s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--text); color: var(--white); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: grid; grid-template-columns: 80px minmax(0, 1fr) 80px; align-items: center;
  padding: 64px 0 40px; background: rgba(250, 249, 247, .985);
  opacity: 0; transition: opacity .5s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 16px; height: 100%; min-height: 0; }
.lb-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; align-self: center;
  transform: scale(.97); opacity: 0; transition: transform .6s var(--ease-out), opacity .5s ease;
}
.lb-img.is-ready { transform: none; opacity: 1; }
.lb-count { font-size: 11px; letter-spacing: .3em; color: var(--text-soft); }
.lb-arrow, .lb-close { display: grid; place-items: center; width: 56px; height: 56px; justify-self: center; color: var(--text); transition: opacity .3s ease; }
.lb-arrow:hover, .lb-close:hover { opacity: .55; }
.lb-arrow svg, .lb-close svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lb-close { position: absolute; top: 10px; right: 14px; }

/* =========================================================
   ANIMACJE PRZY PRZEWIJANIU
   ========================================================= */
/* opóźnienia animacji (kolejność pojawiania się) */
.d1 { --d: .1s; } .d2 { --d: .2s; } .d3 { --d: .3s; } .d4 { --d: .4s; } .d5 { --d: .5s; }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* zdjęcie „odsłania się” od dołu */
.reveal-img img {
  clip-path: inset(100% 0 0 0); transform: scale(1.25);
  transition: clip-path 1.4s var(--ease-out), transform 1.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.m-item.reveal-img.is-in:hover img { transform: scale(1.05); transition: transform 1.4s var(--ease-out); }

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 1100px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 60px; }
  .nav { gap: 22px; }
  .nav-left { padding-right: 30px; }
  .nav-right { padding-left: 30px; }
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header: 76px; --header-small: 66px; }
  .header-inner { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .burger { display: block; }
  .header-logo, .header:not(.is-top) .header-logo { width: 124px; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 520px; }
  .contact-intro h2 { max-width: none; }

  .price-grid, .price-grid-2 { grid-template-columns: minmax(0, 440px); justify-content: center; }

  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .mosaic .is-l { grid-column: span 2; aspect-ratio: 3 / 2; }
  .mosaic .is-p { grid-column: span 1; }
  .mosaic .is-w { grid-column: span 2; aspect-ratio: 3 / 2; }

  .hero-dots { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-img img { aspect-ratio: 4 / 5; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  .hero-kicker { letter-spacing: .24em; font-size: 10px; }
  .price-tabs { gap: 8px 12px; }
  .tab-script { font-size: 1.75rem; }
  .tab-caps { display: none; }
  .price-tab { padding-bottom: 10px; }
  .price-tab::after { width: 40px; margin-left: -20px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 64px 12px 16px; }
  .lb-figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-row: 2; justify-self: start; }
  .lb-next { grid-row: 2; justify-self: end; }
}

/* niższe ekrany laptopów (np. 1366×768) – kwadratowe zdjęcia w ofercie */
@media (min-width: 901px) and (max-height: 920px) {
  .offer-img img { aspect-ratio: 1 / 1; }
}

/* ograniczony ruch – wyłączamy animacje */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img img { transform: none; clip-path: none; }
}


/* =========================================================
   WORDPRESS – pasek administratora (widzi go tylko zalogowana osoba)
   ========================================================= */
.admin-bar .header { top: 32px; }
.admin-bar .loader { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .header, .admin-bar .loader { top: 46px; }
}

/* =========================================================
   LIGHTBOX – licznik, pobieranie, pojedyncze zdjęcie
   ========================================================= */
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 32px; }
.lb-download { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.lb-download[hidden] { display: none; }
.lb-download svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lightbox.is-single .lb-arrow { visibility: hidden; }

/* =========================================================
   PODSTRONY Z EDYTORA (np. Polityka prywatności)
   ========================================================= */
.legal-content > * + * { margin-top: 16px; }
.legal-content h2 { margin-top: 48px; }
.legal-content h3 { margin-top: 32px; font-size: 1.2rem; }
.legal-content strong { font-weight: 600; }

/* =========================================================
   STOPKA – podpis wykonawcy
   ========================================================= */
.footer-bottom .footer-sign { display: flex; align-items: center; }

/* =========================================================
   GALERIE KLIENTÓW
   ========================================================= */
.gallery-page { min-height: 70vh; }

/* hasło / galeria wygasła / 404 */
.g-gate {
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-small) + 48px) var(--pad) 64px;
  background: var(--bg-alt);
}
.g-gate-card {
  width: 100%; max-width: 480px; padding: clamp(32px, 5vw, 56px);
  background: var(--bg); text-align: center;
  box-shadow: 0 24px 60px rgba(46, 44, 42, .08);
}
.g-gate-card h1 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.15; margin-bottom: 16px;
}
.g-gate-card p { color: var(--text-soft); }
.g-gate-card p + p { margin-top: 16px; }
.g-gate-card a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--taupe); }
.g-gate-card .btn { margin-top: 24px; }
.g-lock { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 50%; color: var(--taupe-dark); }
.g-lock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.g-pass-form { display: grid; gap: 24px; margin-top: 32px; text-align: left; }
.g-pass-form .btn { justify-self: stretch; }
.g-pass-form .field-error { margin-top: -8px; }

/* informacja dla zalogowanej właścicielki */
.g-owner-note {
  position: relative; z-index: 2;
  margin-top: var(--header-small); padding: 12px var(--pad);
  background: #F3E3C9; color: #5B4521; font-size: 13px; text-align: center;
}

/* okładka */
.g-cover {
  position: relative; display: grid; align-items: end;
  height: min(78vh, 820px); min-height: 420px;
  margin-top: var(--header-small);
  background: var(--dark); color: var(--white); overflow: hidden;
}
.g-owner-note + .g-cover { margin-top: 0; }
.g-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-cover-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 28, 26, .62), rgba(30, 28, 26, 0) 60%); }
.g-cover-text { position: relative; padding: 0 var(--pad) clamp(40px, 7vw, 80px); text-align: center; }
.g-cover .hero-kicker span { transform: none; }
.g-title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.01em;
  text-wrap: balance;
}
.g-date { margin-top: 16px; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; opacity: .9; }

/* wiadomość i pobieranie */
.g-intro { max-width: calc(64ch + 2 * var(--pad)); padding-block: clamp(48px, 6vw, 80px) 40px; text-align: center; }
.g-message { font-family: var(--f-serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.7; }
.g-message p + p { margin-top: 16px; }
.g-meta { margin-top: 24px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe-dark); }
.g-intro .btn { margin-top: 32px; }
.g-hint { margin-top: 12px; font-size: 13px; color: var(--text-soft); }

/* siatka zdjęć – układ „murowany”, zdjęcia w oryginalnych proporcjach */
.g-photos { max-width: 1600px; padding-bottom: var(--section); }
.g-grid { columns: 3 300px; column-gap: clamp(8px, 1vw, 14px); }
.g-grid li { break-inside: avoid; margin-bottom: clamp(8px, 1vw, 14px); }
.g-item { position: relative; inset: auto; height: auto; }
.g-item img { height: auto; object-fit: initial; }
.g-empty { padding: 64px 0; text-align: center; color: var(--text-soft); }
.g-outro { padding-bottom: var(--section); text-align: center; }

@media (max-width: 600px) {
  .g-grid { columns: 2; }
  .g-cover { height: 62vh; min-height: 360px; }
}
