/* ==========================================================
   FAZON Borbélyműhely – stíluslap
   1. Fontok és tokenek   2. Alapok   3. Tipográfia
   4. Elrendezés   5. Fejléc   6. Gombok, linkek   7. Képhelyek
   8. Oldalfejléc, szakaszok   9. Főoldal   10. Árlisták
   11. Műhely   12. Csapat   13. Munkák   14. Lábléc
   15. Foglalás
   Töréspontok: mobil 0–767, tablet 768–1099, asztali 1100-tól,
   kis mobil 359 px-ig.
   ========================================================== */

/* ---------- 1. Fontok és tokenek ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-page: #F7F5F0;
  --color-surface: #FFFFFF;
  --color-surface-muted: #EEEBE3;
  --color-image-placeholder: #E7E4DC;

  --color-ink: #202824;
  --color-text-secondary: #606861;
  --color-text-muted: #606861;
  --color-line: #D8DDD5;
  --color-control-border: #7A867E;

  --color-green: #183D31;
  --color-green-hover: #102B22;
  --color-green-active: #0C231B;
  --color-selected: #EAF0EB;
  --color-focus: #315E4C;

  --color-accent: #B59A5A;
  --color-accent-soft: #EEE5D1;

  --color-dark-text: #F7F5F0;
  --color-dark-secondary: #CDD8D0;
  --color-dark-line: #456054;

  --color-error: #A33228;
  --color-error-surface: #FAEEEE;
  --color-disabled-bg: #E5E6E0;
  --color-disabled-text: #687169;

  --container-max: 1200px;
  --gutter: 64px;
  --header-height: 80px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --radius-small: 4px;
  --radius-control: 6px;
  --radius-panel: 8px;

  --font-body: 'Manrope', Arial, sans-serif;
  --font-brand: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;

  /* Töréspontonként változó ritmus */
  --section-y: 88px;     /* alap szakasz */
  --head-gap: 32px;      /* szakaszcím és tartalom */
  --col-gap: 64px;       /* két oszlop */
  --grid-x: 24px;        /* képrács, vízszintes */
  --grid-y: 32px;        /* képrács, sorok */
  --ease: 160ms ease-out;
}

@media (max-width: 1199px) {
  :root { --gutter: 32px; }
}
@media (max-width: 1099px) {
  :root {
    --header-height: 72px;
    --section-y: 64px;
    --head-gap: 28px;
    --col-gap: 40px;
    --grid-x: 20px;
    --grid-y: 28px;
  }
}
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --header-height: 68px;
    --section-y: 48px;
    --head-gap: 24px;
    --col-gap: 28px;
    --grid-x: 16px;
    --grid-y: 24px;
  }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
}

/* ---------- 2. Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  word-break: normal;
  overflow-wrap: normal;
}
img { display: block; max-width: 100%; }
a { color: var(--color-green); }
p { margin: 0; max-width: 62ch; }
p + p { margin-top: 16px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.container {
  width: min(var(--container-max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.container > *, .grid > *, .split > * { min-width: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--radius-control);
  background: var(--color-green); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 3. Tipográfia ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  color: var(--color-ink);
  hyphens: manual;
  text-wrap: balance;
}
.h1-home { font-size: clamp(40px, 4.5vw, 64px); line-height: 1.08; letter-spacing: -0.03em; }
.h1-page { font-size: 48px; line-height: 1.12; letter-spacing: -0.03em; }
h2, .h2 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; }
h3, .h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 1.55; color: var(--color-text-secondary); }
.small { font-size: 14px; line-height: 1.5; }
.secondary { color: var(--color-text-secondary); }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-size: 12px; line-height: 1.4; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-green);
}
.eyebrow::before {
  content: ""; width: 20px; height: 2px; background: var(--color-accent); flex: 0 0 auto;
}
.head-text { margin-top: 16px; }
.tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

@media (max-width: 1099px) {
  .h1-page { font-size: 42px; }
  h2, .h2 { font-size: 30px; }
}
@media (max-width: 767px) {
  body { line-height: 1.6; }
  .h1-home { font-size: 36px; line-height: 1.12; }
  .h1-page { font-size: 34px; line-height: 1.15; }
  h2, .h2 { font-size: 28px; line-height: 1.2; }
  h3, .h3 { font-size: 20px; }
  .lead { font-size: 17px; line-height: 1.55; }
}
@media (max-width: 359px) {
  .h1-home { font-size: 34px; }
  .h1-page { font-size: 32px; }
}

/* ---------- 4. Elrendezés ---------- */
.section { padding-block: var(--section-y); }
/* Szakasz: térköz választja el, nem vonal. Egymást követő szakaszoknál nem adódik össze. */
.band { padding-block: var(--section-y); }
section + section > .band, .band--first { padding-top: 0; }

.section-head { margin-bottom: var(--head-gap); }
.section-head p { margin-top: 16px; }

.split { display: grid; gap: var(--col-gap); }
.split--320 { grid-template-columns: 320px minmax(0, 1fr); }
.split--media { grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 1099px) {
  .split--320, .split--media { grid-template-columns: minmax(0, 1fr); }
  .split--320 { gap: 32px; }
  .split--media { gap: 32px; }
}
@media (max-width: 767px) {
  .split--320, .split--media { gap: 24px; }
}

/* ---------- 4b. Demósáv (a fejléc fölött, normál folyamban – nem sticky) ---------- */
.demo-bar {
  box-sizing: border-box;
  min-height: 40px;
  padding-block: 10px;
  background: #EFEDE6;
  border-bottom: 1px solid #D8DDD5;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
}
.demo-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.demo-bar-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #193E32; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.demo-bar-link:hover { color: #102C23; text-decoration: underline; }
.demo-bar-link:focus-visible { outline: 2px solid #193E32; outline-offset: 3px; }
.demo-bar-label { color: #5D665F; font-weight: 400; white-space: nowrap; }
@media (max-width: 767px) {
  .demo-bar { min-height: 38px; font-size: 12px; line-height: 18px; }
  .demo-bar-inner { gap: 12px; }
}

/* ---------- 5. Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-page);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex; align-items: center;
  height: var(--header-height);
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  text-decoration: none; color: var(--color-green);
  flex: 0 0 auto;
}
.brand-mark {
  font-family: var(--font-brand); font-weight: 700;
  font-size: 34px; line-height: 1; letter-spacing: 0.02em;
}
.brand-desc {
  font-size: 12px; line-height: 1.3; font-weight: 400; color: var(--color-text-secondary);
}

.main-nav { margin-left: auto; margin-right: 32px; }
.main-nav ul { display: flex; gap: 28px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; line-height: 1.4; font-weight: 600;
  color: var(--color-ink); text-decoration: none;
  transition: color var(--ease);
}
.nav-link:hover { color: var(--color-green); }
.nav-link[aria-current="page"] { color: var(--color-green); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--color-green);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .header-book--compact, .menu-toggle { display: none; }

.menu-toggle {
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--color-control-border); border-radius: var(--radius-control);
  background: transparent; color: var(--color-green); cursor: pointer;
  align-items: center; justify-content: center;
  transition: background-color var(--ease);
}
.menu-toggle:hover { background: var(--color-selected); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-page);
  border-bottom: 1px solid var(--color-line);
  padding: 4px 0 16px;
}
.mobile-menu li { border-bottom: 1px solid var(--color-line); }
.mobile-menu .nav-link { display: flex; min-height: 52px; width: 100%; }
.mobile-menu .nav-link[aria-current="page"]::after { right: auto; width: 2.5em; bottom: 12px; }
.mobile-menu .nav-link[aria-current="page"] { font-weight: 700; }

@media (max-width: 1099px) {
  .main-nav, .header-actions .header-book--full { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .header-book--compact { display: inline-flex; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1100px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 767px) {
  .brand-mark { font-size: 30px; }
}
@media (max-width: 399px) {
  .brand-desc { display: none; }
}

/* ---------- 6. Gombok, linkek ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: var(--radius-control);
  font-size: 14px; line-height: 1.3; font-weight: 600;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.btn-primary { background: var(--color-green); border-color: var(--color-green); color: #fff; }
.btn-primary:hover { background: var(--color-green-hover); border-color: var(--color-green-hover); }
.btn-primary:active { background: var(--color-green-active); border-color: var(--color-green-active); }
.btn-secondary { background: transparent; border-color: var(--color-control-border); color: var(--color-green); }
.btn-secondary:hover { background: var(--color-selected); }
.btn-sm { min-height: 44px; padding: 10px 18px; }
@media (max-width: 767px) { .btn { font-size: 15px; } }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--color-disabled-bg); border-color: var(--color-disabled-bg);
  color: var(--color-disabled-text); cursor: not-allowed;
}

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; line-height: 1.4; font-weight: 600;
  color: var(--color-green);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.link:hover { text-decoration-thickness: 2px; }
.link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; }

/* ---------- 7. Képhelyek ---------- */
.media {
  position: relative; overflow: hidden; margin: 0;
  aspect-ratio: var(--ar, 4 / 5);
  background-color: var(--color-image-placeholder);
  background-image: none;
  border-radius: var(--radius-small);
}
.media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}
/* Alapértelmezett kivágás: portréknál és munkafotóknál kicsit feljebb, hogy a fej ne vesszen el */
.media[data-media^="barber-"] img { object-position: 50% 35%; }
.media[data-media^="work-"] img { object-position: 50% 40%; }
.ar-6-5 { --ar: 6 / 5; }
.ar-4-3 { --ar: 4 / 3; }
.ar-3-2 { --ar: 3 / 2; }
.ar-4-5 { --ar: 4 / 5; }

/* ---------- 8. Oldalfejléc ---------- */
.page-head { padding: 64px 0 40px; }
.page-head .demo-note { margin-top: 12px; }
.page-head .lead { margin-top: 16px; max-width: 620px; }
@media (max-width: 767px) { .page-head { padding: 40px 0 28px; } }

.page-end { padding-bottom: var(--section-y); }
.page-end .btn { margin-top: 16px; }

/* ---------- 9. Főoldal ---------- */
.hero { padding: 72px 0 var(--section-y); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-text { max-width: 510px; }
.hero-text .lead { margin-top: 20px; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 24px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
@media (max-width: 1099px) {
  .hero { padding: 56px 0 var(--section-y); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-text { max-width: 620px; }
  .hero .media { --ar: 4 / 3; }
}
@media (max-width: 767px) {
  .hero { padding: 32px 0 var(--section-y); }
}
@media (max-width: 419px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* Munkák előnézet és képrács feliratok */
.works-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head more" "grid grid";
  column-gap: 32px;
}
.works-head .section-head { grid-area: head; }
.works-head .works-grid { grid-area: grid; }
.works-head .works-more { grid-area: more; align-self: end; margin-bottom: var(--head-gap); }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--grid-x); row-gap: var(--grid-y); }
.work { margin: 0; }
.work-caption { margin-top: 12px; }
.work-title { display: block; font-size: 16px; line-height: 1.4; font-weight: 600; }
.work-by { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
.work-open {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; border-radius: var(--radius-small);
}
@media (max-width: 1023px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .works-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "grid" "more"; }
  .works-head .works-more { margin: 24px 0 0; justify-self: start; }
}
@media (max-width: 599px) {
  .works-grid--preview { grid-template-columns: minmax(0, 1fr); }
}

/* Csapat (főoldal) */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.team-name { margin-top: 16px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.team-spec { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--color-text-secondary); }
.team-member .link { margin-top: 12px; }
@media (max-width: 1023px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }

/* GYIK: valódi gombok aria-expanded / aria-controls kapcsolattal */
.faq { border-top: 1px solid var(--color-line); }
.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-q { margin: 0; font-size: inherit; letter-spacing: 0; }
.faq-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 56px; padding: 16px 0;
  border: 0; background: none; color: var(--color-ink); cursor: pointer; text-align: left;
  font-size: 16px; line-height: 1.45; font-weight: 600;
}
.faq-btn:hover { color: var(--color-green); }
.faq-btn:focus-visible { outline-offset: 2px; }
.faq-icon { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 2px; margin-top: -1px; background: var(--color-green);
}
.faq-icon::after { transform: rotate(90deg); transition: transform var(--ease); }
.faq-btn[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding-bottom: 24px; }
.faq-a p { max-width: 65ch; color: var(--color-text-secondary); }

/* Záró foglalási blokk */
.cta-block { background: var(--color-surface-muted); padding-block: 48px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner h2 { font-size: 32px; }
.cta-inner .btn { flex: 0 0 auto; }
@media (max-width: 767px) {
  .cta-block { padding-block: 32px; }
  .cta-inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .cta-inner h2 { font-size: 26px; }
  .cta-inner .btn { width: 100%; }
}

/* ---------- 10. Árlisták ---------- */
.price-list { border-top: 1px solid var(--color-line); }
.price-list--open-end > .price-row:last-child { border-bottom: 0; padding-bottom: 0; }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "desc meta";
  column-gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-line);
}
.price-name { grid-area: name; font-size: 17px; line-height: 1.4; font-weight: 600; overflow-wrap: break-word; }
.price-amount { grid-area: price; font-size: 18px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.price-desc { grid-area: desc; margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--color-text-secondary); }
.price-meta {
  grid-area: meta; align-self: end; display: flex; justify-content: flex-end; align-items: center; gap: 20px;
  font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); white-space: nowrap;
}
.price-meta .link { min-height: 24px; }
/* Főoldali sorok: ár + „Foglalás →” link a jobb oldalon */
.price-end { grid-area: price; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.price-end .price-amount { grid-area: auto; }
.book-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; margin-block: -12px;
  font-size: 14px; line-height: 20px; font-weight: 500;
  color: #193E32; background: transparent; border: 0; box-shadow: none;
  text-decoration: none; white-space: nowrap;
}
.book-link:hover { color: #102C23; text-decoration: underline; text-underline-offset: 3px; }
.book-link:focus-visible { outline: 2px solid #193E32; outline-offset: 3px; }
@media (max-width: 767px) {
  .price-row { grid-template-areas: "name price" "desc desc" "meta meta"; }
  .price-desc { margin-top: 8px; }
  .price-meta { justify-content: space-between; margin-top: 12px; }
  .price-list--compact .price-meta { margin-top: 6px; justify-content: flex-start; }
  .price-end { flex-direction: column; align-items: flex-end; gap: 4px; }
}

.price-group { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
.price-group + .price-group { margin-top: 64px; }
.price-group h2 { font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; }
.price-group-intro { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--color-text-secondary); }
.price-note { max-width: none; margin-top: 64px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
@media (max-width: 1099px) {
  .price-group { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .price-group + .price-group { margin-top: 48px; }
  .price-note { margin-top: 48px; }
}
@media (max-width: 767px) {
  .price-group + .price-group { margin-top: 40px; }
  .price-note { margin-top: 40px; }
}

/* ---------- 11. Műhely ---------- */

.gallery-narrow { max-width: 1000px; margin-inline: auto; }
.workshop-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.workshop-gallery .media:first-child { grid-column: 1 / -1; }
@media (max-width: 767px) { .workshop-gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

.visit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.visit h3 { font-size: 20px; line-height: 1.35; margin-bottom: 12px; }
.hours-list { display: grid; grid-template-columns: max-content auto; gap: 6px 24px; }
.hours-list dt { color: var(--color-text-secondary); }
.visit-place { margin-top: 20px; }
@media (max-width: 767px) { .visit { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 12. Csapat ---------- */
.profiles { max-width: 1080px; }
.profile {
  display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 64px;
  align-items: center;
  padding-block: 40px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}
.profile:first-child { padding-top: 0; }
.profile + .profile { border-top: 1px solid var(--color-line); }
.profile-name { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
.profile-full { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
.profile-spec { margin-top: 20px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.profile-desc { margin-top: 12px; max-width: 56ch; }
.profile-days { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
.profile .btn { margin-top: 24px; }
.page-end--ruled { max-width: 1080px; border-top: 1px solid var(--color-line); padding-top: 40px; }
@media (max-width: 1023px) {
  .profile { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .profile .media { max-width: 360px; }
  .profile-text { max-width: 62ch; }
}
@media (max-width: 767px) {
  .profile { padding-block: 24px; }
  .profile-name { font-size: 28px; line-height: 1.2; }
  .page-end--ruled { padding-top: 24px; }
}

/* ---------- 13. Munkák ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--head-gap); }
.filter {
  min-height: 44px; padding: 10px 16px; border-radius: var(--radius-control);
  border: 1px solid var(--color-line); background: transparent; color: var(--color-ink);
  font-size: 14px; line-height: 1.4; font-weight: 600; cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.filter:hover { border-color: var(--color-control-border); }
.filter[aria-pressed="true"] { background: var(--color-green); border-color: var(--color-green); color: var(--color-dark-text); }
.works-grid--all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .works-grid--all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .works-grid--all { grid-template-columns: minmax(0, 1fr); } }

.lightbox {
  width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 64px 24px 24px; border: 0;
  background: transparent; color: #fff;
}
.lightbox::backdrop { background: rgba(12, 23, 18, 0.9); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.lightbox-img {
  width: calc(100vw - 48px); height: calc(100vh - 160px); height: calc(100dvh - 160px);
  object-fit: contain;
}
.lightbox-caption { text-align: center; font-size: 14px; line-height: 1.5; }
.lightbox-caption b { display: block; font-size: 16px; font-weight: 600; }
.lightbox-btn {
  position: absolute; width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(247, 245, 240, 0.5); border-radius: var(--radius-control);
  background: transparent; color: #fff; cursor: pointer;
  transition: background-color var(--ease);
}
.lightbox-btn:hover { background: rgba(247, 245, 240, 0.12); }
.lightbox-btn svg { width: 20px; height: 20px; }
.lightbox-btn:focus-visible { outline-color: var(--color-dark-text); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) {
  .lightbox { padding: 64px 16px 16px; }
  .lightbox-img { width: calc(100vw - 32px); height: calc(100vh - 120px); height: calc(100dvh - 120px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 12px; transform: none; }
}
body.dialog-open { overflow: hidden; }

/* ---------- 14. Lábléc ---------- */
.site-footer { background: var(--color-green); color: var(--color-dark-text); padding: 56px 0 0; }
.site-footer a { color: var(--color-dark-text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--color-dark-text); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 64px; }
.footer-brand .brand-mark { font-size: 36px; color: var(--color-dark-text); }
.footer-brand p { margin-top: 16px; color: var(--color-dark-secondary); font-size: 14px; line-height: 1.5; }
.footer-title { font-size: 14px; line-height: 1.4; font-weight: 600; margin-bottom: 16px; color: var(--color-dark-text); letter-spacing: 0; }
.footer-list { display: grid; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--color-dark-secondary); }
.footer-list a { color: var(--color-dark-text); }
.footer-place { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--color-dark-secondary); }
.footer-demo { max-width: none; margin-top: 40px; font-size: 13px; line-height: 1.5; color: var(--color-dark-secondary); }
/* Legalsó sor: copyright balra, jogi linkek jobbra (a konténer széleihez igazítva) */
.footer-legal {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin-top: 20px; padding-top: 20px; padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-family: inherit; font-size: 13px; line-height: 20px; font-weight: 400; color: #E5E9E3;
}
.footer-copy { max-width: none; margin: 0; color: #E5E9E3; }
.footer-legal-links { display: flex; align-items: center; gap: 24px; }
.site-footer .footer-legal-links a {
  color: #E5E9E3; font-weight: 400; background: transparent; border: 0; text-decoration: none; white-space: nowrap;
}
.site-footer .footer-legal-links a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-legal-links a:focus-visible { outline: 2px solid #E5E9E3; outline-offset: 4px; }
@media (max-width: 599px) {
  .footer-legal { flex-direction: column; align-items: stretch; gap: 12px; }
  .footer-legal-links { justify-content: flex-end; }
  /* legalább 44 px kattintható magasság átlátszó paddinggel; a negatív margó miatt a látható térköz 12 px marad */
  .site-footer .footer-legal-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 12px; margin-block: -12px; }
}
@media (max-width: 1099px) {
  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .site-footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ---------- 15. Foglalás ---------- */
.demo-note { font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }

/* Rács: balra lépésjelző és aktuális lépés, jobbra az összesítő a gombokkal */
.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: auto 1fr;
  grid-template-areas: "steps summary" "panel summary";
  column-gap: 40px;
  align-items: start;
  padding-bottom: var(--section-y);
}
.booking > * { min-width: 0; }
.stepper-wrap { grid-area: steps; margin-bottom: 32px; }
.booking-panel { grid-area: panel; container-type: inline-size; }
.summary { grid-area: summary; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .booking { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 32px; }
}
@media (max-width: 1023px) {
  .booking {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "steps" "summary" "panel";
  }
  .stepper-wrap { margin-bottom: 24px; }
  .summary { margin-bottom: 32px; }
}

/* Lépésjelző */
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper li { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; }
.stepper li:last-child { flex: 0 0 auto; }
.stepper li:not(:last-child)::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--color-line); min-width: 12px; }
.step-item {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0;
  border: 0; background: none; font-size: 14px; line-height: 1.4; font-weight: 600;
  color: var(--color-text-secondary); white-space: nowrap;
}
.step-num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--color-control-border); font-size: 13px; font-variant-numeric: tabular-nums;
}
.step-item.is-current { color: var(--color-green); }
.step-item.is-current .step-num { background: var(--color-green); border-color: var(--color-green); color: #fff; }
.step-item.is-done { color: var(--color-ink); cursor: pointer; }
.step-item.is-done .step-num { border-color: var(--color-green); color: var(--color-green); }
.step-item.is-done:hover .step-label { text-decoration: underline; text-underline-offset: 4px; }
.stepper-mobile { display: none; }
.stepper-mobile p { font-size: 14px; line-height: 1.4; font-weight: 600; }
.stepper-mobile .step-of { color: var(--color-text-secondary); font-weight: 400; }
.stepper-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.stepper-bars span { height: 3px; border-radius: 2px; background: var(--color-line); }
.stepper-bars span.on { background: var(--color-green); }
@media (max-width: 767px) {
  .stepper { display: none; }
  .stepper-mobile { display: block; }
}

/* Panel */
.step-title { font-size: 28px; line-height: 1.2; letter-spacing: -0.025em; }
.step-title:focus { outline: none; }
.step-intro { margin-top: 12px; color: var(--color-text-secondary); }
.step-body { margin-top: 24px; }
@media (max-width: 1099px) { .step-title { font-size: 26px; } }
@media (max-width: 767px) { .step-title { font-size: 24px; } }

.choice-group + .choice-group { margin-top: 24px; }
.choice-group > legend { margin-bottom: 10px; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--color-text-secondary); }
.choice-list { display: grid; gap: 10px; }
.choice {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 12px; align-items: start;
  padding: 18px; cursor: pointer;
  background: var(--color-surface);
  border: 1px solid var(--color-control-border); border-radius: var(--radius-control);
  transition: background-color var(--ease), border-color var(--ease);
}
.choice:hover { background: #FBFCFA; }
.choice:has(input:checked) { background: var(--color-selected); border-color: var(--color-green); }
.choice:has(input:focus-visible) { outline: 3px solid var(--color-green); outline-offset: 3px; }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-green); cursor: pointer; }
.choice input:focus-visible { outline: none; }
.choice-main { display: block; min-width: 0; }
.choice-name { display: block; font-size: 16px; line-height: 1.4; font-weight: 600; overflow-wrap: break-word; }
.choice-desc { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
.choice-side { display: block; text-align: right; white-space: nowrap; }
.choice-price { display: block; font-size: 16px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.choice-time { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
@media (max-width: 359px) {
  .choice { grid-template-columns: 18px minmax(0, 1fr); }
  .choice-side { grid-column: 2; text-align: left; margin-top: 6px; display: flex; gap: 12px; align-items: baseline; }
  .choice-time { margin-top: 0; }
}

.extras { margin-top: 24px; border-top: 1px solid var(--color-line); }
.extras > summary {
  position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 40px 14px 0;
  font-size: 16px; line-height: 1.4; font-weight: 600; cursor: pointer; list-style: none;
}
.extras > summary::-webkit-details-marker { display: none; }
.extras > summary::before, .extras > summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 18px; height: 2px; margin-top: -1px; background: var(--color-green);
}
.extras > summary::after { transform: rotate(90deg); transition: transform var(--ease); }
.extras[open] > summary::after { transform: rotate(0deg); }
.extras .opt { margin-left: 6px; font-weight: 400; color: var(--color-text-secondary); }
.extras .choice-list { padding-bottom: 8px; }

/* Nap és időpont */
.calendar { max-width: 380px; width: 100%; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-month { font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-control-border); border-radius: var(--radius-control);
  background: transparent; color: var(--color-green); cursor: pointer; transition: background-color var(--ease);
}
.cal-nav button:hover:not(:disabled) { background: var(--color-selected); }
.cal-nav button:disabled { border-color: var(--color-disabled-bg); color: var(--color-disabled-text); opacity: .6; cursor: not-allowed; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--color-text-secondary); padding-bottom: 4px; }
.cal-dow abbr { text-decoration: none; }
.cal-day {
  height: 44px; padding: 0; border: 1px solid transparent; border-radius: var(--radius-control);
  background: transparent; color: var(--color-ink); cursor: pointer;
  font-size: 14px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.cal-day:hover:not(:disabled) { background: var(--color-selected); }
.cal-day.is-today { border-color: var(--color-control-border); }
.cal-day[aria-pressed="true"] { background: var(--color-green); border-color: var(--color-green); color: #fff; }
.cal-day:disabled { color: var(--color-disabled-text); opacity: .45; font-weight: 400; cursor: default; }
.cal-blank { height: 44px; }
.cal-legend { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }

.slots-title { font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.slots-date { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-width: 640px; }
.slot {
  min-height: 44px; min-width: 72px; padding: 0 8px;
  border: 1px solid var(--color-control-border); border-radius: var(--radius-control);
  background: var(--color-surface); color: var(--color-ink); cursor: pointer;
  font-size: 14px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.slot:hover { background: var(--color-selected); }
.slot[aria-pressed="true"] { background: var(--color-green); border-color: var(--color-green); color: #fff; }
.slot:disabled {
  background: transparent; border-color: var(--color-line); border-style: dashed;
  color: var(--color-text-secondary); text-decoration: line-through; cursor: not-allowed;
}
.slot:disabled:hover { background: transparent; }
.slots-legend { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
.slots-empty { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
.slots-assigned { margin-top: 16px; font-size: 14px; line-height: 1.5; }

/* Adatok */
.form-grid { display: grid; gap: 20px; max-width: 560px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; line-height: 1.4; font-weight: 600; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  font-size: 16px; line-height: 1.5;
  background: var(--color-surface); border: 1px solid var(--color-control-border); border-radius: var(--radius-control);
  transition: border-color var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-text-muted); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--color-green); outline-offset: 3px; border-color: var(--color-green); }
.field.has-error input { border-color: var(--color-error); background: var(--color-error-surface); }
.field-error { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--color-error); }
.form-help { font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }

/* ----- Összesítő: minden sor kezdettől jelen van, a gombok a kártya alján ----- */
.summary {
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-panel);
  padding: 24px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.summary-title { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.summary-title:focus { outline: none; }
.summary-title:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.summary-data { margin-top: 20px; }
.summary-rows { display: grid; gap: 12px; }
.summary-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; line-height: 1.45; }
.summary-row dt { font-size: 14px; color: var(--color-text-secondary); }
.summary-row dd { font-size: 15px; color: var(--color-ink); font-weight: 600; overflow-wrap: anywhere; }
.summary-row dd.is-empty, .summary-total dd.is-empty { color: var(--color-text-muted); font-weight: 400; }
.summary-row dd span { display: block; }
.summary-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--color-line); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total-row dt { font-size: 15px; line-height: 1.4; font-weight: 600; }
.total-row dd { font-size: 22px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.duration-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--color-text-secondary); }
.duration-row dd { color: var(--color-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Műveletek: teljes szélességű fő gomb, alatta visszafogott Vissza */
.booking-actions { margin-top: 20px; }
.actions-inner { display: flex; flex-direction: column; align-items: stretch; }
.actions-inner .btn { width: 100%; }
.btn-submit { height: auto; white-space: normal; }
.actions-status { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--color-text-secondary); max-width: none; }
.actions-status:empty { display: none; }
.btn-back {
  align-self: center; min-height: 44px; min-width: 88px; margin-top: 6px; padding: 0 12px;
  border: 0; background: none; cursor: pointer; border-radius: var(--radius-control);
  font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--color-green);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.btn-back:hover { text-decoration-thickness: 2px; }

/* Asztalon sticky, de csak ha a teljes kártya kifér (a script méri: .is-unstuck) */
@media (min-width: 1024px) {
  .summary { position: sticky; top: calc(var(--header-height) + 24px); }
  .summary.is-unstuck { position: static; }
}
@media (max-width: 1023px) {
  .summary { padding: 16px; }
  .summary-title { font-size: 20px; }
  .summary-data { margin-top: 16px; }
  .summary-rows { gap: 8px; }
  .summary-row { grid-template-columns: 88px minmax(0, 1fr); column-gap: 12px; }
  .summary-row dt { font-size: 13px; }
}
@media (max-width: 359px) {
  .summary-row { grid-template-columns: 80px minmax(0, 1fr); column-gap: 10px; }
}

/* Mobil és tablet: a fő gomb (Tovább / véglegesítés) a képernyő aljára rögzített sávban.
   Ugyanaz a gomb, mint asztalon az összesítőben; a Vissza és a segédszöveg a lépés tartalmánál. */
.panel-back, .panel-status { display: none; }
@media (max-width: 1023px) {
  .booking-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    margin: 0;
    background: var(--color-page);
    border-top: 1px solid var(--color-line);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  }
  .booking-actions .actions-inner { max-width: 560px; margin-inline: auto; }
  .booking-actions .btn { min-height: 48px; border-radius: var(--radius-control); }
  .booking-actions .actions-status,
  .booking-actions .btn-back { display: none !important; }

  .panel-back:not([hidden]) { display: inline-flex; align-items: center; margin: 0 0 12px -12px; }
  .panel-status:not(:empty) { display: block; margin-top: 24px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }
}

/* Sikerállapot */
.success { max-width: 680px; margin-inline: auto; padding-block: 64px; }
.success-icon { width: 28px; height: 28px; color: var(--color-green); margin-bottom: 20px; }
.success h1 { margin-bottom: 16px; }
.success h1:focus { outline: none; }
.summary--final { margin-top: 28px; }
.summary--final .summary-rows { margin-top: 24px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 767px) {
  .success { padding-block: 40px; }
  .success-actions .btn { flex: 1 1 auto; }
}
.noscript-note { padding: 16px; border-radius: var(--radius-control); background: var(--color-surface-muted); font-size: 14px; }
.summary--final { position: static; display: block; max-height: none; }
