/* ==========================================================
   Pan Zdun Marek Graban | panzdun.pl
   Realizacja: Studio Di
   ========================================================== */

@font-face {
  font-family: "Playfair Num";
  src: url("fonts/playfair-display.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #393a69;
  --orange: #da6735;
  --orange-dark: #c4552a;
  --grey: #c4c4c4;
  --muted: #8a8a8a;
  --band-light: #f3f3ee;
  --band-warm: #c6ab9b;
  --taupe: #8f796c;
  --paper: #f4f4f4;
  --ink: #1d1d1f;
  --footer: #2d2d30;

  /* Nagłówki: pogrubiona kursywa bezszeryfowa, tak jak na dotychczasowej stronie */
  --f-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-num: "Playfair Num", "Playfair Display", Georgia, serif;

  --container: 1230px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--f-body); font-size: 15px; line-height: 1.85; color: var(--ink); background: #fff; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }

.c-navy { color: var(--navy); }
.c-orange { color: var(--orange); }
.c-grey { color: var(--grey); }
.num { font-family: var(--f-num); font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: -0.01em; }

.h-display { font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.005em; }
.h-display > span { display: block; }
.h-sub { font-size: 0.72em; line-height: 1.05; margin-top: 0.15em; }

/* ---------- przycisk ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 34px;
  background: var(--orange); color: #fff; border: 0; border-radius: 0;
  font: 400 14px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none;
  cursor: pointer; transition: background-color .2s;
}
.btn:hover { background: var(--orange-dark); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); text-transform: none; font-size: 15px; }
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* ==========================================================
   NAGŁÓWEK
   ========================================================== */
.topbar { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .25s; }
.topbar.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 20px rgba(57,58,105,.06); }
.topbar__inner { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; margin-right: auto; }
.brand__logo { width: 200px; height: auto; }
.brand__name { border-left: 1px solid #b9b9c9; padding-left: 20px; font: 400 13px/1 var(--f-body); text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 44px; }
.nav__list { display: flex; gap: 35px; list-style: none; padding: 0; }
.nav__list a { font-size: 15px; text-decoration: none; color: var(--ink); position: relative; padding: 6px 0; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__fb { display: inline-flex; align-items: center; justify-content: center; min-width: 142px; height: 38px; padding: 0 24px; border-radius: 19px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 300; text-decoration: none; transition: background-color .2s; }
.nav__fb:hover { background: #2a2b52; }
.nav__tel { display: none; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO
   Kompozycja skaluje się proporcjonalnie (jednostki cqw),
   na desktopie odpowiada układowi z dotychczasowej strony.
   ========================================================== */
.hero { position: relative; overflow: clip; padding-bottom: 40px; }
.hero__wrap { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.hero__stage { container-type: inline-size; position: relative; }

@media (min-width: 900px) {
  .hero__stage > * { position: absolute; }
  .hero__stage { height: auto; }
  .hero__stage::before { content: ""; display: block; padding-top: 58%; }

  .hero__band { left: calc(50% - 50vw); width: 100vw; z-index: 0; }
  .hero__band--light { top: 28.6cqw; height: 15.6cqw; background: var(--band-light); }
  .hero__band--warm { top: 44.2cqw; height: 9.6cqw; background: var(--band-warm); }

  .hero__title { top: 9cqw; left: 0; z-index: 3; font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: 3.42cqw; line-height: 1.12; letter-spacing: -0.005em; }
  .hero__title span { display: block; }

  .hero__collage { inset: 0; z-index: 1; }
  .hero__collage img { position: absolute; }
  .hero__photo { left: 49.6cqw; top: 0; width: 50.4cqw; }
  .hero__stove { left: 33.4cqw; top: 1.2cqw; width: 25.9cqw; z-index: 2; }
  .hero__kitchen { left: 78.8cqw; top: 36.7cqw; width: 21.2cqw; }

  .hero__call { top: 33.4cqw; left: 0; z-index: 3; }
  .hero__call-label { font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: 1.8cqw; line-height: 1; color: var(--grey); }
  .hero__phone { display: block; margin-top: 1.9cqw; font-size: 3.42cqw; line-height: 1; color: var(--orange); text-decoration: none; }
  .hero__call .btn { margin-top: 3cqw; width: 17.3cqw; min-height: 3.5cqw; padding: 0 1em; font-size: max(12px, 1.14cqw); }
}

/* ==========================================================
   O MNIE
   ========================================================== */
.about { padding: clamp(60px, 11vw, 150px) 0 clamp(60px, 9vw, 120px); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.about__photo { justify-self: center; width: min(100%, 400px); }
.about__photo img { width: 100%; }
.about__text { max-width: 500px; }
.about__text .h-display { margin-bottom: 26px; }
.about__text p { font-size: 14.5px; line-height: 1.95; }
.about__text p + p { margin-top: 1.1em; }
.about__sign { margin-top: 36px; width: 179px; }

/* ==========================================================
   OFERTA
   ========================================================== */
.offer { padding: clamp(60px, 9vw, 130px) 0 clamp(60px, 8vw, 110px); background: linear-gradient(var(--paper) 0, var(--paper) 72%, #fff 72%); }
.offer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.offer__text { position: sticky; top: calc(var(--header-h) + 40px); max-width: 480px; }
.offer__text .h-display { margin-bottom: 38px; }
.offer__list { padding-left: 50px; margin-bottom: 44px; font-size: 14.5px; line-height: 1.85; }
.offer__list li::marker { color: var(--orange); }
.offer__text p { font-size: 14.5px; line-height: 1.95; }
.offer__text p + p { margin-top: 1.5em; }

.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery__item { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #e6e3de; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:focus-visible { outline-offset: 2px; }

/* ==========================================================
   KONTAKT
   ========================================================== */
.contact { background: var(--taupe); color: #fff; padding: clamp(56px, 8vw, 100px) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 100px); align-items: start; }

.contact__card { background: #fff; color: var(--ink); padding: clamp(32px, 4vw, 52px); box-shadow: 0 30px 60px -30px rgba(30, 20, 15, .45); }
.contact__card .h-display { margin-bottom: 18px; }
.contact__phone { display: inline-block; font-size: clamp(34px, 3.4vw, 44px); line-height: 1; color: var(--orange); text-decoration: none; margin-bottom: 30px; }
.contact__data { display: grid; gap: 14px; margin-bottom: 30px; }
.contact__data div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; border-top: 1px solid #ecebe8; padding-top: 14px; }
.contact__data dt { font-size: 13px; color: var(--muted); }
.contact__data dd { margin: 0; font-size: 15px; line-height: 1.55; }
.contact__data a { text-decoration: none; border-bottom: 1px solid var(--grey); }
.contact__data a:hover { border-color: var(--orange); }
.contact__fb { font-size: 14px; color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--navy); padding-bottom: 2px; }

.contact__form-title { color: #fff; margin-bottom: 26px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; color: rgba(255,255,255,.85); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid transparent; border-radius: 0;
  background: #fff; color: var(--ink); font: 15px/1.4 var(--f-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(57,58,105,.25); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #8e1c0e; box-shadow: 0 0 0 3px rgba(142,28,14,.25); }
.form__note { font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.85); }
.form__note a { color: #fff; }
.form .btn { min-height: 50px; font-size: 15px; }
.form__status { font-size: 14px; min-height: 1.4em; }
.form__status.is-ok { color: #fff; font-weight: 700; }
.form__status.is-err { color: #ffe1d4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================
   MAPA (ładowana po kliknięciu)
   ========================================================== */
.map__placeholder {
  position: relative; height: clamp(300px, 34vw, 420px);
  background-color: #eeece8;
  background-image:
    linear-gradient(rgba(57,58,105,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,58,105,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  display: grid; place-items: center;
}
.map__box { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 20px; }
.map__addr { font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: clamp(20px, 2.2vw, 26px); color: var(--navy); }
.map__ext { font-size: 14px; color: var(--navy); }
.map__info { font-size: 12px; color: var(--muted); }
.map__placeholder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================
   STOPKA
   ========================================================== */
.footer { background: var(--footer); color: rgba(255,255,255,.8); padding: 56px 0 24px; font-size: 14px; font-weight: 300; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 36px; }
.footer__brand img:first-child { width: 190px; }
.footer__sign { width: 150px; }
.footer__col p + p { margin-top: 10px; }
.footer__col--meta { justify-self: end; text-align: right; }
.footer__credit { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.footer__credit img { width: 100px; }
.footer__copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.5); }

/* ==========================================================
   LIGHTBOX
   ========================================================== */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(18,18,24,.94); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; opacity: 0; transition: opacity .2s; }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__fig { grid-column: 2; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lb__img { max-width: 100%; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); object-fit: contain; user-select: none; touch-action: pan-y; }
.lb__count { color: rgba(255,255,255,.7); font-size: 13px; }
.lb__btn { background: transparent; border: 0; color: #fff; font-size: 46px; line-height: 1; cursor: pointer; width: 60px; height: 60px; display: grid; place-items: center; opacity: .75; transition: opacity .2s; }
.lb__btn:hover { opacity: 1; }
.lb__prev { grid-column: 1; grid-row: 1; justify-self: center; }
.lb__next { grid-column: 3; grid-row: 1; justify-self: center; }
.lb__close { position: absolute; top: 10px; right: 12px; font-size: 40px; }
body.lb-lock { overflow: hidden; }

/* ==========================================================
   TABLET / MOBILE
   ========================================================== */
@media (max-width: 1100px) {
  .nav { gap: 28px; }
  .nav__list { gap: 24px; }
  .brand__logo { width: 170px; }
}

@media (max-width: 899px) {
  :root { --header-h: 66px; }
  .brand { gap: 14px; }
  .brand__logo { width: 140px; }
  .brand__name { padding-left: 14px; font-size: 11px; }

  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px;
    box-shadow: 0 16px 30px rgba(57,58,105,.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid #eee; }
  .nav__list a::after { display: none; }
  .nav__fb { margin-top: 22px; height: 46px; border-radius: 23px; }
  .nav__tel { display: block; margin-top: 16px; text-align: center; font: 400 30px/1 var(--f-num); color: var(--orange); text-decoration: none; }

  /* hero mobile: tekst, kolaż, pasek z telefonem */
  .hero { padding-bottom: 0; }
  .hero__stage { display: flex; flex-direction: column; }
  .hero__title { order: 1; padding: 34px 0 30px; font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: clamp(30px, 8.6vw, 42px); line-height: 1.1; }
  .hero__title span { display: block; }

  .hero__collage { order: 2; position: relative; height: 96cqw; margin-bottom: 28px; }
  .hero__collage img { position: absolute; }
  .hero__photo { left: 22cqw; top: 0; width: 78cqw; }
  .hero__stove { left: -2cqw; top: 9cqw; width: 37cqw; z-index: 2; }
  .hero__kitchen { right: 0; top: 57cqw; width: 39cqw; z-index: 1; }
  .hero__band { display: none; }
  .hero__collage::before { content: ""; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 46cqw; height: 30cqw; background: var(--band-warm); }

  .hero__call {
    order: 3; position: relative; margin: 0 calc(-1 * var(--gutter)); padding: 30px var(--gutter) 38px;
    background: var(--band-light);
    display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px;
  }
  .hero__call-label { grid-column: 1 / -1; font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: 19px; line-height: 1; color: #a9a9a9; }
  .hero__phone { font-size: clamp(32px, 9vw, 42px); line-height: 1.1; color: var(--orange); text-decoration: none; }
  .hero__call .btn { grid-column: 1 / -1; margin-top: 16px; }

  .about__grid, .offer__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__photo { width: min(88%, 380px); justify-self: start; }
  .offer { background: var(--paper); }
  .offer__text { position: static; }
  .offer__list { padding-left: 22px; margin-bottom: 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__col--meta { justify-self: start; text-align: left; }
  .footer__credit { justify-content: flex-start; }
  .footer__brand { gap: 22px; }
  .footer__brand img:first-child { width: 150px; }
  .footer__sign { width: 120px; }

  .lb { grid-template-columns: 1fr; }
  .lb__fig { grid-column: 1; grid-row: 1; }
  .lb__prev, .lb__next { position: absolute; bottom: 14px; top: auto; }
  .lb__prev { left: 20px; }
  .lb__next { right: 20px; }
  .lb__img { max-height: calc(100dvh - 160px); }
}
