/* ==========================================================================
   Velimotor – közös stíluslap (mobile first)
   ========================================================================== */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5d6370;
  --line: #e2e5ea;
  --accent: rgb(40, 67, 144);
  --accent-hover: rgb(30, 51, 112);
  --accent-soft: rgba(40, 67, 144, 0.08);
  --success: #1d7a46;
  --success-bg: #e9f6ee;
  --error: #b42318;
  --error-bg: #fdeceb;
  --placeholder: #9a5b00;
  --placeholder-bg: #fff4dc;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.04), 0 8px 24px rgba(22, 24, 29, 0.06);
  --shadow-hover: 0 2px 4px rgba(22, 24, 29, 0.05), 0 16px 40px rgba(22, 24, 29, 0.10);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 16px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Alapok ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-main { flex: 1; }

.section { padding-block: 32px 64px; }

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.placeholder {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--placeholder-bg);
  color: var(--placeholder);
  font-weight: 600;
  font-size: 0.9em;
}

/* ---- Gombok ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(40, 67, 144, 0.25);
}
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 52px; padding: 14px 32px; font-size: 1.0625rem; }

/* ==========================================================================
   Fejléc
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-block: 12px 4px;
}

.brand img { width: 150px; height: auto; }

.site-nav { width: 100%; }
.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: block;
  padding: 10px 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active { color: var(--accent); }
.site-nav a.is-active::after { transform: scaleX(1); }

@media (min-width: 768px) {
  .site-header__inner {
    flex-direction: row;
    justify-content: space-between;
    padding-block: 14px;
  }
  .brand img { width: 180px; }
  .site-nav { width: auto; }
  .site-nav ul { gap: 8px; }
  .site-nav a { padding: 10px 14px; font-size: 1rem; }
  .site-nav a::after { left: 14px; right: 14px; }
}

/* ==========================================================================
   Modellkártyák (index)
   ========================================================================== */
.model-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

.model-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.model-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.model-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  padding: 16px;
  background: #fff;
}
.model-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.model-card:hover .model-card__media img { transform: scale(1.03); }

.model-card__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  padding: 8px 24px 28px;
}
.model-card__title { font-size: 1.75rem; }
.model-card__price { font-size: 1.125rem; font-weight: 600; }
.model-card .btn { align-self: flex-start; margin-top: auto; }

.key-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.key-specs dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.key-specs dd {
  margin: 2px 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}

/* ==========================================================================
   Termékoldal
   ========================================================================== */
.product { padding-block: 16px 64px; }

@media (min-width: 768px) {
  .product { padding-block: 32px 80px; }
}

/* ---- 360°-os nézegető ---- */
.viewer {
  max-width: 1100px;
  margin-inline: auto;
}

.viewer__stage {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.viewer__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.viewer__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(40, 67, 144, 0.3);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.viewer__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.viewer__arrow:hover { background: var(--accent-hover); transform: scale(1.06); }
.viewer__arrow:active { transform: scale(0.96); }
.viewer__arrow--prev { left: 10px; }
.viewer__arrow--next { right: 10px; }

.viewer__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(22, 24, 29, 0.72);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .viewer__arrow { width: 52px; height: 52px; margin-top: -26px; }
  .viewer__arrow--prev { left: 20px; }
  .viewer__arrow--next { right: 20px; }
  .viewer__counter { right: 20px; bottom: 18px; }
}

/* ---- Változatválasztó ---- */
.variant-picker {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.swatch {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--accent); }
.swatch:focus-visible { outline-offset: 4px; border-radius: 50%; }

/* Tooltip */
.swatch::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.swatch:hover::after,
.swatch:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.variant-name {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.variant-picker--tabs {
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 4px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
}

.variant-tab {
  min-height: 40px;
  padding: 8px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.variant-tab:hover { color: var(--text); }
.variant-tab.is-active { background: var(--accent); color: #fff; }

/* ---- Változathoz tartozó jelzés ---- */
.variant-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  text-align: center;
}
.variant-info:empty { display: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(40, 67, 144, 0.22);
  animation: badge-in 0.3s var(--ease);
}
.badge svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

@keyframes badge-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.variant-note {
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.9375rem;
}

.equipment {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.equipment li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
}
.equipment li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---- Termékadatok ---- */
.product__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 880px;
  margin: 40px auto 0;
}
.product__body > .btn { align-self: flex-start; }

.product__head { display: flex; flex-direction: column; gap: 6px; }
.product__title { font-size: clamp(2.25rem, 7vw, 3.5rem); }
.product__price { font-size: 1.25rem; font-weight: 600; }
.price { white-space: nowrap; }
.price__vat,
.price__fee { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.price__fee { margin-top: 2px; }

.product__desc {
  font-size: 1.0625rem;
  color: #2b2f37;
  max-width: 70ch;
}

.table-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.specs th,
.specs td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.specs tbody:last-child tr:last-child th,
.specs tbody:last-child tr:last-child td { border-bottom: 0; }
.specs th[scope="row"] {
  width: 42%;
  color: var(--muted);
  font-weight: 500;
}
.specs td { font-weight: 600; }
.specs__group th {
  padding-top: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 479px) {
  .specs th[scope="row"],
  .specs td { display: block; width: auto; }
  .specs th[scope="row"] { padding-bottom: 0; border-bottom: 0; font-size: 0.8125rem; }
  .specs td { padding-top: 2px; }
}

/* ==========================================================================
   Kapcsolat
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
}

.contact__details,
.contact__form {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .contact__details, .contact__form { padding: 32px; }
}

.contact-list { display: grid; gap: 16px; margin: 0; }
.contact-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list dd a[target] { display: inline-block; margin-top: 4px; font-size: 0.875rem; font-weight: 500; }

.contact__map {
  margin-top: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--line);
  aspect-ratio: 16 / 9;
  max-height: 450px;
  width: 100%;
}
.contact__map iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (min-width: 900px) {
  .contact__map { margin-top: 48px; aspect-ratio: auto; height: 420px; }
}
.contact-list a:hover { text-decoration: underline; }

.form { display: grid; gap: 18px; }
.form .btn { justify-self: start; }

.form__field { display: grid; gap: 6px; }
.form__field label { font-weight: 600; font-size: 0.9375rem; }
.form__field input,
.form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd3da;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form__field textarea { resize: vertical; min-height: 140px; }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(40, 67, 144, 0.18);
}
.form__field.has-error input,
.form__field.has-error textarea { border-color: var(--error); }
.form__error { color: var(--error); font-size: 0.875rem; font-weight: 500; }

.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
}
.alert--success { background: var(--success-bg); border-color: var(--success); color: #134d2c; }
.alert--error { background: var(--error-bg); border-color: var(--error); color: #7a180f; }

/* ==========================================================================
   Lábléc
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: grid;
  gap: 24px;
  padding-block: 40px 24px;
}

.site-footer__brand img { width: 140px; margin-bottom: 8px; }
.site-footer__brand p { color: var(--muted); }

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-footer__nav a:hover,
.site-footer__nav a[aria-current="page"] { color: var(--accent); }

.site-footer__contact {
  display: grid;
  gap: 4px;
  font-style: normal;
  color: var(--muted);
}
.site-footer__contact a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.site-footer__contact a:hover { color: var(--accent); }

.site-footer__bottom {
  padding-block: 16px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 48px;
  }
  .site-footer__nav ul { flex-direction: column; }
}

/* ---- Csökkentett mozgás ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
