/* DK Foto Factory - realizacja jkondraciuk.pl */
:root {
  --black: #000;
  --panel: #120e08;
  --gold: #c9a24a;
  --gold-light: #ecd38f;
  --gold-deep: #9a7426;
  --ivory: #efe6d2;
  --muted: #a69a80;
  --line: rgba(201, 162, 74, .28);
  --metal: linear-gradient(100deg, #9a7426 0%, #d9b45e 28%, #f6e3a6 48%, #c99a3e 68%, #8f6a22 100%);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Brush Script MT", cursive;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font: 500 1.24rem/1.7 var(--serif);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #fff3cf; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--gold); color: #000; padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

.ico { flex: none; }

/* ---------- Pasek górny ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1rem, 3vw, 2.5rem);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar.solid, .page .topbar { background: rgba(0, 0, 0, .9); border-bottom-color: var(--line); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ivory); }
.brand img { width: 52px; height: auto; }
.brand span { font-size: 1.15rem; letter-spacing: .08em; font-variant: small-caps; }
.home .topbar:not(.solid) .brand { opacity: 0; pointer-events: none; }
#menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
#menu a { color: var(--ivory); text-decoration: none; font-size: 1.12rem; letter-spacing: .03em; }
#menu a:hover { color: var(--gold-light); }
#menu .nav-cta { color: var(--gold-light); border: 1px solid var(--gold); padding: .35rem 1.1rem; }
.menu-btn { display: none; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .75rem 1.9rem;
  font: 600 1.12rem/1 var(--serif); letter-spacing: .06em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: 2px;
  transition: filter .2s, background-color .2s, color .2s;
}
.btn-gold { background: var(--metal); color: #120c02; border-color: #b8913e; }
.btn-gold:hover { filter: brightness(1.12); color: #000; }
.btn-line { background: transparent; color: var(--gold-light); border-color: var(--gold); }
.btn-line:hover { background: rgba(201, 162, 74, .12); color: #fff3cf; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 560px) minmax(0, 1fr);
  overflow: hidden;
}
.slats { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.slat { position: relative; overflow: hidden; }
.slat img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.slats-l .slat:first-child { clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); margin-right: -14%; }
.slats-l { -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
.slats-r { -webkit-mask-image: linear-gradient(270deg, #000 72%, transparent); mask-image: linear-gradient(270deg, #000 72%, transparent); }
.slats::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(transparent, #000); pointer-events: none; }
.slats { position: relative; }

.hero-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 5.5rem 1.25rem 2.5rem;
}
.hero-logo { position: relative; width: min(300px, 64vw); }
.hero-logo img { width: 100%; }
.hero-logo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 248, 225, .95) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  mix-blend-mode: soft-light; pointer-events: none; opacity: 0;
}
.hero-cats {
  margin: 1.6rem 0 .4rem;
  color: var(--gold); font-size: 1.05rem; letter-spacing: .28em;
  font-variant: small-caps; font-feature-settings: "smcp";
}
.hero h1 {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 500;
  color: var(--muted); letter-spacing: .04em; max-width: 30ch;
}
.hero-script {
  font-family: var(--script); font-size: clamp(2.5rem, 4.6vw, 3.7rem);
  line-height: 1.2; color: #fffaf0; margin: .9rem 0 .2rem;
}
.hero-rule {
  display: flex; align-items: center; gap: 1rem; color: var(--gold);
  width: min(360px, 80%); margin: .2rem 0 .9rem;
}
.hero-rule::before, .hero-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-rule::after { transform: scaleX(-1); }
.hero-sub { color: var(--gold-light); letter-spacing: .14em; font-size: 1.08rem; font-variant: small-caps; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.2rem; }

/* Jedna sekwencja wejścia: zdjęcia wyłaniają się z ciemności, po logo przechodzi światło */
@media (prefers-reduced-motion: no-preference) {
  .js .slat img { filter: brightness(0); animation: emerge 1.6s cubic-bezier(.3, .6, .2, 1) forwards; }
  .js .slats-l .slat:nth-child(1) img, .js .slats-r .slat:nth-child(2) img { animation-delay: .5s; }
  .js .slats-l .slat:nth-child(2) img, .js .slats-r .slat:nth-child(1) img { animation-delay: .15s; }
  .js .hero-logo::after { animation: sweep 1.8s ease-in-out 1.1s forwards; }
  .js .hero-center > :not(.hero-logo) { opacity: 0; animation: rise .9s ease-out .9s forwards; }
}
@keyframes emerge { to { filter: brightness(1); } }
@keyframes sweep { 0% { opacity: 1; background-position: 130% 0; } 100% { opacity: 1; background-position: -30% 0; } }
@keyframes rise { to { opacity: 1; } }

/* ---------- Sekcje ---------- */
main > section:not(.hero) { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 2.5rem); }
main > section:not(.hero) > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
h2 {
  font-size: clamp(2.3rem, 4.2vw, 3.5rem); letter-spacing: .015em;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
.sec-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { display: inline-block; }
.sec-head p { max-width: 54ch; margin: 1rem auto 0; color: var(--muted); }

/* O mnie */
.about { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 60ch); justify-content: center; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.about > * { margin: 0; }
.about-img img { width: 100%; outline: 1px solid var(--line); outline-offset: 14px; }
.about-text h2 { margin-bottom: 1.4rem; }
.about-text p { line-height: 1.78; }
.area { color: var(--muted); font-style: italic; }

/* Oferta */
.offer { background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 162, 74, .09), transparent 70%); }
.offer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
.svc { border-top: 1px solid var(--line); padding: 2rem 0; display: grid; gap: 1.4rem; align-content: start; }
.svc.has-img { grid-template-columns: 112px 1fr; }
.svc img { width: 112px; height: 200px; object-fit: cover; object-position: center 20%; }
.svc h3 { font-size: 1.75rem; color: var(--gold-light); margin-bottom: .55rem; }
.svc p { margin: 0; color: #ded4bd; }
.svc .price { margin-top: .8rem; color: var(--gold); font-weight: 600; letter-spacing: .03em; }

/* Portfolio */
.grid { columns: 3 260px; column-gap: 14px; }
.grid figure { margin: 0 0 14px; break-inside: avoid; }
.grid a { display: block; overflow: hidden; }
.grid img { width: 100%; transition: transform .6s ease, filter .4s; }
.grid a:hover img { transform: scale(1.025); filter: brightness(1.08); }
.more { text-align: center; margin-top: 2.5rem; }

/* Jak wygląda sesja */
.process { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process h2 { text-align: center; margin-bottom: 3rem; display: block; width: fit-content; }
.process ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.5rem; counter-reset: step; }
.process li { counter-increment: step; position: relative; padding-top: 4.2rem; }
.process li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font: italic 400 4rem/1 var(--serif); color: var(--gold);
}
.process h3 { font-size: 1.5rem; color: var(--gold-light); margin-bottom: .5rem; }
.process p { color: #ded4bd; margin: 0; }

/* Opinie */
.reviews h2 { text-align: center; margin-bottom: 3rem; display: block; width: fit-content; }
.rev-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.rev-list blockquote { margin: 0; border-left: 1px solid var(--gold); padding-left: 1.5rem; }
.stars { color: var(--gold); letter-spacing: .15em; margin-bottom: .4rem; }
.rev-list footer { color: var(--muted); font-style: italic; }

/* FAQ */
.faq h2 { text-align: center; margin-bottom: 2.5rem; display: block; width: fit-content; }
.faq-list { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.8rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { font-size: 1.4rem; font-weight: 500; }
.faq details p { color: #ded4bd; padding-bottom: 1.4rem; margin: 0; max-width: 68ch; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5rem); max-width: calc(var(--wrap) + 5rem); margin: 0 auto; }
.contact > * { margin: 0; }
.contact-info h2 { margin-bottom: 1.2rem; }
.contact-info > p { color: #ded4bd; }
.contact-lines { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; gap: .8rem; }
.contact-lines a { display: inline-flex; align-items: center; gap: .8rem; color: var(--ivory); text-decoration: none; font-size: 1.25rem; }
.contact-lines a:hover { color: var(--gold-light); }
.contact-lines .ico { color: var(--gold); }
.hours { color: var(--muted); font-style: italic; }
.hours-table { margin: 1rem 0 0; display: grid; gap: .2rem; }
.hours-table div { display: flex; justify-content: space-between; max-width: 320px; border-bottom: 1px dotted var(--line); }
.hours-table dd { margin: 0; }

.form { background: var(--panel); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 1.2rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: 1.05rem; color: var(--gold-light); letter-spacing: .03em; }
.field label span { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1.15rem/1.4 var(--serif); color: var(--ivory);
  background: #000; border: 1px solid rgba(201, 162, 74, .35); border-radius: 2px; padding: .75rem .9rem;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-light); outline: none; box-shadow: 0 0 0 2px rgba(236, 211, 143, .25); }
.field textarea { resize: vertical; min-height: 140px; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: 1.02rem; color: #cfc4ab; }
.consent input { margin-top: .35rem; width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: .9rem 1.1rem; margin: 0; border: 1px solid; }
.msg.ok { border-color: var(--gold); color: var(--gold-light); }
.msg.err { border-color: #c66; color: #f0b4b4; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 3.5rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem; }
.footer-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 1.2rem; }
.footer-brand img { width: 96px; }
.footer-brand p { margin: 0; color: var(--muted); }
.footer address { font-style: normal; display: grid; gap: .4rem; justify-items: start; }
.footer address span, .footer address a { display: inline-flex; align-items: center; gap: .6rem; color: var(--ivory); text-decoration: none; }
.footer address .ico { color: var(--gold); }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); color: var(--gold-light); border-radius: 50%; }
.social a:hover { border-color: var(--gold); background: rgba(201, 162, 74, .1); }
.footer-bottom { max-width: var(--wrap); margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(201, 162, 74, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: 1rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.credit a { color: var(--gold); }

/* Podstrony */
.doc { max-width: 780px; margin: 0 auto; padding: 8rem clamp(1.25rem, 4vw, 2rem) 5rem; }
.doc h1 { font-size: clamp(2.3rem, 5vw, 3.3rem); background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; margin: .8rem 0 2rem; }
.doc-body h2 { font-size: 1.6rem; background: none; color: var(--gold-light); margin: 2.2rem 0 .6rem; }
.doc-body p, .doc-body li { color: #ded4bd; }
.crumbs { font-size: 1rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.notfound { text-align: center; padding-top: 10rem; min-height: 70vh; }
.nf-code { font: italic 400 clamp(6rem, 18vw, 10rem)/1 var(--serif); color: var(--gold); margin: 0; opacity: .8; }
.notfound .hero-actions { justify-content: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .95); display: grid; place-items: center; padding: 3rem 4rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; width: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--gold-light); font: 400 3rem/1 var(--serif); cursor: pointer; width: 56px; height: 56px; }
.lb-close { top: .8rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(360px, 480px) minmax(0, 1fr); }
  .slats { grid-template-columns: 1fr; }
  .slats-l .slat:nth-child(2), .slats-r .slat:nth-child(1) { display: none; }
  .slats-l .slat:first-child { clip-path: none; margin: 0; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .social { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem;
    background: rgba(0, 0, 0, .6); color: var(--gold-light); border: 1px solid var(--gold);
    font: 600 1.05rem var(--serif); letter-spacing: .08em; cursor: pointer;
  }
  #menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(0, 0, 0, .97); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; display: none;
  }
  #menu.open { display: flex; }
  #menu a { padding: .85rem 0; border-bottom: 1px solid rgba(201, 162, 74, .15); font-size: 1.25rem; }
  #menu .nav-cta { margin-top: .9rem; text-align: center; border: 1px solid var(--gold); }
  .no-js #menu { position: static; display: flex; flex-direction: row; flex-wrap: wrap; background: none; border: 0; }

  .about, .contact { grid-template-columns: 1fr; }
  .about-img { max-width: 260px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .slats { position: absolute; top: 0; bottom: 0; width: 42%; z-index: 0; opacity: .38; }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(0, 0, 0, .75), rgba(0, 0, 0, .2)); pointer-events: none; }
  .hero h1 { color: #cdbf9f; }
  .slats-l { left: 0; }
  .slats-r { right: 0; }
  .hero-center { padding-top: 6rem; }
  .row2 { grid-template-columns: 1fr; }
  .grid { columns: 2 150px; column-gap: 10px; }
  .grid figure { margin-bottom: 10px; }
  .footer-in { grid-template-columns: 1fr; text-align: left; }
  .footer-bottom { flex-direction: column; }
  .form .btn { justify-self: stretch; }
  .lightbox { padding: 3.5rem .5rem; }
}

@media (max-width: 400px) {
  body { font-size: 1.16rem; }
  .svc.has-img { grid-template-columns: 88px 1fr; gap: 1rem; }
  .svc img { width: 88px; height: 160px; }
  .btn { padding: .75rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Pasek zgody na cookies */
.cookiebar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 95;
  max-width: 760px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--gold); color: var(--ivory);
  padding: 1.1rem 1.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .7);
}
.cookiebar[hidden] { display: none; }
.cookiebar p { margin: 0; flex: 1 1 300px; font-size: 1.05rem; line-height: 1.5; }
.cookiebar-btns { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookiebar .btn { min-height: 46px; padding: .6rem 1.3rem; font-size: 1.02rem; }
