/* Veteránbolt — B változat („Korszerű”): arculati változók és komponensek
   A színek a régi kismotorok gyári zománcszíneiből és a balatoni nyárból indulnak:
   napsárga gomb, balatonkék sáv, a kártyák háttere a motor színéhez igazodik. */

:root {
  /* Betűméretek */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  --text-3xl: clamp(1.75rem, 0.5rem + 6.4vw, 3.5rem);

  /* Térközök (4 px alap) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Alapszínek: meleg fehér, tengerészkék tinta */
  --color-bg: oklch(0.985 0.012 92);
  --color-surface: oklch(1 0 0);
  --color-surface-offset: oklch(0.955 0.022 92);
  --color-text: oklch(0.24 0.04 258);
  --color-text-muted: oklch(0.43 0.03 258);
  --color-text-faint: oklch(0.5 0.025 258);
  --color-text-inverse: oklch(0.985 0.012 92);
  --color-divider: oklch(from var(--color-text) l c h / 0.1);
  --color-border: oklch(from var(--color-text) l c h / 0.18);
  --color-field-border: oklch(0.6 0.02 258);
  --color-error: oklch(0.5 0.19 27);

  /* Napsárga: elsődleges gomb és kiemelés */
  --color-sun: oklch(0.875 0.165 92);
  --color-sun-hover: oklch(0.835 0.17 88);
  --color-sun-active: oklch(0.79 0.165 85);
  --color-sun-soft: oklch(0.95 0.075 96);

  /* Balatonkék: linkek, fókusz, „A vásárlás menete” */
  --color-lake: oklch(0.5 0.14 242);
  --color-lake-hover: oklch(0.42 0.13 245);
  --color-lake-deep: oklch(0.36 0.11 248);
  --color-lake-soft: oklch(0.935 0.04 232);
  --color-primary: var(--color-lake);

  /* Kiegészítő tónusok */
  --color-mint-soft: oklch(0.94 0.05 165);
  --color-coral-soft: oklch(0.935 0.045 35);
  --color-tomato: oklch(0.56 0.19 30);

  /* Állapotok */
  --status-sale-bg: oklch(0.9 0.1 155);
  --status-sale-text: oklch(0.3 0.08 155);
  --status-reserved-bg: oklch(0.9 0.11 78);
  --status-reserved-text: oklch(0.34 0.08 60);
  --status-sold-bg: oklch(0.9 0.008 258);
  --status-sold-text: oklch(0.38 0.02 258);

  /* Lekerekítések: kis elemeken kisebb, nagy felületeken nagyobb */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-2xl: 2.25rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.24 0.04 258 / 0.06), 0 2px 8px oklch(0.24 0.04 258 / 0.05);
  --shadow-md: 0 2px 4px oklch(0.24 0.04 258 / 0.05), 0 12px 28px oklch(0.24 0.04 258 / 0.1);
  --shadow-lg: 0 20px 56px oklch(0.24 0.04 258 / 0.22);

  --content-wide: 1280px;

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', 'Arial', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', 'Arial', sans-serif;

  --gutter: clamp(var(--space-4), 4vw, var(--space-12));
}

/* ---------- Alapok ---------- */

.wrap {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section--snug { padding-block: clamp(var(--space-8), 4vw, var(--space-12)); }
.section--offset { background: var(--color-surface-offset); }

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lead { color: var(--color-text-muted); font-size: var(--text-lg); line-height: 1.5; max-width: 46ch; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--color-text); color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }

a { color: inherit; }
.nb { white-space: nowrap; }

.text-link {
  color: var(--color-lake);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  text-decoration-color: oklch(from var(--color-lake) l c h / 0.35);
  display: inline-flex; align-items: center; min-height: 44px;
}
.text-link:hover { color: var(--color-lake-hover); text-decoration-color: currentColor; }

/* ---------- Prototípus-sáv és stílusváltó ---------- */

.demo-note {
  background: var(--color-text);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  padding-block: var(--space-2);
}
.demo-note .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); }
.demo-note p { max-width: none; }
.demo-note strong { font-weight: 600; }

.style-switch { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px; border-radius: var(--radius-full); background: oklch(from var(--color-text-inverse) l c h / 0.14); }
.style-switch a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.style-switch a:hover { background: oklch(from var(--color-text-inverse) l c h / 0.16); }
.style-switch a[aria-current='true'] { background: var(--color-sun); color: var(--color-text); }
.style-switch a:focus-visible { outline: 2px solid var(--color-sun); outline-offset: 2px; border-radius: var(--radius-full); }

/* ---------- Fejléc ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
  min-height: 4.5rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
  padding-block: var(--space-3);
}
.wordmark span { color: var(--color-lake); }

.nav__list { display: flex; align-items: center; gap: var(--space-1); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}
.nav__link:hover { background: var(--color-surface-offset); }
.nav__link--cta { background: var(--color-text); color: var(--color-text-inverse); font-weight: 600; margin-left: var(--space-2); }
.nav__link--cta:hover { background: var(--color-lake-deep); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
}
.nav-toggle:hover { background: var(--color-sun-soft); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    box-shadow: var(--shadow-md);
  }
  .nav[data-open='true'] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: var(--space-1); padding: var(--space-3) var(--gutter) var(--space-5); }
  .nav__link { display: flex; min-height: 48px; font-size: var(--text-base); }
  .nav__link--cta { margin: var(--space-2) 0 0; justify-content: center; }
}

/* ---------- Gombok ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 52px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background var(--transition-interactive), border-color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--color-sun); color: var(--color-text); box-shadow: 0 2px 0 oklch(0.62 0.14 80); }
.btn--primary:hover { background: var(--color-sun-hover); transform: translateY(-1px); box-shadow: 0 3px 0 oklch(0.62 0.14 80); }
.btn--primary:active { background: var(--color-sun-active); transform: translateY(2px); box-shadow: 0 0 0 oklch(0.62 0.14 80); }
.btn--dark { background: var(--color-text); color: var(--color-text-inverse); }
.btn--dark:hover { background: var(--color-lake-deep); }
.btn--ghost { border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-text); }
.btn--ghost:active { background: var(--color-surface-offset); }
.btn--block { width: 100%; }

/* ---------- Címkék ---------- */

.status {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--status-sale-bg);
  color: var(--status-sale-text);
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: var(--radius-full); background: currentColor; }
.status--reserved { background: var(--status-reserved-bg); color: var(--status-reserved-text); }
.status--sold { background: var(--status-sold-bg); color: var(--status-sold-text); }

.demo-tag {
  display: inline-flex; align-items: center;
  min-height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  background: oklch(from var(--color-surface) l c h / 0.88);
  white-space: nowrap;
}

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center;
  min-height: 34px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}
.chip--sale { background: var(--status-sale-bg); color: var(--status-sale-text); border-color: transparent; font-weight: 600; }
.chip--reserved { background: var(--status-reserved-bg); color: var(--status-reserved-text); border-color: transparent; font-weight: 600; }
.chip--sun { background: var(--color-sun-soft); border-color: transparent; }

.arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius-full);
  background: var(--color-text);
  color: var(--color-text-inverse);
  transition: background var(--transition-interactive), color var(--transition-interactive), transform var(--transition-interactive);
}
.arrow svg { width: 20px; height: 20px; }
.moto__more { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }

/* ---------- Nyitó szakasz ---------- */

.hero { padding-block: clamp(var(--space-8), 4vw, var(--space-16)) clamp(var(--space-10), 5vw, var(--space-20)); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  gap: var(--space-10) clamp(var(--space-8), 4vw, var(--space-16));
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-3xl);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-block: var(--space-6);
}
.hero__title mark {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--color-sun) 58%, var(--color-sun) 92%, transparent 92%);
  padding-inline: 0.06em;
  margin-inline: -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero__lead { color: var(--color-text-muted); font-size: var(--text-lg); line-height: 1.5; max-width: 42ch; margin-bottom: var(--space-8); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }

/* A matrica és a kiemelt motor kártyája a fotóhoz igazodik: a fotó magassága a szélességéből számolható (cqw). */
.hero__media { position: relative; container-type: inline-size; --hero-ratio: 5 / 6; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--radius-2xl);
  background: var(--color-lake-soft);
}
.hero__sticker {
  position: absolute; top: calc(var(--space-6) * -1); right: var(--space-6); z-index: 2;
  width: 7rem; height: 7rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  border-radius: var(--radius-full);
  background: var(--color-tomato);
  color: oklch(1 0 0);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
  transform: rotate(9deg);
  box-shadow: var(--shadow-md);
}
.hero__sticker span { font-size: var(--text-xs); font-weight: 700; line-height: 1.05; }
.hero__sticker strong { font-family: var(--font-display); font-weight: 800; font-size: 1.875rem; line-height: 0.9; letter-spacing: -0.03em; }
.hero__pick {
  position: absolute; left: var(--space-4); top: calc(100cqw * var(--hero-ratio) - var(--space-4)); translate: 0 -100%; z-index: 2;
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.hero__pick:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero__pick:hover .arrow { background: var(--color-sun); color: var(--color-text); }
.hero__pick-name { display: block; font-weight: 600; line-height: 1.25; }
.hero__pick-meta { display: block; font-size: var(--text-sm); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.caption { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-3); max-width: none; }

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { --hero-ratio: 3 / 4; }
  .hero__figure img { aspect-ratio: 4 / 3; border-radius: var(--radius-xl); }
  .hero__sticker { width: 6.5rem; height: 6.5rem; right: var(--space-4); top: calc(var(--space-5) * -1); }
  .hero__sticker strong { font-size: 1.625rem; }
}
@media (max-width: 620px) {
  /* Kis képernyőn a kiemelt motor kártyája a fotó alá kerül, hogy ne takarja a motort. */
  .hero__pick { position: static; translate: none; justify-content: space-between; margin-top: var(--space-4); box-shadow: var(--shadow-sm); border: 1px solid var(--color-divider); }
  .hero__title { margin-block: var(--space-4); }
  .hero__lead { margin-bottom: var(--space-6); }
}

/* ---------- Kínálat ---------- */

.section__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: var(--space-4) var(--space-8);
  margin-bottom: clamp(var(--space-6), 3vw, var(--space-10));
}
.section__meta { font-size: var(--text-base); color: var(--color-text-muted); }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
@media (max-width: 1000px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .offer-grid { grid-template-columns: 1fr; gap: var(--space-5); } }

/* A kártya háttérszíne a motor színéhez igazodik (moto--green, --sky stb.). */
.moto {
  --tint: var(--color-surface-offset);
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  padding: var(--space-2);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.moto--green { --tint: oklch(0.93 0.055 160); }
.moto--sky { --tint: oklch(0.93 0.045 235); }
.moto--red { --tint: oklch(0.93 0.045 28); }
.moto--orange { --tint: oklch(0.94 0.06 68); }
.moto--yellow { --tint: oklch(0.95 0.08 98); }
.moto--plum { --tint: oklch(0.93 0.012 258); }

.moto--link:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.moto--link:hover .arrow { background: var(--color-sun); color: var(--color-text); transform: rotate(-45deg); }

.moto__media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - var(--space-2));
  background: var(--tint);
}
.moto__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.moto--link:hover .moto__media img { transform: scale(1.04); }
.moto--sold .moto__media img { filter: grayscale(1); opacity: 0.55; }
.moto__tags { position: absolute; top: var(--space-3); left: var(--space-3); right: var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.moto__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-5) var(--space-4) var(--space-3); }
.moto__name { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.1; }
.moto__name a { text-decoration: none; }
.moto__name a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-xl); }
.moto__facts { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
.moto__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: calc(44px + var(--space-5));
  margin-top: auto;
  padding-top: var(--space-5);
}
.price { font-weight: 600; font-size: var(--text-lg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.moto__none { font-size: var(--text-sm); color: var(--color-text-faint); }
.moto--sold .moto__name { color: var(--color-text-muted); }

/* ---------- Miért Veteránbolt? ---------- */

.why__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-4) var(--space-16); align-items: end; margin-bottom: clamp(var(--space-6), 3vw, var(--space-10)); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
}
.why__item {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 15rem;
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  border-radius: var(--radius-xl);
  background: var(--color-surface-offset);
}
.why__item:nth-child(1) { grid-column: span 7; background: var(--color-sun); }
.why__item:nth-child(2) { grid-column: span 5; background: var(--color-lake-deep); color: var(--color-text-inverse); }
.why__item:nth-child(3) { grid-column: span 5; background: var(--color-mint-soft); }
.why__item:nth-child(4) { grid-column: span 7; background: var(--color-coral-soft); }
.why__item h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: var(--space-3); max-width: 16ch; }
.why__item p { max-width: 46ch; }
.why__item:nth-child(2) p { color: oklch(from var(--color-text-inverse) l c h / 0.88); }
@media (max-width: 900px) {
  .why__head { grid-template-columns: 1fr; }
  .why__item:nth-child(n) { grid-column: span 12; min-height: 0; }
}

/* ---------- Bemutatkozás ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-10) clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}
.about__media { position: relative; padding-bottom: var(--space-12); padding-right: var(--space-10); }
.about__media img { background: var(--color-surface-offset); }
.about__main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); }
.about__inset {
  position: absolute; right: 0; bottom: 0;
  width: 44%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 6px solid var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transform: rotate(3deg);
}
.about__text > * + * { margin-top: var(--space-4); }
.about__text .section__title { margin-bottom: var(--space-2); }
.about__text p { color: var(--color-text-muted); }
.about__text p.about__motto {
  margin-top: var(--space-8);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.about__motto span {
  background: linear-gradient(transparent 58%, var(--color-sun) 58%, var(--color-sun) 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { padding-right: var(--space-6); padding-bottom: var(--space-10); }
}

/* ---------- A vásárlás menete (kék tábla) ---------- */

.band {
  background: var(--color-lake-deep);
  color: var(--color-text-inverse);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
}
.band .section__meta { color: oklch(from var(--color-text-inverse) l c h / 0.82); }
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: oklch(from var(--color-text-inverse) l c h / 0.1);
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  color: var(--color-sun);
}
.steps h3 { font-size: var(--text-base); font-weight: 600; line-height: 1.25; margin-bottom: var(--space-2); }
.steps p { font-size: var(--text-sm); color: oklch(from var(--color-text-inverse) l c h / 0.86); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); } .steps li { grid-column: span 2; } .steps li:nth-child(n + 4) { grid-column: span 3; } }
@media (max-width: 700px) {
  .band { border-radius: var(--radius-xl); margin-inline: calc(var(--gutter) * -0.5); padding: var(--space-8) var(--space-4); }
  .band .section__head { padding-inline: var(--space-2); }
  .steps { grid-template-columns: 1fr; gap: var(--space-3); }
  .steps li:nth-child(n) { grid-column: auto; display: grid; grid-template-columns: var(--space-12) 1fr; column-gap: var(--space-2); }
  .steps li::before { grid-row: span 2; margin-bottom: 0; }
}

/* ---------- Utógondozás ---------- */

.care {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-10) clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}
.care__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); background: var(--color-surface-offset); }
.care__list { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.care__list li {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr); gap: var(--space-1) var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  max-width: none;
}
.care__list strong { font-weight: 600; }
.care__list span { color: var(--color-text-muted); }
.care__note { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 900px) { .care { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .care__list li { grid-template-columns: 1fr; } }

/* ---------- Kapcsolat (sárga tábla) ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-8) clamp(var(--space-8), 5vw, var(--space-20));
  align-items: start;
  background: var(--color-sun);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-6), 5vw, var(--space-16));
}
.contact__lead { margin-top: var(--space-4); color: var(--color-text); }
.contact__facts { margin-top: var(--space-8); display: grid; gap: var(--space-3); }
.contact__facts li { position: relative; padding-left: var(--space-8); font-weight: 500; max-width: none; }
.contact__facts li::before {
  content: '';
  position: absolute; left: var(--space-1); top: 0.45em;
  width: 14px; height: 7px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .contact { border-radius: var(--radius-xl); margin-inline: calc(var(--gutter) * -0.5); } }

.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-5), 3vw, var(--space-10));
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.field .hint { font-weight: 400; color: var(--color-text-faint); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid var(--color-field-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--color-text); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 3px solid oklch(from var(--color-lake) l c h / 0.35); outline-offset: 0; border-color: var(--color-lake);
}
.field input[readonly] { background: var(--color-surface-offset); color: var(--color-text-muted); border-color: transparent; }
.field [aria-invalid='true'] { border-color: var(--color-error); }
.field__error { display: none; margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-error); }
.field [aria-invalid='true'] ~ .field__error { display: block; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
.form__foot p { font-size: var(--text-sm); color: var(--color-text-faint); }

.form-success { display: none; }
.form-success[data-visible='true'] { display: block; animation: rise 400ms cubic-bezier(0.16, 1, 0.3, 1); }
.form-success svg { width: 40px; height: 40px; color: var(--status-sale-text); margin-bottom: var(--space-4); }
.form-success h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; margin-bottom: var(--space-2); }
.form-success p { color: var(--color-text-muted); margin-bottom: var(--space-6); }
.form-success p.form-success__demo { font-size: var(--text-sm); margin-top: calc(var(--space-4) * -1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Lábléc ---------- */

.footer { background: var(--color-text); color: oklch(from var(--color-text-inverse) l c h / 0.82); padding-block: var(--space-12); font-size: var(--text-sm); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-10); }
.footer__brand { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.03em; color: var(--color-text-inverse); line-height: 1; }
.footer__brand + p { margin-top: var(--space-2); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.footer__links a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-full); }
.footer__links a:hover { color: var(--color-text); background: var(--color-sun); }
.footer :focus-visible { outline-color: var(--color-sun); }

/* ---------- Adatlap ---------- */

.crumbs { font-size: var(--text-sm); color: var(--color-text-muted); padding-top: var(--space-6); }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--color-lake); }
.crumbs a:hover { color: var(--color-lake-hover); text-decoration: underline; }
.crumbs span[aria-hidden] { margin-inline: var(--space-2); color: var(--color-text-faint); }

.detail-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: var(--space-5) var(--space-12);
  padding-block: var(--space-3) clamp(var(--space-6), 3vw, var(--space-10));
}
.detail-head__status { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.detail-head__status .demo-tag, .buybox .demo-tag { background: var(--color-surface-offset); }
.detail-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-3xl);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.detail-head .chips { margin-top: var(--space-5); }
.detail-head__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-sun);
  transform: rotate(-2deg);
}

/* Galéria */
.gallery { position: relative; }
.gallery__stage { position: relative; }
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius-2xl);
  background: oklch(0.93 0.055 160);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 3px solid var(--color-lake); outline-offset: 3px; border-radius: var(--radius-2xl); }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; }
.gallery__slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; max-height: 76vh; }
.gallery__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); margin-top: var(--space-4); }
.gallery__caption { font-size: var(--text-base); font-weight: 500; max-width: none; }
.gallery__count {
  font-size: var(--text-sm); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
}
.gallery__nav { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; pointer-events: none; }
.gallery__nav--prev { left: var(--space-4); }
.gallery__nav--next { right: var(--space-4); }
.gallery__btn {
  pointer-events: auto;
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}
.gallery__btn:hover { background: var(--color-sun); }
.gallery__btn:active { transform: scale(0.94); }
.gallery__btn[disabled] { opacity: 0; pointer-events: none; }
.gallery__btn svg { width: 22px; height: 22px; }

.thumbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-4); }
.thumb { border-radius: var(--radius-md); overflow: hidden; opacity: 0.65; background: var(--color-surface-offset); transition: opacity var(--transition-interactive), transform var(--transition-interactive); }
.thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb:focus-visible { border-radius: var(--radius-md); }
.thumb[aria-current='true'] { opacity: 1; box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 6px var(--color-text); }
@media (max-width: 620px) {
  .gallery__track, .gallery__track:focus-visible { border-radius: var(--radius-xl); }
  .thumbs { grid-template-columns: repeat(7, 24%); gap: var(--space-2); overflow-x: auto; padding: var(--space-2); margin-inline: calc(var(--space-2) * -1); scrollbar-width: none; }
  .gallery__nav--prev { left: var(--space-2); }
  .gallery__nav--next { right: var(--space-2); }
  .gallery__btn { width: 44px; height: 44px; }
  .gallery__bar { align-items: start; }
}

/* Adatlap törzse */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-12) clamp(var(--space-8), 5vw, var(--space-20));
  align-items: start;
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.detail__main > section + section { margin-top: clamp(var(--space-10), 5vw, var(--space-16)); }
.detail__main h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: var(--space-5); }
.detail__main h3 { font-size: var(--text-base); font-weight: 600; margin: var(--space-6) 0 var(--space-3); }
.detail__main p + p { margin-top: var(--space-4); }
.detail__main p { max-width: 66ch; }

.summary { font-size: var(--text-lg); line-height: 1.5; max-width: 48ch; }

/* Tény / elvégzett munka / vélemény megkülönböztetése */
.kind, .detail__main h2.kind {
  display: inline-flex; align-items: center;
  min-height: 28px;
  padding: 0 var(--space-3);
  margin-bottom: var(--space-3);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  background: var(--color-lake-soft);
  color: var(--color-lake-deep);
}
.kind + h2 { display: block; }
.kind--work { background: var(--color-mint-soft); color: var(--status-sale-text); }
.detail__main h2.kind--opinion { background: var(--color-text); color: var(--color-text-inverse); }

.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.specs > div { padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.specs > div.specs__wide { grid-column: 1 / -1; }
.specs dt { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-1); }
.specs dd { font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.specs small { display: block; font-size: var(--text-sm); font-weight: 400; color: var(--color-text-muted); margin-top: var(--space-1); }
@media (max-width: 720px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  /* Kis képernyőn egyetlen kártya, soronként egy adattal. */
  .specs { display: block; padding: var(--space-1) var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
  .specs > div, .specs > div.specs__wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3); padding: var(--space-3) 0; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--color-divider); }
  .specs > div:last-child { border-bottom: 0; }
  .specs dt { margin-bottom: 0; }
}

.list { display: grid; gap: var(--space-2); }
.list li {
  position: relative;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-12);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  max-width: none;
}
.list li::before {
  content: '';
  position: absolute; left: var(--space-5); top: 1.2em;
  width: 13px; height: 7px;
  border-left: 2.5px solid var(--status-sale-text);
  border-bottom: 2.5px solid var(--status-sale-text);
  transform: rotate(-45deg);
}
.list--plain li::before {
  width: 8px; height: 8px; top: 1.35em; left: calc(var(--space-5) + 2px);
  border: none; border-radius: var(--radius-full);
  background: var(--color-lake); transform: none;
}
.list small { display: block; font-size: var(--text-sm); color: var(--color-text-muted); }

.flaws { background: var(--color-coral-soft); border-radius: var(--radius-xl); padding: clamp(var(--space-5), 3vw, var(--space-8)); }
.flaws .kind { background: var(--color-surface); color: var(--color-text); }
.flaws .list li { box-shadow: none; }
.flaws .list--plain li::before { background: var(--color-tomato); }

.opinion { background: var(--color-sun); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-10)); }
.opinion p { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1.15; letter-spacing: -0.02em; max-width: 26ch; }

.detail__cta { padding: clamp(var(--space-6), 4vw, var(--space-10)); border-radius: var(--radius-xl); background: var(--color-lake-deep); color: var(--color-text-inverse); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-8); }
.detail__cta p { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.1; max-width: 16ch; }
.detail__cta .btn { max-width: 100%; white-space: normal; text-align: center; }
.detail__cta :focus-visible { outline-color: var(--color-sun); }

/* Oldalsáv */
.detail__aside { position: sticky; top: var(--space-24); }
.buybox {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.buybox .detail-head__status { margin-bottom: 0; }
.buybox__name { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-4); }
.buybox__price { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-bottom: var(--space-5); }
.buybox__facts { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.buybox__facts > div { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-bg); font-size: var(--text-sm); }
.buybox__facts dt { color: var(--color-text-muted); }
.buybox__facts dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.buybox__note { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-4); text-align: center; }

@media (max-width: 980px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  /* Keskeny képernyőn a fejléc mutatja az állapotot és az árat, a gomb az alsó sávban van. */
  .detail__aside { display: none; }
}

/* Mobil: rögzített műveleti sáv */
.actionbar { display: none; }
@media (max-width: 980px) {
  .actionbar {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: oklch(from var(--color-bg) l c h / 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--color-divider);
  }
  .has-actionbar .footer { padding-bottom: calc(var(--space-24) + env(safe-area-inset-bottom)); }
  html:has(.has-actionbar) { scroll-padding-bottom: var(--space-24); }
}

/* Üzenetküldő ablak */
.dialog {
  margin: auto;
  width: min(560px, calc(100vw - 2 * var(--space-4)));
  max-height: calc(100dvh - 2 * var(--space-4));
  overflow-y: auto;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  padding: clamp(var(--space-5), 4vw, var(--space-10));
}
.dialog::backdrop { background: oklch(0.24 0.04 258 / 0.6); }
.dialog[open] { animation: rise 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.dialog__head { display: flex; align-items: start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.dialog__head h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.1; }
.dialog__close { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-full); background: var(--color-surface-offset); margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) 0 0; }
.dialog__close:hover { background: var(--color-sun); }
.dialog__close svg { width: 20px; height: 20px; }

/* Hiányzó kép */
.img-missing { display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-4); font-size: var(--text-sm); color: var(--color-text-faint); background: var(--color-surface-offset); border-radius: var(--radius-lg); }

