/* =========================================================
   Zula-Art — style strony
   Kolory i czcionki zmienisz w jednym miejscu: :root poniżej
   ========================================================= */

:root {
  --cream: #f7f2ea;
  --cream-2: #efe7da;
  --paper: #fbf8f3;
  --navy: #1b3560;
  --navy-dark: #172b48;
  --blue: #2f6db3;
  --blue-soft: #7ea6d6;
  --ink: #1f2d44;
  --muted: #5b6678;
  --ok: #3f7d4e;
  --sold: #9a3b3b;
  --hold: #a8741a;

  --font-script: "Mr Dafoe", "Brush Script MT", cursive;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --radius: 4px;
  --shadow: 0 10px 30px rgba(23, 43, 72, .12);
  --header-h: 84px;

  /* Pociągnięcie pędzlem (tło przycisków) */
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 70' preserveAspectRatio='none'%3E%3Cpath d='M9 22C40 9 95 6 150 8c52 1 104-2 141 5-6 4 2 8-3 12 7 5 2 11 5 16-4 6 3 11-8 16-40 7-95 5-140 6-50 1-96 4-133-3 4-5-6-9 0-14-7-5 2-9-4-14 5-4-2-8 0-10z'/%3E%3Cpath d='M20 11c25-5 60-6 90-5-30 2-60 3-90 5zM185 62c35 1 70-1 100-4-30 5-65 6-100 4z'/%3E%3C/svg%3E");
  /* Cienkie pociągnięcie pod nagłówkami */
  --swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M2 20C70 14 170 6 298 2c-60 6-140 12-210 18-30 3-60 3-86 0z'/%3E%3Cpath d='M60 23c60-5 140-11 230-15-80 7-150 12-230 15z' opacity='.5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* delikatna faktura papieru */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; }
.script { font-family: var(--font-script); font-weight: 400; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  text-decoration: none; color: var(--navy); line-height: 1;
}
.logo__name {
  font-family: var(--font-script);
  font-size: 3rem;
  padding: 0 .3em .1em .1em;
  position: relative;
}
.logo__name::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px;
  background: var(--blue);
  -webkit-mask: var(--swoosh) center / 100% 100% no-repeat;
          mask: var(--swoosh) center / 100% 100% no-repeat;
  opacity: .85;
}
.logo__tag {
  margin-top: 8px;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
}
.logo--light { color: #fff; }
.logo--light .logo__name::after { background: #fff; opacity: .6; }

/* ---------- Nagłówek ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 234, .94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 2px 18px rgba(23, 43, 72, .1); }
.header__inner {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h); padding-block: 8px;
}
.header .logo__name { font-size: 2.6rem; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: .95rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover { color: var(--blue); }
.nav a.is-active { border-bottom-color: var(--navy); }

.social { display: flex; align-items: center; gap: 16px; margin-left: 20px; }
.social a { color: var(--navy); display: grid; place-items: center; transition: transform .2s, color .2s; }
.social a:hover { color: var(--blue); transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social__palette svg { width: 30px; height: 30px; }
.social svg.icon-stroke { fill: none; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; padding: 10px;
}
.burger span { height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Przyciski ---------- */
.btn-brush {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 40px 20px;
  color: #fff; text-decoration: none; font: inherit; font-size: 1.1rem;
  border: 0; cursor: pointer; background: none; position: relative; isolation: isolate;
  transition: transform .2s;
}
.btn-brush::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--navy);
  -webkit-mask: var(--brush) center / 100% 100% no-repeat;
          mask: var(--brush) center / 100% 100% no-repeat;
  transition: background .2s;
}
.btn-brush:hover { transform: translateY(-2px); }
.btn-brush:hover::before { background: var(--blue); }
.btn-brush svg { width: 22px; height: 22px; transition: transform .2s; }
.btn-brush:hover svg { transform: translateX(4px); }
.btn-brush--small { padding: 12px 28px 14px; font-size: 1rem; }

.btn-link {
  color: var(--navy); font-style: italic; text-underline-offset: 4px;
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: .95rem; cursor: pointer;
  padding: 7px 18px; border-radius: 999px;
  border: 1px solid rgba(27, 53, 96, .35); background: transparent; color: var(--navy);
  text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip svg { width: 16px; height: 16px; fill: currentColor; }
.chip--light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.chip--light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(247, 242, 234, .95) 0%, rgba(247, 242, 234, .78) 30%, rgba(247, 242, 234, 0) 58%),
    url("../img/hero.jpg") right center / cover no-repeat;
  background:
    linear-gradient(90deg, rgba(247, 242, 234, .95) 0%, rgba(247, 242, 234, .78) 30%, rgba(247, 242, 234, 0) 58%),
    image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg")) right center / cover no-repeat;
  -webkit-mask: linear-gradient(#000 calc(100% - 26px), transparent);
          mask: linear-gradient(#000 calc(100% - 26px), transparent);
}
.hero__content { padding-block: 60px 80px; }
.hero__title { display: flex; flex-direction: column; font-weight: 400; }
.hero__brand {
  font-family: var(--font-script); color: var(--navy);
  font-size: clamp(4.5rem, 11vw, 8.5rem); line-height: .9;
  margin-left: -.05em;
}
.hero__lead {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--navy);
  max-width: 13em; margin: 20px 0 0 .3em; font-weight: 500;
}
.hero__themes {
  font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--navy); margin: 18px 0 30px .45em;
}
.hero__themes i { font-style: normal; margin: 0 .4em; opacity: .7; }
.hero__intro {
  max-width: 30em; margin: -14px 0 28px .45em;
  color: var(--ink); font-size: 1.02rem;
}
.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-left: .2em; }

/* ---------- Sekcje ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tint { background: rgba(239, 231, 218, .55); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 40px; margin-bottom: 36px; }
.section-head .script-heading { margin-bottom: 0; }
.section-intro { max-width: 560px; color: var(--muted); margin: 0; }
.demo-note { font-style: italic; color: var(--muted); font-size: .9rem; }

.script-heading {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(3rem, 6vw, 4.2rem); color: var(--navy);
  display: inline-block; position: relative;
  padding: 0 1.6em .15em .1em; margin-bottom: 32px; line-height: 1;
}
.script-heading::after {
  content: ""; position: absolute; left: 30%; right: 0; bottom: 0; height: 12px;
  background: var(--blue);
  -webkit-mask: var(--swoosh) center / 100% 100% no-repeat;
          mask: var(--swoosh) center / 100% 100% no-repeat;
  opacity: .8;
}
.script-heading--light { color: #fff; }
.script-heading--light::after { background: var(--blue-soft); }

/* ---------- Kategorie ---------- */
.categories {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
}
.category {
  display: block; text-align: center; text-decoration: none; color: var(--navy);
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.category__img { display: block; overflow: hidden; aspect-ratio: 1 / .95; box-shadow: var(--shadow); }
.category__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.category:hover .category__img img { transform: scale(1.06); }
.category__name {
  display: inline-block; margin-top: 18px; font-weight: 600; font-size: 1.1rem;
  padding-bottom: 10px; position: relative;
}
.category__name::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 40px; height: 2px;
  background: var(--navy); transform: translateX(-50%); transition: width .3s;
}
.category:hover .category__name::after { width: 100%; }

/* ---------- Galeria ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px;
}
.card {
  background: var(--paper); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  animation: fadeUp .45s ease both;
}
.card__btn {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  position: relative; overflow: hidden; aspect-ratio: 4 / 3.4;
}
.card__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card__btn:hover img { transform: scale(1.05); }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card[hidden] { display: none; }
.card__title { font-size: 1.15rem; color: var(--navy); font-weight: 600; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__meta { font-size: .9rem; color: var(--muted); margin: 0; }

.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--ok);
}
.badge--sprzedany { background: var(--sold); }
.badge--rezerwacja { background: var(--hold); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- O mnie ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr);
  align-items: center; background: var(--cream-2);
  position: relative; overflow: hidden;
}
.about__img { align-self: stretch; }
.about__img img {
  width: 100%; height: 100%; object-fit: cover; min-height: 340px;
  -webkit-mask: linear-gradient(90deg, #000 72%, transparent);
          mask: linear-gradient(90deg, #000 72%, transparent);
}
.about__text { padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 90px) clamp(40px, 6vw, 80px) 24px; position: relative; }
.about__text .script-heading { margin-bottom: 18px; }
.about__quote { font-style: italic; color: var(--navy); font-size: 1.15rem; }
/* dokończenie zdania z „O mnie” — przejście do sekcji Warsztaty */
.section--continued { padding-top: clamp(36px, 5vw, 56px); }
.continued { font-style: italic; color: var(--navy); font-size: clamp(1.15rem, 2vw, 1.35rem); margin: 0 0 18px; }
.signature {
  display: block; text-align: right; font-family: var(--font-script);
  font-size: 3.4rem; color: var(--navy); transform: rotate(-6deg); margin-top: -10px;
}

/* ---------- Na zamówienie ---------- */
.steps {
  list-style: none; margin: 0 0 44px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  counter-reset: step;
}
.steps li {
  background: var(--paper); padding: 30px 24px 26px; box-shadow: var(--shadow);
  position: relative;
}
.steps__num {
  font-family: var(--font-script); font-size: 3.4rem; color: var(--blue);
  line-height: .8; display: block; margin-bottom: 12px;
}
.steps h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Wystawy ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(27, 53, 96, .2); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 0 0 30px 26px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--cream); border: 3px solid var(--navy);
}
.timeline time { font-family: var(--font-script); font-size: 2.2rem; line-height: 1; color: var(--blue); }
.timeline h3 { font-size: 1.15rem; color: var(--navy); }
.timeline p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Opinie ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review {
  margin: 0; padding: 34px 28px 26px; background: var(--paper); box-shadow: var(--shadow);
  position: relative;
}
.review::before {
  content: "“"; position: absolute; top: -12px; left: 18px;
  font-size: 5rem; line-height: 1; color: var(--blue-soft); font-family: Georgia, serif;
}
.review blockquote { margin: 0 0 14px; font-style: italic; }
.review figcaption { color: var(--navy); font-weight: 600; }

/* ---------- Poleć ---------- */
.share { background: var(--navy); color: #e8eef7; padding-block: clamp(50px, 7vw, 80px); }
.share__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.share__text { max-width: 620px; }
.share__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.share__qr { text-align: center; }
.share__qr p { margin: 12px 0 0; }
.share__qr small { opacity: .75; }
.qr {
  width: 164px; height: 164px; background: #fff; padding: 10px; margin-inline: auto;
  display: grid; place-items: center; border-radius: var(--radius);
}
.qr img, .qr svg { width: 100%; height: 100%; }

/* ---------- FAQ ---------- */
details {
  border-bottom: 1px solid rgba(27, 53, 96, .18);
  padding: 4px 0;
}
summary {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative;
  font-size: 1.1rem; color: var(--navy); font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--blue); transition: transform .25s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); margin: 0 0 18px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact__list svg { width: 22px; height: 22px; fill: var(--navy); color: var(--navy); flex: none; }
.contact__list a { color: var(--ink); }

.form { background: var(--paper); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .92rem; color: var(--navy); }
.form input, .form textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 14px; border: 1px solid rgba(27, 53, 96, .25); border-radius: var(--radius);
  background: #fff; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 109, 179, .15); }
.form input.is-invalid, .form textarea.is-invalid { border-color: var(--sold); }
.form textarea { resize: vertical; }
.form .btn-brush { justify-self: start; }
.form__status { margin: 0; min-height: 1.4em; font-size: .95rem; color: var(--ok); }
.form__status.is-error { color: var(--sold); }

/* ---------- Stopka ---------- */
.footer { background: var(--navy-dark); color: #dfe6f0; padding-top: 44px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .logo__name { font-size: 2.8rem; }
.footer__contact { display: flex; gap: 36px; flex-wrap: wrap; }
.footer__contact a, .footer__contact span { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.footer__contact a:hover { color: #fff; text-decoration: underline; }
.footer__contact svg { width: 22px; height: 22px; fill: currentColor; color: currentColor; }
.footer__motto { font-size: 2.2rem; transform: rotate(-8deg); margin: 0; color: #cfd8e6; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-block: 20px;
  text-align: center; font-size: .85rem;
}
.footer__bottom p { margin: 0 0 4px; }
.footer .demo-note { color: #9fb0c8; font-size: .8rem; }

/* ---------- Powiększenie obrazów (PhotoSwipe) ---------- */
.pswp { --pswp-bg: #0f192a; --pswp-placeholder-bg: #1b2a44; font-family: var(--font-serif); }
.pswp__opis {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 14px 28px; flex-wrap: wrap;
  padding: 40px max(20px, calc((100% - 1100px) / 2)) 22px;
  color: #e8eef7;
  background: linear-gradient(transparent, rgba(10, 18, 32, .88) 40%);
  transition: opacity .3s;
}
.pswp__opis h3 { font-size: 1.4rem; color: #fff; }
.pswp__opis p { margin: 2px 0 0; font-size: .95rem; opacity: .88; }
.pswp__opis .pswp__opis-desc { font-style: italic; }
.pswp__opis .pswp__opis-link { display: inline-block; margin-top: 6px; color: #b9d0ee; font-size: .92rem; }
.pswp__opis .pswp__opis-hint { font-size: .8rem; opacity: .6; margin-top: 6px; }
.pswp__opis .btn-brush::before { background: var(--blue); }
.pswp__opis .btn-brush:hover::before { background: #3d82cc; }
.pswp--zoomed-in .pswp__opis { opacity: 0; pointer-events: none; }
.pswp__counter { font-family: var(--font-serif); }

/* ---------- Podstrona obrazu (obrazy/*.html) ---------- */
.header__back { margin-left: auto; color: var(--navy); text-decoration: none; font-size: .95rem; }
.header__back:hover { color: var(--blue); text-decoration: underline; }
.okruszki { font-size: .9rem; color: var(--muted); padding: 22px 0 10px; }
.okruszki a { color: var(--muted); }
.okruszki span { margin: 0 .3em; }
.obraz { padding-bottom: clamp(50px, 7vw, 90px); }
.obraz__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 60px); align-items: start; margin-top: 14px;
}
.obraz__foto { margin: 0; }
.obraz__foto a { display: block; cursor: zoom-in; }
.obraz__foto img { width: 100%; height: auto; box-shadow: var(--shadow); }
.obraz__foto figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; font-style: italic; }
.obraz__info { position: sticky; top: calc(var(--header-h) + 20px); }
.badge--inline { position: static; display: inline-block; }
.obraz__tytul { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); font-weight: 500; margin: 12px 0 14px; }
.obraz__opis { font-size: 1.1rem; font-style: italic; }
.obraz__dane { margin: 22px 0 28px; border-top: 1px solid rgba(27, 53, 96, .15); }
.obraz__dane div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(27, 53, 96, .15); }
.obraz__dane dt { color: var(--muted); }
.obraz__dane dd { margin: 0; color: var(--navy); text-align: right; }
.obraz__uwaga { font-size: .9rem; color: var(--muted); margin-top: 22px; }
.obraz__share { display: flex; flex-wrap: wrap; gap: 8px; }
.obraz__inne { margin-top: clamp(50px, 7vw, 80px); }
@media (max-width: 920px) {
  .obraz__grid { grid-template-columns: 1fr; }
  .obraz__info { position: static; }
}

/* ---------- Animacja pojawiania się ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .social { margin-left: 8px; gap: 12px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .header .logo__name { font-size: 2.2rem; }
  .header .logo__tag { font-size: .62rem; }
  .burger { display: flex; }
  .social { margin-left: auto; }
  .burger { margin-left: 4px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--cream); box-shadow: 0 12px 24px rgba(23, 43, 72, .12);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.is-open { max-height: 480px; }
  .nav a { padding: 14px 24px; border-bottom: 1px solid rgba(27, 53, 96, .08); }
  .nav a.is-active { border-bottom-color: rgba(27, 53, 96, .08); font-weight: 600; }

  .categories { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__img img {
    min-height: 0; max-height: 360px;
    -webkit-mask: linear-gradient(#000 75%, transparent);
            mask: linear-gradient(#000 75%, transparent);
  }
  .about__text { padding: 10px 24px 50px; }
  .reviews { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .social a:not(.social__palette) { display: none; }
  .hero {
    background:
      linear-gradient(180deg, rgba(247, 242, 234, .92) 0%, rgba(247, 242, 234, .7) 55%, rgba(247, 242, 234, .1) 100%),
      url("../img/hero.jpg") 70% center / cover no-repeat;
    background:
      linear-gradient(180deg, rgba(247, 242, 234, .92) 0%, rgba(247, 242, 234, .7) 55%, rgba(247, 242, 234, .1) 100%),
      image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg")) 70% center / cover no-repeat;
  }
  .categories { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .categories > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .logo--light { align-items: center; }
  .footer__contact { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
