/* =================================================================
   P.U.B. Roman Głowala — style
   Paleta: grafit + akcent bursztynowy
================================================================= */

:root {
  --bg:        #0B0B0D;
  --bg-2:      #141418;
  --bg-3:      #1C1C21;
  --surface:   #1F1F25;
  --border:    #2A2A31;
  --text:      #F4F4F5;
  --text-dim:  #A1A1AA;
  --muted:     #71717A;
  --accent:    #E8A94B;
  --accent-2:  #F4C06B;
  --accent-dk: #B8842F;
  --ok:        #22C55E;
  --err:       #EF4444;

  --radius: 10px;
  --radius-lg: 18px;
  --container: 1200px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
.h-lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
.h-md { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin: 0 0 .4em; }
.h-sm { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 0 0 .6em; }
.eyebrow {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 500;
}
.lede { font-size: 1.1rem; color: var(--text); max-width: 54ch; }
.muted { color: var(--text-dim); }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--accent);
  color: #18120A;
}
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.22);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--danger {
  background: transparent;
  border: 1px solid #512020;
  color: #F87171;
}
.btn--danger:hover { background: #2A1414; }
.btn--sm { padding: 8px 14px; font-size: .85rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(11,11,13,0);
  backdrop-filter: blur(0px);
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11,11,13,.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
}
.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
}
.nav__mark {
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: .06em;
}
.nav__brand-rest { font-size: .95rem; color: var(--text); }
.nav__links {
  display: flex;
  gap: 28px;
  font-size: .92rem;
  color: var(--text-dim);
}
.nav__links a { transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .9rem;
  transition: border-color .2s, color .2s;
}
.nav__cta:hover { border-color: var(--accent); color: var(--accent); }
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.nav__burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 120px;
  padding-bottom: 80px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(11,11,13,.55) 0%,
    rgba(11,11,13,.65) 50%,
    rgba(11,11,13,.95) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 820px; }
.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 22px;
}
.hero__lede {
  font-size: 1.15rem;
  color: rgba(244,244,245,.86);
  max-width: 48ch;
  margin: 0 0 36px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__stats > div {
  display: flex; flex-direction: column;
}
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 600;
}
.hero__stats span {
  font-size: .85rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.hero__scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  color: var(--text-dim);
  z-index: 2;
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--dark { background: var(--bg-2); }
.section__head { margin-bottom: 60px; }
.section__head--center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.section__body p { margin: 0 0 16px; color: var(--text-dim); }
.section__body .lede { color: var(--text); margin-bottom: 24px; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li {
  padding: 14px 0 14px 36px;
  border-top: 1px solid var(--border);
  position: relative;
  color: var(--text);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  background: var(--accent);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.ticks li:last-child { border-bottom: 1px solid var(--border); }

/* ---------- Filter + cards ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}
.filter__btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .9rem;
  transition: all .2s;
}
.filter__btn:hover { color: var(--text); border-color: var(--text-dim); }
.filter__btn.is-active {
  background: var(--accent);
  color: #18120A;
  border-color: var(--accent);
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-3);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9rem;
}
.card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 10px;
  background: var(--accent);
  color: #18120A;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
}
.card__body { padding: 22px 24px 26px; }
.card__cat {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.card__meta {
  font-size: .85rem;
  color: var(--text-dim);
  margin: 0;
}
.card__meta span + span { margin-left: 4px; }

.card.is-hidden { display: none; }

.card--clickable:hover .card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.4) 100%);
  pointer-events: none;
}
.card__count {
  position: absolute;
  bottom: 14px; right: 14px;
  padding: 5px 11px;
  background: rgba(11,11,13,.75);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.card__count::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='3' width='18' height='18' rx='2' fill='none' stroke='black' stroke-width='2'/><circle cx='9' cy='9' r='2' fill='black'/><path d='m21 15-5-5L5 21' fill='none' stroke='black' stroke-width='2'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='3' width='18' height='18' rx='2' fill='none' stroke='black' stroke-width='2'/><circle cx='9' cy='9' r='2' fill='black'/><path d='m21 15-5-5L5 21' fill='none' stroke='black' stroke-width='2'/></svg>") center/contain no-repeat;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6,6,8,.92);
  backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox__close,
.lightbox__nav {
  position: fixed;
  background: rgba(28,28,33,.85);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  z-index: 102;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--accent); color: #18120A; border-color: var(--accent); }
.lightbox__close { top: 20px; right: 20px; font-size: 2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__caption {
  position: relative;
  padding: 16px 0 0;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.lightbox__title { font-family: var(--font-display); font-weight: 600; margin: 0; font-size: 1.05rem; }
.lightbox__subtitle { color: var(--text-dim); font-size: .88rem; margin: 4px 0 0; }
.lightbox__counter { color: var(--text-dim); font-size: .88rem; margin: 0; align-self: flex-end; }

@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
}

/* ---------- Map ---------- */
.map-wrap {
  margin-top: 60px;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.map-wrap iframe {
  display: block;
  filter: invert(.92) hue-rotate(180deg) contrast(.88) saturate(.6) brightness(.95);
  transition: filter .4s ease;
}
.map-wrap:hover iframe {
  filter: invert(.92) hue-rotate(180deg) contrast(.95) saturate(.85) brightness(1);
}
/* akcentowy pasek u góry */
.map-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
/* subtelny inset glow od środka do krawędzi dla głębi */
.map-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0,0,0,.35);
  pointer-events: none;
  z-index: 1;
}
.map-pin {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  background: rgba(11,11,13,.82);
  backdrop-filter: blur(10px);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
  pointer-events: auto;
}
.map-pin:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.map-pin svg {
  width: 14px; height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  color: var(--text-dim);
}
.empty a { color: var(--accent); text-decoration: underline; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s;
}
.step:hover { border-color: var(--accent); }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.step p { color: var(--text-dim); margin: 0; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex; flex-direction: column; gap: 20px;
}
.contact__list li {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}
.contact__list li:last-child { border-bottom: 1px solid var(--border); }
.contact__label {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__list a:hover { color: var(--accent); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field textarea, .field select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: .98rem;
  transition: border-color .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.honey { position: absolute; left: -9999px; }
.form__note { font-size: .8rem; margin-top: 4px; }
.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: .92rem;
}
.alert--ok { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #86EFAC; }
.alert--err { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #FCA5A5; }

/* ---------- Floating call button (FAB) ---------- */
.fab-call {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  background: var(--accent);
  color: #18120A;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(232,169,75,.35), 0 4px 12px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fab-call::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--accent);
  opacity: .35;
  z-index: -1;
  animation: fab-pulse 2.2s ease-out infinite;
}
.fab-call:hover {
  transform: translateY(-2px);
  background: var(--accent-2);
  box-shadow: 0 16px 48px rgba(232,169,75,.5), 0 6px 16px rgba(0,0,0,.5);
}
.fab-call svg { width: 22px; height: 22px; }
.fab-call__label { white-space: nowrap; }

@keyframes fab-pulse {
  0%   { transform: scale(1);    opacity: .4; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 640px) {
  .fab-call {
    bottom: 18px; right: 18px;
    padding: 14px;
  }
  .fab-call__label { display: none; }
  .fab-call svg { width: 24px; height: 24px; }
}

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(180deg, var(--bg-2) 0%, #17171C 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta__eyebrow {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: 500;
}
.cta__headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 22ch;
}
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  padding: 72px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer__col { min-width: 0; }
.footer__col--brand { max-width: 340px; }
.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.footer__tagline {
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0 0 16px;
}
.footer__address {
  font-size: .88rem;
  margin: 0;
}
.footer__heading {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 20px;
  font-weight: 600;
}
.footer__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.footer__list a {
  color: var(--text-dim);
  font-size: .92rem;
  transition: color .15s;
}
.footer__list a:hover { color: var(--accent); }

.footer__contact {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 14px;
}
.footer__contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.5;
}
.footer__contact .icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--accent);
  margin-top: 2px;
}
.footer__contact a {
  color: var(--text-dim);
  transition: color .15s;
}
.footer__contact a:hover { color: var(--accent); }

.footer__hours {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 6px;
  font-size: .88rem;
}
.footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-dim);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.footer__hours li:last-child { border-bottom: none; }
.footer__hours li span:first-child { color: var(--text); }

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bar p { margin: 0; font-size: .85rem; }
.footer__credit a {
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.footer__credit a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Legal page (privacy) ---------- */
.legal { margin-top: 40px; }
.legal h2 { margin-top: 40px; }
.legal p { color: var(--text-dim); line-height: 1.75; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--accent); border-bottom: 1px solid rgba(232,169,75,.3); }
.legal a:hover { border-bottom-color: var(--accent); }
.legal__list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.legal__list li {
  padding: 10px 0 10px 28px;
  color: var(--text-dim);
  position: relative;
  line-height: 1.65;
}
.legal__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 12px; height: 2px;
  background: var(--accent);
}

/* =================================================================
   ADMIN
================================================================= */
.admin-body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family: var(--font-sans);
}
.admin-auth {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.admin-auth__card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  display: flex; flex-direction: column;
}
.admin-side__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.admin-side__brand span { color: var(--accent); }
.admin-side__sub { font-size: .8rem; color: var(--text-dim); margin: 0 0 32px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--text-dim);
  transition: background .15s, color .15s;
}
.admin-nav a:hover { background: var(--bg-3); color: var(--text); }
.admin-nav a.is-active { background: var(--accent); color: #18120A; font-weight: 500; }
.admin-side__foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border); }
.admin-side__foot a { font-size: .85rem; color: var(--text-dim); }
.admin-side__foot a:hover { color: var(--accent); }

.admin-main { padding: 32px 40px; max-width: 1200px; }
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-head h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-table th, .admin-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.admin-table th {
  background: var(--bg-3);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table img.thumb {
  width: 60px; height: 44px;
  object-fit: cover;
  border-radius: 6px;
}
.admin-table .actions { display: flex; gap: 6px; justify-content: flex-end; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
}
.badge--ok { background: rgba(34,197,94,.15); color: #86EFAC; }
.badge--warn { background: rgba(232,169,75,.18); color: var(--accent-2); }
.badge--draft { background: var(--bg-3); color: var(--text-dim); }

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
}
.stat__label {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.image-grid__item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.image-grid__item img { width: 100%; height: 100%; object-fit: cover; }
.image-grid__item .del {
  position: absolute;
  top: 6px; right: 6px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,.75);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}
.image-grid__item .del:hover { background: var(--err); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    padding: 20px 24px;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    gap: 18px;
  }
  .section { padding: 80px 0; }
  .section__grid, .contact { grid-template-columns: 1fr; gap: 40px; }
  .cta__inner { grid-template-columns: 1fr; gap: 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__col--brand { grid-column: 1 / -1; max-width: 100%; }
  .footer__bar { flex-direction: column; align-items: flex-start; text-align: left; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { border-right: none; border-bottom: 1px solid var(--border); }
  .admin-main { padding: 24px; }
}

@media (max-width: 560px) {
  .hero__stats { gap: 24px; }
  .hero__stats strong { font-size: 1.5rem; }
  .h-lg { font-size: 2rem; }
  .admin-table { font-size: .85rem; }
  .admin-table th, .admin-table td { padding: 10px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .cta { padding: 40px 0; }
}
