/* ============================================================
   assets/css/style.css – VAMACNC egyedi stílusok
   Tailwind kiegészítések + SVG elválasztók + animációk
   ============================================================ */

/* --- Google Fonts fallback ha CDN lassú --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --brand:        #E85D04;
  --brand-dark:   #C44D00;
  --brand-light:  #FF7723;
  --brand-glow:   rgba(232, 93, 4, 0.15);

  --steel-900: #0A0F1E;
  --steel-800: #111827;
  --steel-700: #1A2236;
  --steel-600: #243049;
  --steel-500: #2E3D5C;

  --text-primary:   #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted:     #6B7280;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* FIX: globális vízszintes scroll tiltás */
}

body {
  background-color: var(--steel-900);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  max-width: 100vw; /* FIX: ne lógjon ki semmi mobilon */
  line-height: 1.6;
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--steel-800); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }

/* ============================================================
   SÜTI- ÉS ADATVÉDELMI BEÁLLÍTÁSOK
   ============================================================ */
body.consent-open {
  overflow: hidden;
}

.consent-layer[hidden],
.cookie-settings-button[hidden],
.consent-view[hidden],
.consent-close[hidden] {
  display: none !important;
}

.consent-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 0;
}

.consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.consent-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(92vh, 760px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 93, 4, 0.14), transparent 34rem),
    var(--steel-800);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  outline: none;
}

.consent-view {
  padding: 1.25rem;
}

.consent-heading,
.consent-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.consent-heading {
  justify-content: flex-start;
  align-items: center;
}

.consent-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border: 1px solid rgba(232, 93, 4, 0.38);
  border-radius: 0.9rem;
  background: rgba(232, 93, 4, 0.12);
  font-size: 1.35rem;
}

.consent-eyebrow {
  margin: 0 0 0.15rem;
  color: var(--brand-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.consent-dialog h2 {
  margin: 0;
  color: #fff;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: clamp(1.65rem, 6vw, 2.35rem);
  line-height: 1.05;
}

.consent-copy {
  margin: 0;
  color: #D1D5DB;
  font-size: 0.95rem;
  line-height: 1.65;
}

.consent-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.consent-btn,
.consent-link-button,
.consent-close,
.cookie-settings-button {
  font: inherit;
}

.consent-btn {
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.consent-btn:hover {
  transform: translateY(-1px);
}

.consent-btn:focus-visible,
.consent-link-button:focus-visible,
.consent-close:focus-visible,
.cookie-settings-button:focus-visible,
.consent-switch input:focus-visible + span {
  outline: 3px solid rgba(255, 119, 35, 0.5);
  outline-offset: 3px;
}

.consent-btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.consent-btn--primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
}

.consent-btn--secondary {
  background: #fff;
  border-color: #fff;
  color: #0A0F1E;
}

.consent-btn--secondary:hover {
  background: #E5E7EB;
  border-color: #E5E7EB;
}

.consent-btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.consent-btn--outline:hover {
  border-color: var(--brand-light);
  color: var(--brand-light);
}

.consent-link-button {
  display: inline-flex;
  margin-top: 0.95rem;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  color: var(--brand-light);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.consent-legal {
  margin: 1rem 0 0;
  color: #9CA3AF;
  font-size: 0.78rem;
  line-height: 1.55;
}

.consent-legal a {
  color: #FFD0B1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.consent-close {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.consent-categories {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.consent-category {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
}

.consent-category__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.consent-category h3 {
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
}

.consent-category p {
  margin: 0;
  color: #AEB7C5;
  font-size: 0.82rem;
  line-height: 1.5;
}

.consent-category__status {
  margin-top: 0.7rem !important;
  color: var(--brand-light) !important;
  font-weight: 700;
}

.consent-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.consent-switch > span:last-child {
  position: relative;
  display: block;
  width: 3rem;
  height: 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: #374151;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.consent-switch > span:last-child::after {
  content: '';
  position: absolute;
  top: 0.16rem;
  left: 0.18rem;
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.consent-switch input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
}

.consent-switch input:checked + span::after {
  transform: translateX(1.28rem);
}

.consent-switch--locked {
  cursor: not-allowed;
  opacity: 0.8;
}

.cookie-settings-button {
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 119, 35, 0.55);
  border-radius: 999px;
  background: rgba(10, 15, 30, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookie-settings-button:hover {
  border-color: var(--brand-light);
  color: var(--brand-light);
}

.consent-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 22rem;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(10, 15, 30, 0.98)),
    var(--steel-900);
}

.consent-media__placeholder {
  width: min(100%, 34rem);
  padding: 1.5rem;
  text-align: center;
}

.consent-media__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border: 1px solid rgba(232, 93, 4, 0.35);
  border-radius: 1.1rem;
  background: rgba(232, 93, 4, 0.12);
  font-size: 1.8rem;
}

.consent-media__placeholder h3 {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: 1.25rem;
}

.consent-media__placeholder p {
  margin: 0 auto 1rem;
  color: #AEB7C5;
  font-size: 0.9rem;
  line-height: 1.6;
}

.consent-media__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.consent-media__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  color: var(--brand-light);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.consent-media iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

@media (min-width: 640px) {
  .consent-layer {
    align-items: center;
    padding: 1.5rem;
  }

  .consent-dialog {
    width: min(100%, 46rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
  }

  .consent-view {
    padding: 1.75rem;
  }

  .consent-actions--primary {
    grid-template-columns: 1fr 1fr;
  }

  .consent-media__actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .consent-actions--settings {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .consent-view {
    padding: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-btn,
  .consent-switch > span:last-child,
  .consent-switch > span:last-child::after {
    transition: none;
  }
}

/* ============================================================
   NAVIGÁCIÓ
   ============================================================ */
#siteHeader {
  background: transparent;
  border-bottom: 1px solid transparent;
}
#siteHeader.scrolled,
#siteHeader.menu-open,
#siteHeader:has(#mobileMenu.open) {
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(232, 93, 4, 0.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  line-height: 1;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.nav-active {
  color: #fff;
}
.nav-link:hover::after,
.nav-link.nav-active::after {
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 93, 4, 0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--brand);
  background: rgba(232, 93, 4, 0.08);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 400px; }

@media (max-width: 1023px) {
  #siteHeader.menu-open .mobile-menu,
  #siteHeader:has(#mobileMenu.open) .mobile-menu {
    padding-bottom: 0.85rem;
  }

  #siteHeader.menu-open .mobile-menu > ul,
  #siteHeader:has(#mobileMenu.open) .mobile-menu > ul {
    margin-top: 0.45rem;
    padding: 0.65rem;
    background: rgba(10, 15, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

.mobile-nav-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav-link:hover,
.mobile-nav-link.nav-active {
  color: #fff;
  background: rgba(232, 93, 4, 0.12);
}

/* ============================================================
   HERO SZEKCIÓ
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10,15,30,0.97) 0%, rgba(26,34,54,0.95) 100%),
    url('/assets/images/hero-bg.jpg') center/cover no-repeat;
}

/* Animated grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,93,4,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,93,4,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 70%, transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 93, 4, 0.12);
  border: 1px solid rgba(232, 93, 4, 0.3);
  color: var(--brand-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.01em;
  font-size: clamp(2.8rem, 8vw, 6rem);
}

.hero-title .accent { color: var(--brand); }

/* Gépi cursor animáció a hero szöveg mögött */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.cursor-blink {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--brand);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

/* Stat boxes */
.stat-box {
  background: rgba(26, 34, 54, 0.7);
  border: 1px solid rgba(232, 93, 4, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(8px);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-box:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

/* ============================================================
   SVG ELVÁLASZTÓK (ASZIMMETRIKUS)
   ============================================================ */
.divider-wrap {
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.divider-wrap svg {
  display: block;
  width: 100%;
}

/* ============================================================
   SZEKCIÓ ALAP
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ============================================================
   SZOLGÁLTATÁS KÁRTYÁK
   ============================================================ */
.service-card {
  position: relative;
  background: var(--steel-700);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: rgba(232, 93, 4, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(232, 93, 4, 0.12);
  border: 1px solid rgba(232, 93, 4, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

/* ============================================================
   GÉPPARK / SPEC TÁBLA
   ============================================================ */
.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-secondary); }
.spec-value { font-weight: 600; color: var(--text-primary); }

/* ============================================================
   IPARÁGAK (REFERENCIÁK)
   ============================================================ */
.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 93, 4, 0.08);
  border: 1px solid rgba(232, 93, 4, 0.2);
  color: var(--brand-light);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: background var(--transition), border-color var(--transition);
}
.industry-pill:hover {
  background: rgba(232, 93, 4, 0.15);
  border-color: var(--brand);
}

/* ============================================================
   KAPCSOLAT / FORM
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background: rgba(26, 34, 54, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}
.form-input.error { border-color: #ef4444; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-color: rgba(26, 34, 54, 0.8);
  padding-right: 2.5rem;
}

/* Drag & drop file zone */
.file-drop-zone {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.file-drop-zone:hover,
.file-drop-zone.dragover {
  border-color: var(--brand);
  background: rgba(232, 93, 4, 0.05);
}

.file-drop-zone:focus-visible {
  outline: 3px solid rgba(232, 93, 4, 0.35);
  outline-offset: 3px;
}

.file-list-summary {
  margin: 0 0 0.55rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.file-list-items {
  display: grid;
  gap: 0.55rem;
}

.file-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.035);
}

.file-list-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.file-list-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  color: var(--brand-light);
}

.file-list-icon svg,
.file-remove-button svg {
  width: 100%;
  height: 100%;
}

.file-list-details {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.file-list-name {
  overflow: hidden;
  color: #E5E7EB;
  font-size: 0.85rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list-size {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.file-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  border: 1px solid rgba(248,113,113,0.22);
  border-radius: 0.55rem;
  color: #FCA5A5;
  background: rgba(239,68,68,0.07);
  cursor: pointer;
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.file-remove-button:hover {
  color: #FEE2E2;
  border-color: rgba(248,113,113,0.45);
  background: rgba(239,68,68,0.15);
  transform: translateY(-1px);
}

.file-remove-button:focus-visible {
  outline: 3px solid rgba(248,113,113,0.3);
  outline-offset: 2px;
}

.file-remove-button svg {
  width: 1rem;
  height: 1rem;
}

.file-list-notice {
  margin-top: 0.55rem;
  color: #FCA5A5;
  font-size: 0.78rem;
  line-height: 1.45;
}

/* ============================================================
   KONTAKT INFO KÁRTYÁK
   ============================================================ */
.contact-card {
  background: var(--steel-700);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color var(--transition);
}
.contact-card:hover { border-color: rgba(232, 93, 4, 0.3); }

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(232, 93, 4, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--brand-light); }

/* ============================================================
   ANIMÁCIÓ SEGÉDOSZTÁLYOK (GSAP-hoz)
   ============================================================ */
.reveal-up   { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right{ opacity: 0; transform: translateX(40px); }
.reveal-fade { opacity: 0; }

/* ============================================================
   PAGE HERO (belső oldalakhoz)
   ============================================================ */
.page-hero {
  padding: 8rem 0 4rem;
  background:
    linear-gradient(180deg, var(--steel-900) 0%, var(--steel-800) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,93,4,0.08) 0%, transparent 70%);
  pointer-events: none;
}


/* ============================================================
   LAP TETEJÉRE GOMB
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(232, 93, 4, 0.35);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(26, 34, 54, 0.92), rgba(10, 15, 30, 0.78));
  color: var(--text-primary);
  font: 700 0.82rem/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.94);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 32px rgba(232, 93, 4, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    opacity var(--transition),
    visibility var(--transition),
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    bottom var(--transition);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-btn.is-raised {
  bottom: clamp(5.5rem, 14vh, 8rem);
}

.scroll-top-btn.is-visible:hover {
  border-color: rgba(232, 93, 4, 0.78);
  background:
    linear-gradient(135deg, rgba(232, 93, 4, 0.22), rgba(26, 34, 54, 0.92));
  transform: translateY(-2px) scale(1);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.42),
    0 0 38px rgba(232, 93, 4, 0.24);
}

.scroll-top-btn.is-visible:active {
  transform: translateY(0) scale(0.98);
}

.scroll-top-btn:focus-visible {
  outline: 3px solid rgba(232, 93, 4, 0.4);
  outline-offset: 4px;
}

.scroll-top-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-light);
  flex-shrink: 0;
}

.scroll-top-label {
  white-space: nowrap;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .scroll-top-btn {
    background: rgba(17, 24, 39, 0.96);
  }
}

@media (max-width: 480px) {
  .scroll-top-btn {
    width: 3rem;
    height: 3rem;
    min-height: 3rem;
    padding: 0;
  }

  .scroll-top-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(26, 34, 54, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}

/* ============================================================
   RESZPONZÍV – max-width konténer
   ============================================================ */
.container {
  width: 100%;
  max-width: 1400px;  /* 4K-ra is jó */
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
@media (min-width: 1536px) { .container { padding: 0 3rem; } }

/* ============================================================
   ADMIN STÍLUSOK (csak admin oldalakra töltődik be)
   Ezeket az admin saját CSS-e tölti be, ide komment marad
   ============================================================ */

/* ============================================================
   PUBLIC GALÉRIA / MUNKÁINK
   ============================================================ */
.gallery-hero {
  padding-top: clamp(7rem, 10vw, 10rem);
}

.gallery-hero-panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    linear-gradient(145deg, rgba(26, 34, 54, 0.74), rgba(10, 15, 30, 0.88));
  border: 1px solid rgba(232, 93, 4, 0.18);
  border-radius: 1.5rem;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}

.gallery-hero-panel::before {
  content: '';
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle, rgba(232,93,4,0.18), transparent 38%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: rotate(12deg);
  pointer-events: none;
}

.gallery-machine-visual {
  position: relative;
  min-height: clamp(15rem, 30vw, 23rem);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(10,15,30,0.92), rgba(36,48,73,0.84)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(232,93,4,0.06) 29px 30px);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  isolation: isolate;
}

.gallery-machine-visual::before,
.gallery-machine-visual::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.22);
  filter: blur(28px);
}

.gallery-machine-visual::before {
  width: 9rem;
  height: 9rem;
  top: -2rem;
  right: -2rem;
}

.gallery-machine-visual::after {
  width: 7rem;
  height: 7rem;
  left: 12%;
  bottom: 8%;
}

.machine-screen,
.machine-bed,
.machine-axis {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.1);
}

.machine-screen {
  top: 14%;
  left: 13%;
  right: 13%;
  height: 44%;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(232,93,4,0.15), rgba(232,93,4,0.02)),
    rgba(17,24,39,0.92);
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 0.75rem;
  padding: 1rem;
}

.machine-screen span {
  display: block;
  border-radius: 0.65rem;
  background: rgba(255,255,255,0.08);
}

.machine-screen span:first-child {
  grid-row: span 2;
  background:
    linear-gradient(135deg, rgba(232,93,4,0.55), rgba(255,119,35,0.08)),
    rgba(255,255,255,0.08);
}

.machine-bed {
  left: 10%;
  right: 10%;
  bottom: 17%;
  height: 20%;
  border-radius: 0.9rem;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05), rgba(232,93,4,0.16), rgba(255,255,255,0.05));
}

.machine-axis {
  left: 50%;
  top: 24%;
  bottom: 18%;
  width: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 22px rgba(232,93,4,0.5);
}

.gallery-stat-card {
  position: relative;
  z-index: 1;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(10,15,30,0.46);
  border: 1px solid rgba(255,255,255,0.08);
}

.gallery-stat-card strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--brand-light);
}

.gallery-stat-card span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.gallery-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.gallery-collection-card {
  position: relative;
  min-height: 16rem;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  background: var(--steel-700);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  transform: translateZ(0);
}

.gallery-collection-card img,
.gallery-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
}

.gallery-card-placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(232,93,4,0.34), transparent 34%),
    linear-gradient(135deg, var(--steel-700), var(--steel-900));
}

.gallery-collection-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.05);
}

.gallery-collection-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 5rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(10,15,30,0.92) 58%, rgba(10,15,30,0.98));
}

.gallery-collection-overlay span {
  display: inline-flex;
  color: var(--brand-light);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.gallery-collection-overlay h3 {
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
}

.gallery-collection-overlay p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-section {
  scroll-margin-top: 5.5rem;
}

.work-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
  align-items: stretch;
}

.work-gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--steel-700);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 38px rgba(0,0,0,0.2);
  isolation: isolate;
}

.work-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
}

.work-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(10,15,30,0.92)),
    radial-gradient(circle at 50% 20%, transparent, rgba(0,0,0,0.22));
  opacity: 0.82;
  transition: opacity var(--transition);
}

.work-gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.06);
}

.work-gallery-item:hover::after {
  opacity: 1;
}

.work-gallery-caption {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  text-shadow: 0 2px 18px rgba(0,0,0,0.65);
}

.gallery-cta-card {
  padding: clamp(2rem, 5vw, 4rem);
  border-color: rgba(232,93,4,0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(232,93,4,0.18), transparent 42%),
    rgba(26,34,54,0.66);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(3, 6, 13, 0.88);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox-frame {
  position: relative;
  width: min(100%, 1100px);
  max-height: 90svh;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.gallery-lightbox-img {
  width: 100%;
  max-height: 82svh;
  object-fit: contain;
  border-radius: 1rem;
  background: #060A14;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 90px rgba(0,0,0,0.48);
}

.gallery-lightbox-caption {
  color: #D1D5DB;
  text-align: center;
  font-size: 0.95rem;
}

.gallery-lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.gallery-lightbox-open {
  overflow: hidden;
}


@media (min-width: 768px) {
  .gallery-overview-grid,
  .work-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  }

  .gallery-collection-card,
  .gallery-collection-card img,
  .gallery-card-placeholder {
    min-height: 17rem;
  }
}

@media (min-width: 1280px) {
  .gallery-overview-grid,
  .work-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  }
}

@media (max-width: 767px) {
  .gallery-hero-panel {
    padding: 1rem;
  }

  .gallery-machine-visual {
    min-height: 13rem;
  }

  .gallery-collection-card,
  .gallery-collection-card img,
  .gallery-card-placeholder {
    min-height: 13.5rem;
  }

  .work-gallery-caption {
    font-size: 0.84rem;
  }

  .gallery-lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-collection-card img,
  .work-gallery-item img {
    transition: none;
  }

  .gallery-collection-card:hover img,
  .work-gallery-item:hover img {
    transform: none;
  }
}


/* ============================================================
   GALÉRIA V3 – külön galériaoldal + lapozható lightbox
   ============================================================ */
.gallery-detail-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-selected-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-light);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gallery-selected-meta::before {
  content: '';
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(232, 93, 4, 0.65);
}

.gallery-back-link {
  width: fit-content;
}

.gallery-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.gallery-selected-section .work-gallery-grid {
  align-items: start;
}

/* A lightbox új, lapozható felépítésének felülírásai. */
.gallery-lightbox {
  padding: clamp(0.85rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(232,93,4,0.16), transparent 34%),
    rgba(3, 6, 13, 0.92);
}

.gallery-lightbox-frame {
  width: min(100%, 1280px);
  max-height: 92svh;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
}

.gallery-lightbox-figure {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.gallery-lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: 78svh;
  object-fit: contain;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.gallery-lightbox-img.is-switching {
  opacity: 0.42;
  transform: scale(0.992);
}

.gallery-lightbox-meta {
  width: min(100%, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  color: #D1D5DB;
  text-align: center;
  font-size: 0.95rem;
}

.gallery-lightbox-caption {
  color: #F9FAFB;
  font-weight: 700;
}

.gallery-lightbox-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.75rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  color: var(--brand-light);
  background: rgba(232, 93, 4, 0.12);
  border: 1px solid rgba(232, 93, 4, 0.28);
  font-size: 0.82rem;
  font-weight: 800;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3.15rem;
  height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  background: rgba(26, 34, 54, 0.78);
  box-shadow: 0 16px 38px rgba(0,0,0,0.34);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    opacity var(--transition);
}

.gallery-lightbox-nav:hover {
  background: rgba(232, 93, 4, 0.9);
  border-color: rgba(255,255,255,0.22);
}

.gallery-lightbox-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.gallery-lightbox-prev {
  left: clamp(-4.25rem, -4vw, -3rem);
}

.gallery-lightbox-next {
  right: clamp(-4.25rem, -4vw, -3rem);
}

.gallery-lightbox-nav[hidden] {
  display: none;
}

.gallery-lightbox-close {
  z-index: 3;
}

.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
  outline: 3px solid rgba(255,255,255,0.86);
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .gallery-detail-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .gallery-bottom-actions {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .gallery-detail-header {
    gap: 1.25rem;
  }

  .gallery-back-link {
    width: 100%;
    justify-content: center;
  }

  .gallery-bottom-actions .btn-outline,
  .gallery-bottom-actions .btn-primary {
    width: 100%;
  }

  .gallery-lightbox {
    padding: 0.75rem;
  }

  .gallery-lightbox-frame {
    width: 100%;
    max-height: 94svh;
    padding-bottom: 3.75rem;
  }

  .gallery-lightbox-img {
    max-height: 72svh;
    border-radius: 0.85rem;
  }

  .gallery-lightbox-meta {
    font-size: 0.86rem;
    gap: 0.55rem;
    padding-inline: 3.8rem;
  }

  .gallery-lightbox-nav {
    top: auto;
    bottom: 0.2rem;
    width: 3rem;
    height: 3rem;
    transform: none;
    background: rgba(232, 93, 4, 0.9);
  }

  .gallery-lightbox-nav:active {
    transform: scale(0.96);
  }

  .gallery-lightbox-prev {
    left: calc(50% - 4rem);
  }

  .gallery-lightbox-next {
    right: calc(50% - 4rem);
  }

  .gallery-lightbox-close {
    top: 0.35rem;
    right: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox-img {
    transition: none;
  }

  .gallery-lightbox-img.is-switching {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   GALÉRIA V4 – kiválasztott galéria a lista helyén, tiszta képrács
   ============================================================ */
.gallery-hero-static .section-title {
  max-width: 13ch;
}

.gallery-selected-panel {
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(232, 93, 4, 0.08), transparent 32%),
    rgba(26, 34, 54, 0.28);
  border: 1px solid rgba(255,255,255,0.06);
}

.gallery-selected-panel .gallery-detail-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.work-gallery-grid-clean .work-gallery-item::after {
  display: none;
}

.work-gallery-grid-clean .work-gallery-caption {
  display: none;
}

.work-gallery-grid-clean .work-gallery-item {
  text-decoration: none;
}

.work-gallery-grid-clean .work-gallery-item img {
  filter: none;
}

.work-gallery-grid-clean .work-gallery-item:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-lightbox-caption[hidden] {
  display: none;
}

.gallery-lightbox-meta:has(.gallery-lightbox-caption[hidden]) {
  justify-content: center;
}

@supports not selector(:has(*)) {
  .gallery-lightbox-caption[hidden] + .gallery-lightbox-counter {
    margin-inline: auto;
  }
}

@media (min-width: 1024px) {
  .gallery-selected-panel {
    padding: clamp(1.25rem, 2.5vw, 2rem);
  }
}

@media (max-width: 767px) {
  .gallery-selected-panel {
    padding: 1rem;
    border-radius: 1rem;
  }

  .gallery-selected-panel .gallery-detail-header {
    gap: 1rem;
  }

  .work-gallery-grid-clean {
    gap: 0.85rem;
  }
}

/* ============================================================
   GALÉRIA ANCHOR POZÍCIÓ
   ============================================================ */
#galeriak {
  scroll-margin-top: 5.5rem;
}

@media (min-width: 1024px) {
  #galeriak {
    scroll-margin-top: 7rem;
  }
}



/* ============================================================
   GALÉRIA V6 – újratöltés nélküli váltás, ugrálás nélkül
   ============================================================ */
.gallery-dynamic-section {
  scroll-margin-top: 5.5rem;
}

.gallery-dynamic-section [hidden],
[data-gallery-cta][hidden] {
  display: none !important;
}

.gallery-dynamic-section {
  transition: min-height 0.18s ease;
}

.gallery-view {
  min-width: 0;
}

.work-gallery-grid-clean .work-gallery-item::after,
.work-gallery-grid-clean .work-gallery-caption {
  display: none !important;
}

.work-gallery-grid-clean .work-gallery-item {
  background: rgba(26, 34, 54, 0.78);
}

.work-gallery-grid-clean .work-gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

@media (min-width: 1024px) {
  .gallery-dynamic-section .work-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(18rem, 22rem));
  }
}


/* ============================================================
   LOGÓ – kép alapú VAMACNC márkajelzés
   ============================================================ */
.site-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  border-radius: 0.6rem;
  outline-offset: 0.35rem;
}

.site-logo-link:focus-visible {
  outline: 3px solid rgba(232, 93, 4, 0.65);
}

.site-logo {
  display: block;
  width: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 12px rgba(232, 93, 4, 0.18));
}

.site-logo--header {
  height: clamp(2.35rem, 7vw, 3.1rem);
  max-width: min(54vw, 14.5rem);
}

.site-logo--footer {
  height: clamp(3.4rem, 8vw, 4.8rem);
  max-width: min(76vw, 19rem);
  filter:
    drop-shadow(0 0 18px rgba(232, 93, 4, 0.22))
    drop-shadow(0 10px 26px rgba(0, 0, 0, 0.24));
}

@media (min-width: 1024px) {
  .site-logo--header {
    height: 3.25rem;
    max-width: 15.5rem;
  }

  .site-logo--footer {
    height: 4.9rem;
    max-width: 20rem;
  }
}

@media (max-width: 380px) {
  .site-logo--header {
    height: 2.1rem;
    max-width: 48vw;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-logo-link {
    transition: transform var(--transition), filter var(--transition);
  }

  .site-logo-link:hover {
    transform: translateY(-1px);
  }
}


/* ============================================================
   NYELVVÁLTÓ – modern, akadálymentes szegmentált vezérlő
   ============================================================ */
.language-switcher-item {
  display: flex;
  align-items: center;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 2.45rem;
  padding: 0.24rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(10, 15, 30, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.language-switcher:hover {
  border-color: rgba(255, 119, 35, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(232, 93, 4, 0.08);
}

.language-switcher__icon {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--brand-light);
  background: rgba(232, 93, 4, 0.11);
}

.language-switcher__icon svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.75;
}

.language-switcher__options {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(2.1rem, 1fr));
  align-items: center;
  min-width: 4.45rem;
  min-height: 1.95rem;
  padding: 0.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(2, 6, 18, 0.36);
  overflow: hidden;
}

.language-switcher__options::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0.1rem;
  bottom: 0.1rem;
  left: 0.1rem;
  width: calc(50% - 0.1rem);
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--brand-light), var(--brand));
  box-shadow:
    0 5px 14px rgba(232, 93, 4, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.language-switcher[data-current-language="de"] .language-switcher__options::before {
  transform: translateX(100%);
}

.language-option {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 2.1rem;
  min-height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #9ca9bd;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.09em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.language-option:hover {
  color: #fff;
}

.language-option:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.language-option.is-active {
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

.language-option.is-loading {
  pointer-events: none;
}

.language-switcher[aria-busy="true"] {
  pointer-events: none;
}

.mobile-language-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
}

.mobile-language-label {
  color: #aab7cb;
  font-size: 0.78rem;
  font-weight: 600;
}

.language-switcher--mobile {
  min-height: 2.65rem;
}

.language-switcher--mobile .language-switcher__options {
  min-width: 5rem;
  min-height: 2.1rem;
}

.language-switcher--mobile .language-option {
  min-width: 2.35rem;
  min-height: 1.9rem;
  font-size: 0.72rem;
}

@media (max-width: 380px) {
  .mobile-language-row {
    gap: 0.6rem;
    padding-inline: 0.45rem;
  }

  .language-switcher__icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher,
  .language-switcher__options::before,
  .language-option {
    transition: none;
  }
}
