/* ═══════════════════════════════════════════
   PGB — overrides & new sections on top of As Obraz base
   ═══════════════════════════════════════════ */

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
[hidden] { display: none !important; }

.logo__mark { color: var(--accent); }
.phone { font: 500 13px/1 'Inter', sans-serif; letter-spacing: 0.02em; color: rgba(255,255,255,0.9); }
.phone:hover { color: #fff; }

/* ——— accent display words: blue→white premium gradient text ——— */
.title__line--2, .pk__gold, .why__gold, .loc__gold, .pft__gold,
.ct__gold, .fq__gold, .at__line--accent, .rv__gold, .quiz__title em {
  background: linear-gradient(104deg, #d6e6fa 0%, #7aa6dc 48%, #a9caf0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ——— HERO: balanced grid + large real image ——— */
.hero__grid {
  grid-template-columns: 1.02fr 0.98fr !important;
  gap: 52px !important;
  align-items: center !important;
}
.hero__title {
  font-size: clamp(40px, 4.4vw, 78px) !important;
  line-height: 1.03 !important;
  letter-spacing: -0.02em !important;
}
.hero__copy { padding-top: 0 !important; }

.hero__media { position: relative; height: 620px; }
.hm-primary {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  border-radius: 6px;
  filter: brightness(0.86) contrast(1.05) saturate(0.96);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55);
}
.hm-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(180deg, rgba(10,12,18,0.15) 0%, transparent 40%, rgba(10,12,18,0.45) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.hm-inset {
  position: absolute; left: -44px; bottom: 60px;
  width: 210px; height: 268px;
  background-size: cover; background-position: center;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 34px 64px rgba(0,0,0,0.6);
  z-index: 3;
}
.hero__media .split__badge {
  left: auto; right: -34px; top: 42px; bottom: auto;
  z-index: 4;
}

/* ——— BURGER (mobile only) ——— */
.burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ VALUES (3 wartości) ═══════════ */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 72px;
}
.vcard {
  padding: 36px 32px 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(143,181,227,0.22);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}
.vcard__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid rgba(143,181,227,0.4); color: var(--accent);
  margin-bottom: 24px;
}
.vcard__title {
  font-family: var(--display); font-weight: 400; font-size: 22px;
  letter-spacing: -0.01em; color: #fff; margin-bottom: 14px;
}
.vcard__text { font: 400 14px/1.65 'Inter', sans-serif; color: rgba(255,255,255,0.7); }

/* ═══════════ PAKIET ═══════════ */
.pakiet { position: relative; padding: 140px 0 150px; border-top: 1px solid var(--border); }
.pakiet__meta { display: flex; align-items: center; gap: 24px; padding-bottom: 40px; }
.pakiet__title { display: flex; flex-direction: column; gap: 6px; margin-bottom: 60px; max-width: 900px; }
.pk__small { font-family: var(--display); font-weight: 200; font-size: clamp(26px,3vw,40px); color: rgba(255,255,255,0.82); letter-spacing: -0.02em; }
.pk__big { font-family: var(--display); font-weight: 200; font-size: clamp(60px,7vw,104px); line-height: 0.95; letter-spacing: -0.03em; color: #fff; }
.pk__gold { font-weight: 500; font-style: italic; color: var(--accent); }
.pk__sub { margin-top: 22px; font: 400 15px/1.7 'Inter', sans-serif; color: rgba(255,255,255,0.66); max-width: 640px; }

.pkg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pkg-card {
  padding: 40px 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
}
.pkg-card--gold {
  background: linear-gradient(158deg, #6f9fd8, #5083c4 60%, #3a6bb0);
  border-color: transparent; color: #0f1826;
}
.pkg-card--cream {
  background: linear-gradient(160deg, #f4f8fc, #e7eef6 60%, #dbe6f1);
  border-color: transparent; color: #0f1826;
}
.pkg-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.pkg-card__ico { font-size: 30px; line-height: 1; }
.pkg-card__title { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; }
.pkg-card__list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.pkg-card__list li { position: relative; padding-left: 22px; font: 400 14.5px/1.55 'Inter', sans-serif; color: rgba(255,255,255,0.72); }
.pkg-card__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pkg-card__list b { font-weight: 600; color: #fff; }
.pkg-card--gold .pkg-card__list li, .pkg-card--cream .pkg-card__list li { color: rgba(15,24,38,0.82); }
.pkg-card--gold .pkg-card__list b, .pkg-card--cream .pkg-card__list b { color: #0f1826; }
.pkg-card--gold .pkg-card__list li::before, .pkg-card--cream .pkg-card__list li::before { background: rgba(15,24,38,0.55); }

.pakiet__cta {
  margin-top: 22px; padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: linear-gradient(180deg, rgba(143,181,227,0.08), rgba(143,181,227,0.02));
  border: 1px solid rgba(143,181,227,0.28); border-radius: 20px;
}
.pakiet__cta-text { font: 400 15px/1.65 'Inter', sans-serif; color: rgba(255,255,255,0.78); max-width: 640px; }

/* ═══════════ PORTFOLIO extra ═══════════ */
.portfolio__note { font: 500 11px/1 'Inter', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ═══════════ LOKALIZACJA / WARSZAWA ═══════════ */
.loc { position: relative; padding: 140px 0 150px; border-top: 1px solid var(--border); }
.loc__meta { display: flex; align-items: center; gap: 24px; padding-bottom: 44px; }
.loc__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: stretch; }
.loc__title { font-family: var(--display); font-weight: 200; font-size: clamp(38px,4.6vw,68px); line-height: 1.06; letter-spacing: -0.025em; color: #fff; margin-bottom: 26px; }
.loc__gold { font-weight: 500; font-style: italic; color: var(--accent); }
.loc__body { font: 400 15px/1.7 'Inter', sans-serif; color: rgba(255,255,255,0.7); max-width: 560px; margin-bottom: 40px; }
.loc__districts { display: flex; flex-direction: column; gap: 26px; }
.loc__group-lbl { display: block; font: 500 11px/1 'Inter', sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.loc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.loc__chips span {
  font: 500 12px/1 'Inter', sans-serif; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.78); padding: 9px 15px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  transition: all .2s ease;
}
.loc__chips span:hover { border-color: rgba(143,181,227,0.5); color: #fff; }

.loc__map {
  position: relative; border-radius: 24px; overflow: hidden;
  min-height: 520px;
  background: #0a0f1a;
  border: 1px solid rgba(143,181,227,0.2);
}
.loc__map-canvas { position: absolute; inset: 0; z-index: 1; }
.loc__map-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: 24px;
  background: radial-gradient(ellipse 85% 75% at 50% 42%, transparent 45%, rgba(8,11,17,0.4) 100%);
  box-shadow: inset 0 0 0 1px rgba(143,181,227,0.16), inset 0 0 90px rgba(8,11,17,0.55);
}
/* Leaflet dark theming */
.leaflet-container { background: #0a0f1a !important; font-family: 'Inter', sans-serif; outline: none; }
.leaflet-control-attribution {
  background: rgba(10,14,26,0.55) !important; color: rgba(255,255,255,0.38) !important;
  font-size: 9px !important; padding: 2px 6px !important;
}
.leaflet-control-attribution a { color: rgba(143,181,227,0.7) !important; }
.wa-pin {
  display: block; width: 13px; height: 13px; border-radius: 50%;
  background: #8fb5e3;
  box-shadow: 0 0 0 4px rgba(143,181,227,0.22), 0 0 16px 2px rgba(143,181,227,0.75);
  animation: locpin 2.8s ease-in-out infinite;
}
.wa-pin--main {
  width: 18px; height: 18px; background: #bad4f2;
  box-shadow: 0 0 0 6px rgba(143,181,227,0.28), 0 0 24px 4px rgba(143,181,227,0.95);
}
.wa-tt {
  background: #0e1626 !important; color: #eef3f9 !important;
  border: 1px solid rgba(143,181,227,0.3) !important; border-radius: 8px !important;
  font: 500 12px/1 'Inter', sans-serif !important; letter-spacing: 0.02em; padding: 7px 11px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5) !important;
}
.wa-tt::before { border-top-color: rgba(143,181,227,0.3) !important; }
@keyframes locpin { 0%,100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.28); opacity: 1; } }
.loc__map-badge {
  position: absolute; left: 28px; bottom: 28px; z-index: 3;
  background: var(--cream); color: #0f1826; border-radius: 14px;
  padding: 20px 24px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 30px 50px rgba(0,0,0,0.5);
}
.loc__map-badge-num { font-family: var(--display); font-weight: 200; font-size: 48px; line-height: 0.85; letter-spacing: -0.04em; }
.loc__map-badge-lbl { font: 500 11px/1.35 'Inter', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(15,24,38,0.6); }
.loc__map-tag { position: absolute; top: 22px; right: 26px; z-index: 3; font: 500 10px/1 'Inter', sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); text-shadow: 0 1px 6px rgba(0,0,0,0.6); }

/* ═══════════ WHY / DLACZEGO MY ═══════════ */
.why { position: relative; padding: 140px 0 150px; border-top: 1px solid var(--border); }
.why__meta { display: flex; align-items: center; gap: 24px; padding-bottom: 40px; }
.why__title { font-family: var(--display); font-weight: 200; font-size: clamp(38px,4.6vw,66px); line-height: 1.05; letter-spacing: -0.025em; color: #fff; margin-bottom: 56px; max-width: 800px; }
.why__gold { font-weight: 500; font-style: italic; color: var(--accent); }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-card {
  position: relative; padding: 40px 38px 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid var(--border-strong); border-radius: 20px;
}
.why-card__num { display: block; font-family: var(--display); font-weight: 200; font-size: 44px; color: rgba(143,181,227,0.55); letter-spacing: -0.04em; margin-bottom: 18px; }
.why-card__title { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; color: #fff; margin-bottom: 14px; }
.why-card__text { font: 400 14.5px/1.65 'Inter', sans-serif; color: rgba(255,255,255,0.7); }

/* ═══════════ FORM (multi-step on cream plate) ═══════════ */
.fform { margin-top: 8px; }
.fstep { display: none; margin-top: 48px; padding-top: 36px; border-top: 1px solid rgba(15,24,38,0.12); }
.fstep.is-active { display: block; animation: fstepin .35s ease; }
@keyframes fstepin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fstep__q { display: block; font-family: var(--display); font-weight: 400; font-style: italic; font-size: 22px; color: #0f1826; letter-spacing: -0.01em; margin-bottom: 24px; }
.fstep__q em { color: #3f5f88; font-size: 0.8em; }

.ffield { display: block; margin-top: 20px; }
.ffield--inline { margin-top: 26px; }
.ffield__lbl { display: block; font: 500 11px/1 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(15,24,38,0.5); margin-bottom: 10px; }
.ffield input, .ffield select, .ffield textarea, .fselect {
  width: 100%; font: 400 15px/1.4 'Inter', sans-serif; color: #0f1826;
  background: rgba(15,24,38,0.03); border: 1px solid rgba(15,24,38,0.16);
  border-radius: 12px; padding: 15px 18px; outline: none; transition: all .2s ease;
}
.ffield textarea { resize: vertical; min-height: 84px; }
.ffield input:focus, .ffield select:focus, .ffield textarea:focus { border-color: var(--accent); background: rgba(143,181,227,0.08); }
.ffields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ffields-row .ffield { margin-top: 20px; }

.fagree { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; cursor: pointer; }
.fagree input { position: absolute; opacity: 0; width: 0; height: 0; }
.fagree__box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid rgba(15,24,38,0.3); background: rgba(15,24,38,0.03); display: flex; align-items: center; justify-content: center; transition: all .2s ease; margin-top: 1px; }
.fagree__box::after { content: "✓"; font-size: 13px; color: #0f1826; opacity: 0; transition: opacity .2s ease; }
.fagree input:checked + .fagree__box { background: var(--accent); border-color: var(--accent); }
.fagree input:checked + .fagree__box::after { opacity: 1; }
.fagree__txt { font: 400 13px/1.5 'Inter', sans-serif; color: rgba(15,24,38,0.7); }
.fnote { margin-top: 22px; font: 400 13px/1.55 'Inter', sans-serif; color: rgba(15,24,38,0.58); }

/* form on cream plate — recolor opts to ink */
.fnav { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(15,24,38,0.12); }
.fnav__spacer { flex: 1; }
.fnav__back { background: transparent; border: 0; cursor: pointer; font: 500 12px/1 'Inter', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(15,24,38,0.6); padding: 12px 8px; transition: color .2s ease; }
.fnav__back:hover { color: #0f1826; }

.fthanks { text-align: center; padding: 60px 20px 30px; margin-top: 20px; animation: fstepin .4s ease; }
.fthanks__ico { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #0f1826; font-size: 34px; margin-bottom: 26px; box-shadow: 0 20px 40px rgba(40,72,124,0.28); }
.fthanks__title { font-family: var(--display); font-weight: 200; font-size: clamp(32px,4vw,52px); color: #0f1826; letter-spacing: -0.02em; margin-bottom: 18px; }
.fthanks__text { font: 400 15px/1.7 'Inter', sans-serif; color: rgba(15,24,38,0.72); max-width: 560px; margin: 0 auto 32px; }

/* ═══════════ CONTACTS simple ═══════════ */
.contacts__grid--simple { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.office--wide { display: flex; flex-direction: column; }
.office__note { display: block; margin-top: 16px; font: 400 13px/1.5 'Inter', sans-serif; color: var(--muted); }
.contacts__cta {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 44px; border-radius: 20px;
  background: linear-gradient(158deg, #6f9fd8, #5083c4 60%, #3a6bb0);
  color: #0f1826; position: relative; transition: transform .2s ease;
}
.contacts__cta:hover { transform: translateY(-3px); }
.contacts__cta-kicker { font: 500 11px/1 'Inter', sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(15,24,38,0.6); margin-bottom: 14px; }
.contacts__cta-title { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: -0.01em; }
.contacts__cta-arrow { position: absolute; top: 32px; right: 40px; font-size: 22px; }

/* ═══════════════════════════════════════════
   RESPONSIVE — full mobile pass (base site is desktop-only)
   ═══════════════════════════════════════════ */
@media (max-width: 1080px) {
  .container { padding: 0 32px; }

  /* nav → burger */
  .burger { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #0a0d13; border-left: 1px solid var(--border);
    padding: 96px 32px 40px; transform: translateX(100%); transition: transform .3s ease;
    z-index: 90;
  }
  .nav.is-open { transform: none; }
  .nav a { font-size: 18px; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .header__right { display: none; }

  /* hero */
  .hero__grid { grid-template-columns: 1fr !important; gap: 36px !important; align-items: stretch !important; }
  .hero__media { height: 440px; }
  .hm-inset { width: 150px; height: 190px; left: 14px; bottom: 14px; }
  .hero__media .split__badge { right: 14px; top: auto; bottom: 14px; min-width: 0; padding: 18px 20px; }

  /* stats */
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }

  /* about */
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__photo { min-height: 420px; }
  .values { grid-template-columns: 1fr; gap: 14px; }

  /* pakiet */
  .pkg-grid { grid-template-columns: 1fr; }
  .pakiet__cta { flex-direction: column; align-items: flex-start; gap: 24px; }

  /* portfolio — stack cards */
  .portfolio__stage { display: flex; flex-direction: column; gap: 14px; }
  .pf-card { width: 100%; aspect-ratio: auto; height: 380px; }
  .pf-card--main { order: -1; }

  /* loc */
  .loc__grid { grid-template-columns: 1fr; gap: 44px; }
  .loc__map { min-height: 360px; }

  /* why */
  .why__grid { grid-template-columns: 1fr; }

  /* contacts */
  .contacts__grid--simple { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .pakiet, .loc, .why { padding: 90px 0 96px; }

  .hero__title { font-size: clamp(28px, 8vw, 42px) !important; letter-spacing: -0.02em; }
  .hero__meta { flex-wrap: wrap; gap: 8px; }
  .hero__meta .eyebrow-line { display: none; }
  .hero__price { flex-wrap: wrap; gap: 10px 14px; }
  .hero__price-val { font-size: 44px !important; }
  .hero__price-note { flex-basis: 100%; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .hero__media { height: 360px; }

  /* meta rows: wrap, drop the flex-1 divider so nowrap eyebrows don't overflow */
  .about__meta, .pakiet__meta, .portfolio__meta, .loc__meta,
  .why__meta, .faq__meta, .contacts__meta {
    flex-wrap: wrap; gap: 8px 14px;
  }
  .eyebrow { white-space: normal; }
  .about__meta .eyebrow-line, .pakiet__meta .eyebrow-line,
  .portfolio__meta .eyebrow-line, .loc__meta .eyebrow-line,
  .why__meta .eyebrow-line, .faq__meta .eyebrow-line,
  .contacts__meta .eyebrow-line { display: none; }

  /* stats: shrink huge numbers so 2 columns fit */
  .stats__grid { gap: 28px 16px; }
  .stats__grid, .stat { min-width: 0; }
  .stat__num { font-size: clamp(40px, 12vw, 60px) !important; }
  .stats::before { display: none; }

  .about__ctas { flex-direction: column; align-items: stretch; }
  .about__ctas .btn { width: 100%; }

  .pkg-card { padding: 30px 26px; }
  .pakiet__cta { padding: 30px 26px; }

  .quiz__plate { padding: 32px 22px !important; }
  .quiz__top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ffields-row { grid-template-columns: 1fr; }
  .fnav { flex-wrap: wrap; }
  .quiz__cta { width: 100%; justify-content: center; }

  .pf-card { height: 300px; }
  .why-card, .vcard { padding: 28px 24px; }
  .contacts__cta { padding: 30px 26px; }
  .footer__bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ═══════════ BLUE PREMIUM — buttons & card contrast overrides ═══════════ */
.btn--gold {
  background: linear-gradient(135deg, #5f93d6 0%, #8fb9e8 100%) !important;
  border-color: transparent !important;
  color: #0a1320 !important;
  box-shadow: 0 14px 34px rgba(60,110,180,0.42) !important;
}
.btn--gold:hover { background: linear-gradient(135deg, #6fa0e0, #a3c6f0) !important; }
.btn__arrow { background: #0a1320; color: #eef3f9; }

.quiz__cta {
  background: linear-gradient(135deg, #5f93d6, #8fb9e8) !important;
  color: #0a1320 !important;
  box-shadow: 0 20px 40px rgba(40,72,124,0.32), inset 0 0 0 1px rgba(255,255,255,0.35) !important;
}
.quiz__cta:hover { background: linear-gradient(135deg, #6fa0e0, #a3c6f0) !important; }

/* blue gradient cards → light text for contrast */
.pkg-card--gold { color: #eef3f9; }
.pkg-card--gold .pkg-card__list li { color: rgba(238,243,249,0.82); }
.pkg-card--gold .pkg-card__list b { color: #fff; }
.pkg-card--gold .pkg-card__list li::before { background: rgba(255,255,255,0.72); }

.contacts__cta { color: #eef3f9; }
.contacts__cta-kicker { color: rgba(238,243,249,0.72); }

/* thank-you check icon → blue gradient */
.fthanks__ico {
  background: linear-gradient(135deg, #5f93d6, #8fb9e8) !important;
  color: #0a1320 !important;
  box-shadow: 0 20px 40px rgba(40,72,124,0.32) !important;
}

/* ═══════════ REALIZACJE — clean uniform gallery (overrides As Obraz showcase grid) ═══════════ */
.portfolio__stage {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: auto !important;
  gap: 16px !important;
  min-height: 0 !important;
}
.pf-card {
  position: relative !important;
  width: auto !important; height: auto !important;
  aspect-ratio: 4 / 5 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid var(--border-strong) !important;
  transform: none !important;
  grid-column: auto !important; grid-row: auto !important;
}
.pf-card__photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .55s ease;
}
.pf-card:hover .pf-card__photo { transform: scale(1.06); }
.pf-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,11,17,0) 38%, rgba(8,11,17,0.55) 72%, rgba(8,11,17,0.9) 100%);
}
.pf-card__tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font: 500 10px/1 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  color: #eef3f9; background: rgba(10,14,26,0.6); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 8px 14px;
}
.pf-card__foot {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2;
  display: flex; flex-direction: column; gap: 5px;
}
.pf-card__name {
  font-family: var(--display); font-weight: 400; font-size: 21px;
  letter-spacing: -0.01em; color: #fff; line-height: 1.1;
}
.pf-card__city {
  font: 500 10px/1 'Inter', sans-serif; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 900px) {
  .portfolio__stage { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .portfolio__stage { grid-template-columns: 1fr !important; }
  .pf-card { aspect-ratio: 3 / 4 !important; }
}

/* ═══════════ MOBILE — tighten section rhythm (base As Obraz keeps 140-160px) ═══════════ */
@media (max-width: 640px) {
  .hero { padding-top: 28px !important; padding-bottom: 52px !important; }
  .stats { padding: 52px 0 60px !important; }
  .about { padding: 60px 0 64px !important; }
  .pakiet { padding: 60px 0 64px !important; }
  .portfolio { padding: 60px 0 64px !important; }
  .loc { padding: 60px 0 64px !important; }
  .why { padding: 60px 0 64px !important; }
  .faq { padding: 60px 0 64px !important; }
  .quiz { padding: 52px 0 60px !important; }
  .contacts { padding: 60px 0 64px !important; }
  .footer { padding: 44px 0 34px !important; }

  .values { margin-top: 40px !important; }
  .pakiet__title { margin-bottom: 40px !important; }
  .why__title { margin-bottom: 36px !important; }
  .about__meta, .pakiet__meta, .portfolio__meta, .loc__meta, .why__meta { padding-bottom: 28px !important; }
  .portfolio__head { margin-bottom: 0 !important; }
}
@media (max-width: 900px) and (min-width: 641px) {
  /* tablet: trim the biggest desktop paddings a touch */
  .about, .portfolio, .faq, .quiz, .contacts { padding-top: 96px !important; padding-bottom: 100px !important; }
}

/* ═══════════ MOBILE — cap big section titles so long PL words don't clip ═══════════ */
@media (max-width: 640px) {
  .contacts__title { font-size: clamp(28px, 8.5vw, 40px) !important; }
  .pft__big { font-size: clamp(34px, 10vw, 48px) !important; }
  .faq__title { font-size: clamp(30px, 9vw, 44px) !important; }
  .about__title { font-size: clamp(28px, 8vw, 40px) !important; }
  .why__title { font-size: clamp(28px, 8vw, 42px) !important; }
  .loc__title { font-size: clamp(28px, 8vw, 42px) !important; }
  .pk__big { font-size: clamp(44px, 13vw, 66px) !important; }
  .pk__small { font-size: clamp(22px, 6vw, 32px) !important; }
  .quiz__title { font-size: clamp(26px, 7.5vw, 38px) !important; }
}

/* ═══════════ MOBILE — fix 2-col FAQ + wrap paddings ═══════════ */
@media (max-width: 640px) {
  .faq__wrap { grid-template-columns: 1fr !important; gap: 30px !important; padding: 0 20px !important; }
  .portfolio__wrap, .contacts__wrap, .ba__wrap, .reviews__wrap { padding: 0 20px !important; }
}
@media (max-width: 900px) and (min-width: 641px) {
  .faq__wrap { grid-template-columns: 1fr !important; gap: 40px !important; }
}

@media (max-width: 640px) {
  .faq__head { margin-bottom: 18px; }
  .faq__sub { margin-top: 12px; }
}

/* ═══════════ REALIZACJE v2 — button cards + clear labels + lightbox ═══════════ */
.pf-card {
  appearance: none; -webkit-appearance: none;
  padding: 0 !important; margin: 0; cursor: pointer; text-align: left;
  background: #10141c !important; font-family: inherit;
}
.pf-card__city {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font: 500 11px/1 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.86);
}
.pf-card__zoom {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10,14,26,0.55); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.9); transition: all .25s ease;
}
.pf-card__zoom::before, .pf-card__zoom::after {
  content: ""; position: absolute;
}
.pf-card__zoom::before {
  width: 13px; height: 13px; border: 1.5px solid #eef3f9; border-radius: 50%;
  top: 10px; left: 10px;
}
.pf-card__zoom::after {
  width: 6px; height: 1.5px; background: #eef3f9; border-radius: 2px;
  bottom: 12px; right: 10px; transform: rotate(45deg);
}
.pf-card:hover .pf-card__zoom { opacity: 1; transform: scale(1); }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,8,12,0.94); backdrop-filter: blur(10px);
  padding: 40px; animation: lbin .25s ease;
}
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox__img {
  max-width: 92vw; max-height: 80vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  object-fit: contain;
}
.lightbox__cap {
  font: 500 12px/1 'Inter', sans-serif; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.lightbox__close {
  position: absolute; top: 24px; right: 28px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.16); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.lightbox__nav:hover { background: var(--accent); color: #0a1320; border-color: var(--accent); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox__close { top: 14px; right: 14px; width: 42px; height: 42px; }
  .lightbox__nav { width: 46px; height: 46px; bottom: 20px; top: auto; transform: none; }
  .lightbox__nav--prev { left: 30%; }
  .lightbox__nav--next { right: 30%; }
  .lightbox__img { max-height: 72vh; }
  .pf-card__zoom { opacity: 1; transform: scale(1); }
}

/* realizacje foot — only the hint note now, centered */
.portfolio__foot--center { justify-content: center !important; text-align: center; }
