/* Új Kriterion Galéria – white, quiet, posters first. */
:root {
  --ink: #111;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --bg: #fff;
  --accent: #111;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1120px; }

/* ---------- home ---------- */
.home main { display: flex; align-items: center; }
.home-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 56px; padding-bottom: 40px; }
.home-logo { width: 170px; }
.home-title { margin: 36px 0 0; font-weight: 400; line-height: 1.25; }
.home-title span { display: block; }
.home-title span:first-child { font-size: clamp(30px, 6vw, 44px); font-weight: 500; letter-spacing: .01em; }
.home-title span + span { font-size: clamp(18px, 3.4vw, 23px); color: var(--muted); margin-top: 4px; }

.home-nav ul { list-style: none; margin: 48px 0 0; padding: 0; display: flex; gap: 12px 56px; flex-wrap: wrap; justify-content: center; }
.home-nav a { display: flex; flex-direction: column; align-items: center; text-decoration: none; padding: 6px 4px; }
.home-nav .hu { font-size: 22px; font-weight: 500; letter-spacing: .02em; border-bottom: 1px solid transparent; transition: border-color .15s; }
.home-nav .other { font-size: 14px; color: var(--muted); }
.home-nav a:hover { color: var(--ink); }
.home-nav a:hover .hu { border-color: var(--ink); }

.fb { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-size: 15px; color: var(--muted); text-decoration: none; }
.fb:hover { color: #1877f2; }

.sponsors { margin-top: 56px; }
.sponsors h2 { margin: 0 0 14px; font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sponsor-logos { display: flex; align-items: center; justify-content: center; gap: 28px 44px; flex-wrap: wrap; }
.sponsor-logos .mol { width: 120px; }
.sponsor-logos .bga { width: 300px; max-width: 80vw; }

/* ---------- inner pages ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wrap.header-inner { max-width: 1120px; }
.back {
  font: inherit; font-size: 15px; color: var(--ink); background: none; border: 0; padding: 6px 0;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.back:hover { color: var(--muted); }
.back .sep { color: #bbb; }
.mini-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; }
.mini-brand img { width: 44px; }
.mini-brand:hover { color: var(--ink); }

.page { padding-top: 44px; padding-bottom: 64px; }
.tri-title { margin: 0 0 36px; font-weight: 400; line-height: 1.2; }
.tri-title span { display: inline; }
.tri-title span:first-child { font-size: 34px; font-weight: 500; }
.tri-title span + span { font-size: 22px; color: var(--muted); }
.tri-title span + span::before { content: "/"; margin: 0 .35em 0 .15em; color: #ccc; }

.page > p { margin: 0 0 1.4em; text-align: justify; hyphens: auto; }
.page > p + p { padding-top: 1.4em; border-top: 1px solid var(--line); }

/* ---------- posters ---------- */
.poster-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.poster { display: block; aspect-ratio: 297 / 420; background: #f4f4f4; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 14px 30px rgba(0,0,0,.12); }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #fff; display: none; flex-direction: column;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: #fff; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.lb-nav { display: flex; align-items: center; gap: 6px; }
.lb-nav button, .lb-pdf {
  font: inherit; font-size: 15px; background: none; border: 1px solid var(--line); border-radius: 4px;
  min-width: 40px; height: 36px; padding: 0 10px; cursor: pointer; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.lb-nav button { font-size: 22px; line-height: 1; }
.lb-nav button:hover, .lb-pdf:hover { border-color: var(--ink); color: var(--ink); }
.lb-img { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding: 16px; touch-action: pan-y pinch-zoom; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.prose h3 { margin: 0 0 4px; font-size: 21px; font-weight: 500; }
.prose h3:not(:first-child) { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h4 { margin: 22px 0 4px; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.prose p { margin: 0; }
.prose strong { font-weight: 500; }

.contact-form h2 { margin: 0 0 18px; font-size: 21px; font-weight: 500; }
.contact-form form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--ink); border: 1px solid #cfcfcf; border-radius: 4px; padding: 10px 12px; width: 100%; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form .hp { position: absolute; left: -9999px; }
.btn { justify-self: start; font: inherit; font-size: 16px; background: var(--ink); color: #fff; border: 0; border-radius: 4px; padding: 11px 22px; cursor: pointer; }
.btn:hover { background: #333; }
.btn:disabled { opacity: .5; }
.form-status { margin: 0; font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: #1d7a3a; }
.form-status.error { color: #b3261e; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 22px 0 28px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-inner img { width: 40px; }
.footer-inner p { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
  .tri-title span:first-child { font-size: 28px; }
  .tri-title span + span { font-size: 18px; }
  .mini-brand span { display: none; }
  .page > p { text-align: left; }
  .lb-bar { padding: 8px 12px; }
  .lb-img { padding: 8px; }
}
