/* Gróf Andrea – letisztult, sötét tónusú oldal; a kép a főszereplő (K4, K7).
   Háttér: színezetlen antracit (nem tiszta fekete), törtfehér szöveg, egyetlen halk kiemelőszín. */

:root {
  color-scheme: dark;
  --bg: #161514;
  --bg-raised: #1d1c1a;
  --text: #e9e6e1;
  --muted: #a39e95; /* kontraszt a háttéren ≥ 4.5:1 (WCAG AA) */
  --line: #2c2a27;
  --accent: #c9b891; /* fókusz, linkek – az egyetlen kiemelőszín */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gap: 10px;
  --row-h: 170px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
body.has-viewer { overflow: hidden; }
main { flex: 1; }
img, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; letter-spacing: .02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
p { margin: 0 0 1em; }
.lead { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.empty { color: var(--muted); padding: 2rem 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: var(--bg); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ---------- fejléc ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  position: relative;
}
.brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav { display: flex; gap: 2rem; align-items: center; font-size: .92rem; }
.site-nav a { text-decoration: none; color: var(--muted); padding: .5rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.langs { gap: .8rem !important; font-size: .78rem; letter-spacing: .08em; }
.langs a[aria-current] { color: var(--text); border-bottom: 1px solid var(--accent); }
.count { display: inline-block; min-width: 1.4em; text-align: center; font-size: .72rem; border: 1px solid var(--line); border-radius: 1em; padding: 0 .35em; color: var(--text); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; position: relative; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--text); position: absolute; left: 11px; content: ""; }
.bars { top: 21px; }
.bars::before { top: -7px; left: 0; }
.bars::after { top: 7px; left: 0; }

@media (max-width: 899px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    background: var(--bg-raised);
    padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
    z-index: 20;
    font-size: 1.05rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .langs { flex-direction: row !important; flex-wrap: wrap; }
}

/* ---------- általános elrendezés ---------- */
.section { padding: 1rem var(--gutter) 3rem; max-width: 1800px; margin: 0 auto; }
.section-title { margin-bottom: .6rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.prose { max-width: 46rem; }
.prose p { color: var(--text); }

/* ---------- hős (kezdőlap) ---------- */
.hero { padding: 0 var(--gutter) 2rem; }
.hero-grid { --row-h: 260px; justify-content: center; }
.hero-grid::after { display: none; }
.hero-grid .tile { flex-grow: 0; }
.hero-text { text-align: center; padding: 3rem 0 1rem; }
.hero-text h1 { letter-spacing: .15em; text-transform: uppercase; font-size: clamp(2rem, 6vw, 3.4rem); }
.hero-text .lead { margin: 0 auto; }

/* ---------- képrács: teljes (nem vágott) képek, sorokba igazítva ---------- */
.grid { display: flex; flex-wrap: wrap; gap: var(--gap); list-style: none; margin: 1.5rem 0 0; padding: 0; }
.grid::after { content: ""; flex-grow: 1000000; }
.tile {
  flex-grow: calc(var(--ar) * 100);
  flex-basis: calc(var(--ar) * var(--row-h));
  min-width: 0;
  position: relative;
}
.tile a { display: block; line-height: 0; }
.tile img { width: 100%; background: var(--bg-raised); transition: opacity .25s; }
.tile a:hover img { opacity: .92; }
.tile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 .6rem;
  min-height: 44px;
  font-size: .82rem;
  color: var(--muted);
  padding-top: .25rem;
}
.tile-meta .size { margin-right: auto; white-space: nowrap; }
.tile-meta .badge, .status { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.fav {
  background: none;
  border: 0;
  color: var(--muted);
  width: 44px;
  height: 44px;
  margin: -6px -10px -6px 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}
.fav:hover { color: var(--text); }
.pv-actions .fav { width: auto; height: 44px; margin: 0; padding: 0 1.1rem 0 .8rem; border: 1px solid var(--muted); border-radius: 2px; gap: .5rem; grid-auto-flow: column; color: var(--text); }
.pv-actions .fav .fav-label { font-size: .95rem; letter-spacing: .04em; }
.pv-actions .fav:hover, .pv-actions .fav[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.fav[aria-pressed="true"] { color: var(--accent); }
.fav[aria-pressed="true"] path { fill: currentColor; }

.price { white-space: nowrap; color: var(--text); }
.price-was { color: var(--muted); font-weight: 400; margin-right: .3em; }
.price-note { color: var(--muted); font-size: .75rem; white-space: normal; }

@media (max-width: 639px) { :root { --row-h: 140px; --gap: 8px; } .hero-grid { --row-h: 200px; } }
@media (min-width: 1200px) { :root { --row-h: 210px; } .hero-grid { --row-h: 320px; } }

/* ---------- szűrők ---------- */
.filter-box { margin-top: 1.5rem; border-block: 1px solid var(--line); }
.filter-box > summary { cursor: pointer; padding: .8rem 0; min-height: 44px; list-style: none; color: var(--muted); font-size: .9rem; }
.filter-box > summary::-webkit-details-marker { display: none; }
.filter-box > summary::before { content: "＋ "; color: var(--accent); }
.filter-box[open] > summary::before { content: "－ "; }
.filters { border: 0 !important; margin-top: 0 !important; padding-top: 0 !important; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: end; margin: 1.5rem 0 0; padding: 1rem 0; border-block: 1px solid var(--line); font-size: .88rem; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.filters legend { float: left; margin-right: .5rem; padding: 0; color: var(--muted); }
.filters input[type="number"] { width: 6.2rem; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 3px; padding: .45rem .5rem; min-height: 44px; }
.check { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.reset { color: var(--muted); }

/* ---------- galériakártyák ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.card a { text-decoration: none; display: block; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-raised); }
.card h3 { margin: .8rem 0 .25rem; font-size: 1.25rem; }
.card p { color: var(--muted); font-size: .92rem; }

/* ---------- lábléc ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem var(--gutter) 2rem; text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2rem; }
.motto { margin: 0 auto 1.5rem; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--text); max-width: 36rem; }
.motto p { margin: 0 0 .25rem; }
.motto footer { font-family: var(--sans); font-style: normal; font-size: .8rem; color: var(--muted); border: 0; padding: 0; margin: 0; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.footer-links a { display: inline-block; padding: .6rem 0; }
.copy { margin: 0; }

/* ---------- festmény-nézet (K12, K63) ---------- */
.viewer { position: fixed; inset: 0; z-index: 50; background: #0f0e0d; overflow: auto; overscroll-behavior: contain; }
.viewer[hidden] { display: none; }
.pv { display: grid; grid-template-columns: 1fr; min-height: 100%; }
.pv-stage { position: relative; background: #0f0e0d; height: 56vh; min-height: 260px; }
.pv-osd { position: absolute; inset: 0; }
.pv-osd picture, .pv-osd img { width: 100%; height: 100%; object-fit: contain; }
.pv-tools { position: absolute; right: .75rem; bottom: .75rem; display: flex; gap: .4rem; z-index: 3; }
.pv-tools button, .pv-nav, .pv-close {
  background: color-mix(in srgb, #0f0e0d 75%, transparent);
  border: 1px solid var(--line);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}
.pv-tools button:hover, .pv-nav:hover, .pv-close:hover { border-color: var(--accent); }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; font-size: 1.8rem; padding-bottom: .2rem; }
.pv-prev { left: .75rem; }
.pv-next { right: .75rem; }
.pv-info { padding: 1.5rem var(--gutter) 3rem; position: relative; max-width: 42rem; }
.pv-close { position: fixed; top: .75rem; right: .75rem; z-index: 6; }
.pv-title { font-size: clamp(1.5rem, 3vw, 2rem); padding-right: 3rem; }
.facts { margin: 0 0 1rem; display: grid; gap: .2rem; font-size: .92rem; }
.facts div { display: flex; gap: .75rem; }
.facts dt { color: var(--muted); min-width: 5.5rem; }
.facts dd { margin: 0; }
.status { color: var(--muted); margin: 0 0 .25rem; }
.pv-price { font-size: 1.35rem; font-family: var(--serif); margin: 0 0 1rem; }
.story { color: var(--muted); font-style: italic; }
.pv-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.25rem 0; }
.btn, .pv-actions button:not(.fav), .share button, .fav-actions button, button.primary {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--text);
  padding: .65rem 1.1rem;
  min-height: 44px;
  border-radius: 2px;
  letter-spacing: .04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn:hover, .pv-actions button:not(.fav):hover, .share button:hover, .fav-actions button:hover, button.primary:hover { border-color: var(--accent); color: var(--accent); }
button.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
button.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.share { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.share a { padding: .5rem 0; }
.share button { padding: .4rem .8rem; font-size: .85rem; }
[data-done]::after { content: " ✓"; }
.slot:empty { display: none; }

@media (min-width: 900px) {
  .pv { grid-template-columns: minmax(0, 1fr) 380px; height: 100%; }
  .pv-stage { height: 100%; }
  .pv-info { overflow-y: auto; border-left: 1px solid var(--line); max-width: none; padding-top: 2rem; }
}

/* ---------- saját fal (K23) ---------- */
.wall { position: fixed; inset: 0; z-index: 60; background: #0b0a0a; overflow: auto; padding: 0 var(--gutter) 2rem; }
.wall[hidden] { display: none; }
.wall-bar { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.wall-bar h2 { margin: 0; }
.wall-x { background: none; border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; }
.wall-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.wall-canvas-wrap { display: grid; place-items: center; background: #000; }
.wall-canvas-wrap canvas { max-width: 100%; max-height: 62vh; touch-action: none; cursor: crosshair; }
.wall-hint { color: var(--accent); min-height: 1.6em; margin: .5rem 0; }
.wall-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0 .5rem; }
.wall-controls[hidden] { display: none; }
.wall-controls button, .wall-controls input { min-height: 44px; }
.wall-controls button { background: transparent; border: 1px solid var(--muted); color: var(--text); padding: .5rem .9rem; border-radius: 2px; }
.wall-controls button.primary { background: var(--text); color: var(--bg); }
.wall-controls input { width: 6rem; background: var(--bg-raised); border: 1px solid var(--line); color: var(--text); padding: .4rem; border-radius: 3px; }
.wall-controls label { display: inline-flex; gap: .5rem; align-items: center; color: var(--muted); }
.wall-real { color: var(--muted); margin-right: auto; }
.wall-note, .wall-error { color: var(--muted); font-size: .85rem; max-width: 46rem; }
.wall-error { color: #f0a8a0; }
[data-wall-open][hidden] { display: none; }
.wall-step[hidden], .wall-work[hidden] { display: none; }
.form-title { font-size: 1.25rem; }
.form-intro { color: var(--muted); font-size: .92rem; }
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.order-box { margin: 1rem 0 0; }
.order-box > summary { cursor: pointer; list-style: none; display: inline-flex; }
.order-box > summary::-webkit-details-marker { display: none; }
.form-wrap { margin-top: 1rem; }

/* ---------- műterem ---------- */
.studio-grid .tile { --row-h: 220px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe, .video video, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { background: #000; padding: 0; display: grid; place-items: center; }
.video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video-play .play { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,14,13,.75); border: 1px solid var(--text); color: var(--text); font-size: 1.4rem; padding-left: 4px; }
.lightbox { background: #0b0a0a; border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: #0b0a0a; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: fixed; top: .75rem; right: .75rem; width: 44px; height: 44px; border-radius: 50%; background: rgba(15,14,13,.75); color: var(--text); border: 1px solid var(--line); font-size: 1.4rem; }
.pv-videos { margin: 1.25rem 0; display: grid; gap: .75rem; }
.pv-videos h2 { font-size: 1.05rem; margin: 0; color: var(--muted); }

/* ---------- űrlapok ---------- */
.form { display: grid; gap: 1rem; max-width: 36rem; }
.form label { display: grid; gap: .3rem; font-size: .9rem; color: var(--muted); }
.form input:not([type="checkbox"]):not([type="file"]), .form textarea, .form select {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .6rem .7rem;
  min-height: 44px;
  color: var(--text);
  width: 100%;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form .row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.form .check { color: var(--text); display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; }
.form .check input { margin-top: .3rem; }
.hp { position: absolute; left: -5000px; }
.errorlist { color: #f0a8a0; list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.notice { border-left: 3px solid var(--accent); padding: .75rem 1rem; background: var(--bg-raised); margin: 1rem 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
