/* Villanypásztorpláza – fő stíluslap */
:root {
  --brand: #00d4ff;          /* elektromos cián — fő akcentus */
  --brand-dark: #00a8cc;     /* hover */
  --brand-light: #123;       /* sötét kék háttérárnyalat */
  --navbar: #0d1117;         /* majdnem fekete header */
  --dark: #0d1117;
  --dark-2: #161b22;
  --text: #d5dbe3;
  --light: #10151c;
  --green: #3fd97a;
  --steel: #8b98a9;
  --card: #161b22;           /* kártyaháttér */
  --border: #2a3038;
  --radius: 10px;
}

* { box-sizing: border-box; }
/* a szerzői display-ek (.btn stb.) felülírják a böngésző [hidden] szabályát — ezt visszakényszerítjük */
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}
h1, h2, h3, h4 { color: #f0f3f7; }
/* sötét témában a sima linkek legyenek ciánok (a böngésző alap kékje olvashatatlan lenne) */
.section a:not(.btn) { color: var(--brand); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
img { max-width: 100%; display: block; }

/* Fejléc */
.site-header { background: var(--navbar, #0d1117); color: #fff; position: fixed; top: 0; left: 0; right: 0; z-index: 10; border-bottom: 1px solid var(--border); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 1.25rem;
  flex-wrap: nowrap;
  transition: padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding-bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo-img { height: 120px; width: auto; }
@media (max-width: 720px) {
  .logo-img { height: 72px; }
  .header-inner { gap: 0.5rem; padding-left: 0.75rem; padding-right: 0.75rem; }
}
@media (max-width: 340px) {
  .header-inner > .header-phone { display: none; }
  .nav-toggle { margin-left: auto; }
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.4rem;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
}
.main-nav > a { white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 500; }
.main-nav > a[aria-current="page"] { color: var(--brand); }

/* Nyelvválasztó: kompakt zászlós dropdown (<details>, JS csak a bezárást kezeli) */
.lang-switch { position: relative; display: inline-block; margin-left: 0.55rem; flex: 0 0 auto; }
.lang-switch summary { list-style: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary { cursor: pointer; user-select: none; }
.lang-current {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.28rem 0.55rem; border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.35);
  color: var(--steel, #94a3b8);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
  transition: border-color .15s ease, color .15s ease;
}
.lang-current:hover { color: var(--accent, #22d3ee); border-color: rgba(34, 211, 238, 0.45); }
.lang-switch[open] .lang-current { color: var(--accent, #22d3ee); border-color: rgba(34, 211, 238, 0.45); }
.lang-current:focus-visible { outline: 2px solid var(--accent, #22d3ee); outline-offset: 2px; }
.flag-ic { display: inline-flex; width: 21px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(148,163,184,.35); flex: none; }
.flag-ic svg { width: 100%; height: 100%; display: block; }
.lang-caret { width: 10px; height: 6px; flex: none; opacity: .8; transition: transform .15s ease; }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 9.5rem; margin: 0; padding: 0.3rem; list-style: none;
  background: var(--panel, #101827);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.55);
}
.lang-menu a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.42rem 0.55rem; border-radius: 7px;
  color: var(--steel, #94a3b8); text-decoration: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
}
.lang-menu a:hover { background: rgba(34, 211, 238, 0.09); color: var(--accent, #22d3ee); }
.lang-menu a[aria-current="true"] { color: var(--accent, #22d3ee); }
.lang-menu a[aria-current="true"]::after { content: "\2713"; margin-left: auto; font-size: 0.78rem; }
.lang-menu a[aria-current="true"] .flag-ic { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.55); }
.lang-switch-mobile { margin: 0.4rem 0 0; }
.lang-switch-mobile .lang-menu { left: 0; right: auto; }
.main-nav a:hover { color: var(--brand); }
.header-phone { color: var(--brand); text-decoration: none; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }

/* Hamburger + mobil menü: csak kis képernyőn */
.nav-toggle { display: none; }
.mobile-nav { display: none; }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-inner > .lang-switch { display: none; }
  .header-phone { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: transparent; border: 2px solid rgba(255,255,255,0.35); border-radius: 8px;
    cursor: pointer; flex: 0 0 auto;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle.nav-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.nav-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.nav-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navbar, #0d1117);
    border-top: 1px solid var(--border);
    padding: 0.5rem 1.25rem 0.9rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
    z-index: 20;
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a {
    color: var(--text); text-decoration: none; font-weight: 500; font-size: 1.05rem;
    padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--border);
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a[aria-current="page"] { color: var(--brand); }
  .mobile-nav-phone { font-weight: 700; }
}

/* Görgetéskor összecsukott fejléc */
/* A header fixed → a spacer adja a helyét az oldalfolyamban (egyetlen példányban).
   Nem festünk rá hátteret: kinyitáskor különben egy üres navbar-doboz látszik a
   fejléc alatt. A fő tartalom (hero fotó / szekcióháttér) húzódik fölé. */
.header-spacer { position: relative; background: none; pointer-events: none; }
main > :first-child { margin-top: calc(-1 * var(--header-expanded-h, 0px)); }
.site-header .logo-img {
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header .main-nav {
  transition: row-gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.header-collapsed .logo-img { height: 44px; }
.site-header.header-collapsed .header-inner { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.site-header.header-collapsed .main-nav { row-gap: 0.2rem; }
@media (max-width: 720px) { .site-header.header-collapsed .logo-img { height: 40px; } }
@media (prefers-reduced-motion: reduce) {
  .header-inner,
  .site-header .logo-img,
  .site-header .main-nav { transition: none; }
}

/* Hero */
.hero { background: radial-gradient(ellipse 80% 90% at 70% 10%, #14283a 0%, var(--dark) 65%); color: var(--text); padding: 5rem 0; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 1rem; color: #fff; font-weight: 700; line-height: 1.2; }
.hero-since { display: block; margin-top: 0.2em; }
.hero-sub { max-width: 46rem; font-size: 1.1rem; opacity: 0.9; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero.hero-slider {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(72vh + var(--header-expanded-h, 0px));
  padding: calc(3.5rem + var(--header-expanded-h, 0px)) 0 4.75rem;
  overflow: hidden;
  background: var(--dark);
}
@media (max-width: 720px) {
  .hero.hero-slider {
    min-height: calc(28rem + var(--header-expanded-h, 0px));
    padding: calc(2.5rem + var(--header-expanded-h, 0px)) 0 4.25rem;
  }
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.hero-slider-nav {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.hero-slider-dots { display: flex; align-items: center; gap: 0.4rem; }
.hero-slider-prev,
.hero-slider-next,
.hero-slider-dot {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  color: var(--brand);
  background: rgba(13, 17, 23, 0.55);
  border: 1px solid rgba(0, 212, 255, 0.4);
}
.hero-slider-prev,
.hero-slider-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius);
}
.hero-slider-prev:hover,
.hero-slider-next:hover,
.hero-slider-dot:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--brand);
}
.hero-slider-prev:focus-visible,
.hero-slider-next:focus-visible,
.hero-slider-dot:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.hero-slider-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}
.hero-slider-dot[aria-current="true"] {
  background: var(--brand);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Gombok */
.btn { display: inline-block; padding: 0.7rem 1.4rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: #06222c; box-shadow: 0 0 18px rgba(0,212,255,0.25); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-outline { border-color: var(--steel); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--brand); border-color: var(--brand); color: #06222b; }
.hero .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; background: transparent; }
/* Fotós hero: sötét gradiens a Dark Energy paletta felett, a szöveg olvashatóságához */
.hero-image { background-size: cover; background-position: center 30%; position: relative; }
.hero-image::before,
.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(13,17,23,0.95) 0%, rgba(13,17,23,0.85) 55%, rgba(13,17,23,0.55) 100%);
}
.hero-image .container,
.hero-slider .container { position: relative; z-index: 2; }
.hero .btn-outline:hover { background: var(--brand); border-color: var(--brand); color: #06222b; }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

/* Szekciók */
.section { padding: 3.5rem 0; }
main > .section:first-child { padding-top: calc(3.5rem + var(--header-expanded-h, 0px)); }
main > .hero:first-child:not(.hero-slider) { padding-top: calc(5rem + var(--header-expanded-h, 0px)); }
h2 { font-size: 1.9rem; margin: 0 0 1.5rem; }

/* Kategóriák */
#termekvalasztek,
#rolunk,
#hatezer-kilometer,
#szolgaltatasok { scroll-margin-top: 9rem; }
.section.categories {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 212, 255, 0.08), transparent 62%),
    var(--light);
}
.section.categories::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
}
.section.categories .container { position: relative; z-index: 1; }
.section.about { padding: 0; background: var(--light); }
.about-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4.75rem 0 3.75rem;
}
.about-band > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.about-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.78) 0%, rgba(13, 17, 23, 0.86) 55%, rgba(13, 17, 23, 0.94) 100%),
    linear-gradient(90deg, rgba(13, 17, 23, 0.5) 0%, transparent 48%);
}
.about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.25rem;
  align-items: center;
}
.about-copy h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4f7fb;
}
.about-copy h2::after {
  content: '';
  display: block;
  width: 4.5rem;
  height: 2px;
  margin: 0.85rem 0 0;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.about-lead {
  margin: 0 0 0.85rem;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.5;
  color: #e8edf3;
}
.about-copy p { margin: 0 0 0.75rem; color: var(--text); }
.about-copy p:last-of-type { margin-bottom: 0; }
.about-actions {
  display: flex;
  margin-top: 1.6rem;
}
.about-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.about-actions .btn .fa-arrow-right {
  font-size: 0.82rem;
  transition: transform 0.15s;
}
.about-actions .btn:hover .fa-arrow-right,
.about-actions .btn:focus-visible .fa-arrow-right { transform: translateX(4px); }
.about-portrait {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.about-portrait::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.85;
}
.about-portrait a { display: block; }
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.35s ease;
}
.about-portrait:hover {
  border-color: color-mix(in srgb, var(--green) 55%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 22%, transparent), 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}
.about-portrait:hover img { transform: scale(1.04); }

.section.milestone { padding: 0; background: var(--light); }
.milestone-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 28rem;
  padding: 5rem 0 4.25rem;
}
.milestone-hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 68% 42%;
}
.milestone-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.58) 0%, rgba(13, 17, 23, 0.72) 48%, rgba(13, 17, 23, 0.9) 100%),
    linear-gradient(90deg, rgba(13, 17, 23, 0.35) 0%, transparent 40%, rgba(13, 17, 23, 0.4) 100%);
}
.milestone-hero .container {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
}
.milestone-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem 0.85rem;
  margin: 0 0 1.1rem;
  line-height: 0.9;
}
.milestone-number {
  font-size: clamp(4.2rem, 11vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #f4f7fb;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.milestone-unit {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.milestone-hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  color: #f4f7fb;
}
.milestone-hero h2::after {
  content: '';
  display: block;
  width: 4.5rem;
  height: 2px;
  margin: 0.9rem auto 0;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.milestone-lead {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.5;
  color: #e8edf3;
}
.milestone-hero p { margin: 0 0 0.7rem; color: var(--text); }
.milestone-note {
  margin: 0;
  font-size: 0.98rem;
  font-style: italic;
  color: var(--steel);
}
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .about-band, .milestone-hero { min-height: 0; padding: 3.5rem 0 2.75rem; }
  .about-copy h2 { text-align: center; }
  .about-copy h2::after { margin-left: auto; margin-right: auto; }
  .about-actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .about-portrait, .about-portrait img, .about-actions .btn .fa-arrow-right { transition: none; }
  .about-portrait:hover { transform: none; }
  .about-portrait:hover img { transform: none; }
}

/* Főkategória-könyvtár — ipari Dark Energy panelek */
.catalog-dir {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}
.catalog-dir-single { grid-template-columns: 1fr; }
.catalog-col {
  --cat: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(22, 27, 34, 0.2) 0%, transparent 42%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1rem;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.catalog-col[data-cat="vadhalo"] { --cat: var(--green); }
.catalog-col[data-cat="vadhalo"] .catalog-list a:not(.btn) {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.catalog-col[data-cat="villanypasztor"] { --cat: var(--brand); }
.catalog-col[data-cat="keritesepites"] { --cat: #e2b657; }
.catalog-col::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cat), transparent);
  opacity: 0.85;
}
.catalog-col::after {
  content: '';
  position: absolute;
  inset: auto -20% -30% auto;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cat) 0%, transparent 68%);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.catalog-col:hover {
  border-color: color-mix(in srgb, var(--cat) 55%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cat) 22%, transparent), 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}
.catalog-head, .catalog-body, .catalog-more, .catalog-cover { position: relative; z-index: 1; }
.catalog-cover {
  display: block;
  margin: -1.15rem -1.15rem 0.95rem;
  padding: 0.7rem 0.35rem 0.35rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 50% 35%, color-mix(in srgb, var(--cat) 14%, transparent), transparent 72%),
    #10151c;
  border-bottom: 1px solid color-mix(in srgb, var(--cat) 28%, var(--border));
}
.catalog-cover img {
  display: block;
  width: 100%;
  height: 188px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}
.catalog-col:hover .catalog-cover img { transform: scale(1.035); }
.catalog-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon blurb";
  column-gap: 0.85rem;
  align-items: start;
  margin-bottom: 0.95rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(42, 48, 56, 0.9);
}
.catalog-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 10px;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 12%, #0f141b);
  border: 1px solid color-mix(in srgb, var(--cat) 35%, var(--border));
  box-shadow: 0 0 18px color-mix(in srgb, var(--cat) 18%, transparent);
}
.catalog-col h2 {
  grid-area: title;
  margin: 0.05rem 0 0.2rem;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.section .catalog-col h2 a:not(.btn) { color: var(--cat) !important; text-decoration: none; }
.catalog-col h2 a:hover,
.catalog-col h2 a:focus-visible { filter: brightness(1.15); }
.catalog-blurb {
  grid-area: blurb;
  margin: 0;
  color: var(--steel);
  font-size: 0.84rem;
  line-height: 1.4;
}
.catalog-body { display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.catalog-dir-single .catalog-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.15rem;
}
.catalog-group {
  padding: 0.15rem 0 0.1rem 0.75rem;
  border-left: 2px solid color-mix(in srgb, var(--cat) 70%, var(--border));
}
.catalog-col h3 {
  margin: 0 0 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cat) 72%, #d5dbe3);
  line-height: 1.3;
}
.section .catalog-col h3 a:not(.btn) { color: inherit; text-decoration: none; }
.section .catalog-col h3 a:not(.btn):hover,
.section .catalog-col h3 a:not(.btn):focus-visible { color: var(--cat); }
.catalog-col h3.catalog-leaf {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 650;
  color: #e8edf3;
}
.catalog-list { list-style: none; margin: 0; padding: 0; }
.catalog-list li { margin: 0; }
.section .catalog-list a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin: 0 -0.25rem 0 -0.35rem;
  padding: 0.28rem 0.55rem 0.28rem 0.4rem;
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.3;
  transition: background 0.15s, color 0.15s;
}
.catalog-list a .fa-arrow-right {
  color: var(--cat);
  font-size: 0.72rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s;
  flex: none;
}
.section .catalog-list a:not(.btn):hover,
.section .catalog-list a:not(.btn):focus-visible {
  color: #f4f7fb;
  background: color-mix(in srgb, var(--cat) 12%, transparent);
}
.catalog-list a:hover .fa-arrow-right,
.catalog-list a:focus-visible .fa-arrow-right {
  opacity: 1;
  transform: none;
}
.catalog-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(42, 48, 56, 0.9);
  color: var(--cat) !important;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.catalog-more .fa-arrow-right {
  font-size: 0.78rem;
  transition: transform 0.15s;
}
.catalog-more:hover .fa-arrow-right,
.catalog-more:focus-visible .fa-arrow-right { transform: translateX(4px); }
.landing-catalog { margin-top: 2.25rem; }
.landing-catalog > h2 { margin-bottom: 1rem; }
.landing-page .catalog-dir { margin: 0; }
.landing-page .catalog-list { padding-left: 0; }
.landing-page .catalog-list li { margin-bottom: 0; }
.landing-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.35rem 0 0; }
@media (max-width: 980px) {
  .catalog-dir { grid-template-columns: 1fr; gap: 1rem; }
  .catalog-dir-single .catalog-body { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-col, .catalog-list a, .catalog-list a .fa-arrow-right, .catalog-more .fa-arrow-right, .catalog-cover img { transition: none; }
  .catalog-col:hover { transform: none; }
  .catalog-col:hover .catalog-cover img { transform: none; }
}

/* Szolgáltatások — cinematic sáv + számozott instrument-panel lista */
.section.services { padding: 0; background: var(--light); }
.services-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 22rem;
  padding: 4.75rem 0 3.75rem;
}
.services-hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 20% 45%;
}
.services-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.72) 0%, rgba(13, 17, 23, 0.78) 55%, rgba(13, 17, 23, 0.94) 100%),
    linear-gradient(90deg, rgba(13, 17, 23, 0.55) 0%, transparent 42%);
}
.services-hero .container {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
}
.services-hero h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4f7fb;
}
.services-hero h2::after {
  content: '';
  display: block;
  width: 4.5rem;
  height: 2px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.services-lead {
  margin: 0 0 0.85rem;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.5;
  color: #e8edf3;
}
.services-hero p { margin: 0 0 0.7rem; color: var(--text); }
.services-hero p:last-child { margin-bottom: 0; }
.services-body {
  position: relative;
  padding: 2.75rem 0 3.75rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 212, 255, 0.07), transparent 62%),
    var(--light);
}
.services-list-intro {
  margin: 0 0 1.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand) 72%, #d5dbe3);
}
.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.service-item {
  --cat: var(--brand);
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 1.05rem 1.15rem 1rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(22, 27, 34, 0.2) 0%, transparent 42%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-item:nth-child(3n+1) { --cat: var(--green); }
.service-item:nth-child(3n+2) { --cat: var(--brand); }
.service-item:nth-child(3n) { --cat: #e2b657; }
.service-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cat), transparent);
  opacity: 0.85;
}
.service-item::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cat) 0%, transparent 68%);
  opacity: 0.07;
  pointer-events: none;
}
.service-item:hover {
  border-color: color-mix(in srgb, var(--cat) 55%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cat) 22%, transparent), 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}
.service-index {
  position: absolute;
  top: 0.45rem;
  right: 0.75rem;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cat);
  opacity: 0.14;
  pointer-events: none;
}
.service-item p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.05rem 2.4rem 0.05rem 0.75rem;
  border-left: 2px solid color-mix(in srgb, var(--cat) 70%, var(--border));
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--text);
}
.services-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin: 1.6rem 0 0;
}
.services-shots figure {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.services-shots figure::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.7;
}
.services-shots figure:hover {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent), 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}
.services-shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}
.services-shots figure:hover img { transform: scale(1.04); }
.services-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.85rem;
}
.services-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.services-actions .btn .fa-arrow-right {
  font-size: 0.82rem;
  transition: transform 0.15s;
}
.services-actions .btn:hover .fa-arrow-right,
.services-actions .btn:focus-visible .fa-arrow-right { transform: translateX(4px); }
@media (max-width: 980px) {
  .services-grid,
  .services-shots { grid-template-columns: 1fr; }
  .services-hero { min-height: 0; padding: 3.5rem 0 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .service-item, .services-shots figure, .services-shots img, .services-actions .btn .fa-arrow-right { transition: none; }
  .service-item:hover, .services-shots figure:hover { transform: none; }
  .services-shots figure:hover img { transform: none; }
}

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.category-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; text-decoration: none; color: inherit; transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
.category-card:hover { box-shadow: 0 0 20px rgba(0,212,255,0.12); transform: translateY(-2px); border-color: var(--brand); }
.category-card h3 { margin: 0.25rem 0 0; color: #f0f3f7; }
.category-card p { margin: 0; color: var(--steel); font-size: 0.9rem; }
/* 3 egymásra csúsztatott fotó */
.category-photos { display: flex; height: 96px; align-items: center; margin-bottom: 0.25rem; }
.category-photos img {
  width: 96px; height: 96px; object-fit: contain; background: #0f141b;
  border: 2px solid var(--border); border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  flex: 0 0 auto;
}
.category-photos img + img { margin-left: -28px; }
.category-photos img:first-child { z-index: 3; }
.category-photos img:nth-child(2) { z-index: 2; }
.category-photos img:nth-child(3) { z-index: 1; }
/* egyetlen fotó esetén: teljes szélesség, mint régen */
.category-photos.single img { width: 100%; height: 140px; margin-left: 0 !important; }
/* Megtekintés gomb: mint a termékkártyákon, a kártya aljára tapasztva */
.category-card { justify-content: space-between; }
.category-card .btn-outline { margin-top: auto; align-self: flex-start; }
.category-card:hover .btn-outline { background: var(--brand); border-color: var(--brand); color: #06222b; }

/* Termékek */
.category-title { margin: 2.25rem 0 1rem; font-size: 1.35rem; border-bottom: 2px solid var(--brand); display: inline-block; padding-bottom: 0.25rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; position: relative; transition: border-color 0.15s, box-shadow 0.15s; }
.product-card:hover { border-color: var(--brand); box-shadow: 0 0 20px rgba(0,212,255,0.12); }
/* a kártya egésze kattintható: az átfedő link a Részletek gombbal ugyanoda mutat */
.product-card .card-link { position: absolute; inset: 0; z-index: 1; }
.product-card a, .product-card .btn { position: relative; z-index: 2; }
/* hovering the card highlights the Részletek button */
.product-card:hover .btn-outline { background: var(--brand); border-color: var(--brand); color: #06222b; }
.product-card h2, .product-card h3, .product-card h4 { margin: 0; font-size: 1.05rem; }
.product-card img { border-radius: 6px; height: 170px; object-fit: contain; background: #fff; }
.short-desc { font-size: 0.9rem; color: var(--steel); flex: 1; }
/* ERP-ből jövő termék-HTML (leírás): táblák és kiemelt sorok a téma színeiben —
   az export inline stílusait a scripts/clean_product_html.py távolítja el */
.long-desc table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.92rem; }
.long-desc th, .long-desc td { padding: 0.55rem 0.9rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.long-desc th { color: var(--steel); font-weight: 600; background: var(--dark-2); }
.long-desc tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.02); }
.long-desc strong { color: var(--text); }
.long-desc p { margin: 0 0 1rem; }
/* Google Maps iframe: keret nélkül (volt: inline style="border:0") */
.map-embed { border: 0; display: block; }
/* Megépült rendszerek galéria (#28) — JSON-vezérelt, üresen rejtett */
.gallery-sub { color: var(--steel); margin: 0.5rem 0 1.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery-item { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; display: block; }
.gallery-item figcaption { padding: 0.9rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.gallery-item strong { color: var(--text); }
.gallery-loc { color: var(--brand); font-size: 0.85rem; }
.gallery-desc { color: var(--steel); font-size: 0.9rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-item img { height: 220px; } }
.price { font-size: 1.15rem; font-weight: 700; color: var(--green); margin: 0; }
/* ár + gomb mindig a kártya alján: a felette lévő leírás nyeli a fennmaradó helyet */
.product-card .short-desc { flex: 1; }
.product-card .price { margin-top: auto; }
.product-card .btn-outline { margin-top: 0.75rem; }
.price-lg { font-size: 1.6rem; }
.vat-note { font-size: 0.8rem; font-weight: 400; color: var(--steel); }

/* Keresés */
.list-meta { color: var(--steel); }
.search-form { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.search-form input[type="search"] { flex: 1; min-width: 220px; max-width: 100%; padding: 0.6rem 0.9rem; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: var(--radius); }
.search-form select { max-width: 100%; padding: 0.6rem; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: var(--radius); }
@media (max-width: 640px) {
  .search-form { flex-direction: column; align-items: stretch; }
  .search-form input[type="search"],
  .search-form select { width: 100%; min-width: 0; }
  .search-form .btn { align-self: flex-start; }
}

/* Termék részletek */
.section-tight { padding: 1.75rem 0; }
.product-detail { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 2.5rem; align-items: start; }
.blog-list { display: grid; gap: 1.25rem; }
.blog-card { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.blog-card h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.blog-body { line-height: 1.7; }
.blog-body h2 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
  color: #f0f3f7;
}
.blog-body h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.6rem;
  color: #f0f3f7;
}
.blog-body p { margin: 0 0 1rem; }
.blog-body ul,
.blog-body ol { margin: 0 0 1.1rem 1.25rem; padding: 0; }
.blog-body li { margin: 0 0 0.4rem; }
.blog-body a { color: var(--brand); }
.blog-body a:hover { text-decoration: underline; }
.compare-wrap { overflow-x: auto; }
.compare-table { min-width: 640px; }
.compare-table th a { color: inherit; }
.compare-sub { margin-top: 2.5rem; }
.detail-gallery { display: flex; flex-direction: column; gap: 0.75rem; }
.detail-stage-wrap { position: relative; }
.detail-stage {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  font: inherit;
  color: inherit;
}
.detail-stage:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}
.detail-stage-zoom {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 17, 23, 0.78);
  color: #f0f3f7;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.detail-stage-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.72);
  color: #f0f3f7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 212, 255, 0.18);
  backdrop-filter: blur(8px);
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.detail-stage-prev { left: 0.7rem; }
.detail-stage-next { right: 0.7rem; }
.detail-stage-nav:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(13, 17, 23, 0.88);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4), 0 0 22px rgba(0, 212, 255, 0.4);
  transform: translateY(-50%) scale(1.06);
}
.detail-stage-nav:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.detail-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 0.35rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.detail-thumbs::-webkit-scrollbar { display: none; }
.detail-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  font: inherit;
}
.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.detail-thumb:hover { border-color: var(--brand); }
.detail-thumb.is-active,
.detail-thumb[aria-current="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
}
.detail-thumb:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.detail-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(13, 17, 23, 0.94);
  color: var(--text);
  z-index: 1300;
}
.detail-lightbox::backdrop {
  background: #0d1117;
  opacity: 0.96;
}
.detail-lightbox-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: calc(100vw - 9rem);
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}
.detail-lightbox-close,
.detail-lightbox-prev,
.detail-lightbox-next {
  position: absolute;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: #f0f3f7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.detail-lightbox-close:hover,
.detail-lightbox-prev:hover,
.detail-lightbox-next:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.detail-lightbox-close:focus-visible,
.detail-lightbox-prev:focus-visible,
.detail-lightbox-next:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.detail-lightbox-close { top: 1rem; right: 1rem; }
.detail-lightbox-prev { left: 0.85rem; top: 50%; transform: translateY(-50%); }
.detail-lightbox-next { right: 0.85rem; top: 50%; transform: translateY(-50%); }
.detail-lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #f0f3f7;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
@media (max-width: 720px) {
  .detail-thumb { flex-basis: 56px; width: 56px; height: 56px; }
  .detail-stage-nav { width: 2.25rem; height: 2.25rem; }
  .detail-stage-prev { left: 0.45rem; }
  .detail-stage-next { right: 0.45rem; }
  .detail-lightbox-image {
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 7.25rem);
  }
  .detail-lightbox-prev { left: 0.35rem; }
  .detail-lightbox-next { right: 0.35rem; }
}
.category-breadcrumb { color: var(--steel); font-size: 0.9rem; }
.category-breadcrumb a { color: var(--steel); }
.category-breadcrumb a:hover { color: var(--brand); }
.sku-note { color: var(--steel); font-size: 0.9rem; }
.detail-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { text-align: left; padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--border); }
.specs-table th { color: var(--steel); font-weight: 600; width: 40%; }
.specs-table tr:nth-child(odd) { background: var(--card); }
.download-list { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.download-list li { border-bottom: 1px solid var(--border); }
.download-list li:first-child { border-top: 1px solid var(--border); }
.download-list a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.15rem; color: var(--text); text-decoration: none;
}
.download-list a:hover { color: var(--brand); }
.download-list svg { color: var(--brand); flex-shrink: 0; }
@media (max-width: 720px) { .product-detail { grid-template-columns: 1fr; } }

/* Kapcsolat */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-social, .contact-dnb { margin: 0.85rem 0 0; }
.contact-facebook, .footer-facebook {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--brand); text-decoration: none; font-weight: 600;
}
.contact-facebook:hover, .footer-facebook:hover { color: var(--text); }
.icon-facebook { flex-shrink: 0; }
.contact-dnb img {
  display: block; max-width: 180px; height: auto;
  border: 1px solid var(--border); background: #fff;
}
.contact-form label { display: block; margin-bottom: 1rem; }
.contact-either-note { margin: -0.35rem 0 1rem; color: var(--steel); font-size: 0.9rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: var(--radius); font: inherit;
}
.flash { padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 600; }
.flash-success { background: rgba(63,217,122,0.12); color: var(--green); }
.flash-error { background: rgba(255,99,99,0.12); color: #ff7b7b; }
.flash-info { background: rgba(128,171,215,0.14); color: var(--brand-dark, #5d92c7); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Térkép */
.map-section { line-height: 0; }
.map-section iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Lábléc — extra aljpaddal a lebegő CTA gombok ne takarják a linkeket */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(0, 212, 255, 0.09), transparent 58%),
    radial-gradient(ellipse 50% 40% at 92% 100%, rgba(63, 217, 122, 0.05), transparent 60%),
    var(--dark);
  color: var(--steel);
  padding: 3.75rem 0 8.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--green), transparent);
  opacity: 0.85;
  pointer-events: none;
}
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer a:not(.btn) {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer a:not(.btn):hover,
.site-footer a:not(.btn):focus-visible { color: var(--brand); }
.site-footer a:not(.btn):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(0, 0.85fr) minmax(0, 0.95fr);
  gap: 2.6rem 2.1rem;
  align-items: start;
}
.footer-brand { min-width: 0; }
.footer-logo-link { display: inline-flex; }
.footer-logo {
  height: 72px;
  width: auto;
}
.footer-company {
  margin: 0.95rem 0 0;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.4;
  color: #f0f3f7;
}
.footer-tagline {
  margin: 0.55rem 0 0;
  max-width: 24rem;
  line-height: 1.55;
  color: var(--text);
}
.footer-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.35rem; }
.footer-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.site-footer .btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.site-footer .btn-outline:hover,
.site-footer .btn-outline:focus-visible {
  background: var(--brand);
  border-color: var(--brand);
  color: #06222b;
}
.footer-cta .btn .fa-arrow-right {
  font-size: 0.82rem;
  transition: transform 0.15s;
}
.footer-cta .btn:hover .fa-arrow-right,
.footer-cta .btn:focus-visible .fa-arrow-right { transform: translateX(4px); }

.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0f3f7;
}
.footer-heading::after {
  content: '';
  display: block;
  width: 2.6rem;
  height: 2px;
  margin: 0.7rem 0 0;
  background: linear-gradient(90deg, var(--brand), transparent);
}

.footer-contact,
.footer-links,
.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-contact > li > a,
.footer-contact > li > span {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
  line-height: 1.45;
}
.footer-contact > li > a:hover,
.footer-contact > li > a:focus-visible { color: var(--brand); }
.footer-contact .fa-solid,
.footer-contact .icon-facebook,
.footer-contact .icon-mobile {
  flex: none;
  width: 1rem;
  margin-top: 0.22rem;
  color: var(--brand);
  font-size: 0.92rem;
  text-align: center;
}
.footer-phone {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand) !important;
}
.footer-phone:hover,
.footer-phone:focus-visible { color: #fff !important; }
.footer-hours-label {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--steel);
}

.footer-links { display: flex; flex-direction: column; gap: 0.15rem; }
.footer-links a {
  display: inline-block;
  padding: 0.28rem 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  padding-right: 8.5rem;
  border-top: 1px solid var(--border);
}
.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--steel);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--steel);
}

@media (max-width: 1080px) {
  .footer-main { grid-template-columns: 1fr 1fr 1fr; gap: 2.15rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding-right: 7rem; }
}
@media (max-width: 640px) {
  .site-footer { padding: 2.75rem 0 7.5rem; }
  .footer-main { grid-template-columns: 1fr; gap: 1.85rem; }
  .footer-logo { height: 60px; }
  .footer-bottom { padding-right: 6.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer a:not(.btn),
  .footer-cta .btn .fa-arrow-right { transition: none; }
  .footer-cta .btn:hover .fa-arrow-right,
  .footer-cta .btn:focus-visible .fa-arrow-right { transform: none; }
}

/* ---------------- Termékajánló varázsló ---------------- */
.wiz-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--border, #2a3038);
  transition: background 0.2s;
}
.wiz-dot.current { background: var(--brand, #00d4ff); box-shadow: 0 0 8px rgba(0, 212, 255, 0.5); }
.wiz-dot.done { background: var(--brand-dark, #00a8cc); }
.wiz-question { font-size: 1.45rem; margin: 0.5rem 0 1.25rem; }
.wiz-options { display: flex; flex-direction: column; gap: 0.65rem; }
.wiz-option {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius, 10px);
  border: 1px solid var(--border, #2a3038);
  background: var(--card, #161b22);
  color: var(--text, #d5dbe3);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.wiz-option:hover { border-color: var(--brand, #00d4ff); }
.wiz-option.selected {
  border-color: var(--brand, #00d4ff);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--brand, #00d4ff);
}
.wiz-nav { margin-top: 1.25rem; display: flex; gap: 0.6rem; }
/* egyetlen navigációs sor a lépések alatt: Vissza + Újrakezdés balra, Tovább jobbra */
#wiz-next { margin-left: auto; }

/* ---------------- Cookie hozzájárulás ---------------- */
.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookie-consent[hidden] { display: none; }
.cookie-card {
  pointer-events: auto;
  max-width: 560px;
  background: var(--card, #161b22);
  border: 1px solid var(--border, #2a3038);
  border-radius: var(--radius, 10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  padding: 1.25rem 1.4rem;
  color: var(--text, #d5dbe3);
}
.cookie-title { margin: 0 0 0.5rem; font-weight: 700; color: #f0f3f7; }
.cookie-text { margin: 0 0 0.75rem; font-size: 0.92rem; line-height: 1.55; }
.cookie-details { margin-bottom: 0.9rem; }
.cookie-details summary { cursor: pointer; font-size: 0.9rem; color: var(--brand, #00d4ff); }
.cookie-opt { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; margin-top: 0.5rem; }
.cookie-opt input:disabled { opacity: 0.7; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-btn {
  padding: 0.55rem 1rem;
  border-radius: var(--radius, 10px);
  border: 1px solid var(--border, #2a3038);
  background: transparent;
  color: var(--text, #d5dbe3);
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn:hover { border-color: var(--brand, #00d4ff); color: var(--brand, #00d4ff); }
.cookie-btn.primary {
  background: var(--brand, #00d4ff);
  border-color: var(--brand, #00d4ff);
  color: #06222c;
}
.cookie-btn.primary:hover { background: var(--brand-dark, #00a8cc); color: #fff; }
@media (max-width: 640px) {
  .cookie-consent { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
}

/* ---------------- 404 oldal ---------------- */
.error-404 .code {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand, #00d4ff);
  text-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
  margin-bottom: 0.5rem;
}
.error-404 .lead { max-width: 46rem; color: var(--text); }
.error-404-links { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------------- Lebegő CTA (hívás / ajánlatkérés) ---------------- */
.floating-cta {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 900; /* a Széchenyi logó (1000) fölött maradjon a légzés */
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
/* Amíg a cookie-banner látszik, a lebegő gombok elugranak (ne takarják a kártyákat). */
body.cookie-banner-open .floating-cta {
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  visibility: hidden;
}
.floating-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.floating-cta-btn:hover { transform: translateY(-2px); }
.floating-cta-btn.call {
  background: var(--card, #161b22);
  color: var(--brand, #00d4ff);
  border: 1px solid var(--border, #2a3038);
}
.floating-cta-btn.call:hover { border-color: var(--brand, #00d4ff); }
.floating-cta-btn.quote {
  background: var(--brand, #00d4ff);
  color: #06222c;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}
.floating-cta-btn.quote:hover { background: var(--brand-dark, #00a8cc); color: #fff; }
@media (max-width: 640px) {
  .floating-cta-btn span { display: none; } /* mobilon csak ikon, ne takarjon */
  .floating-cta-btn { padding: 0.75rem; }
}

/* ---------------- Lebegő Széchenyi 2020 logó (mint az eredeti oldalon) ---------------- */
#lebegosz2020 { position: fixed; right: 0; bottom: 0; z-index: 1000; display: inline-block; }
#lebegosz2020 img { height: 120px; width: auto; transition: height 0.2s; }
#lebegosz2020:hover img { height: 200px; }
@media (max-width: 992px) {
  #lebegosz2020 img, #lebegosz2020:hover img { height: 100px; }
}

/* ---------------- GYIK ---------------- */
.faq .container { max-width: 860px; }
/* főoldali GYIK szekció: ugyanaz a keskeny szélesség */
.container.faq-container { max-width: 860px; }
.faq-more { margin: 0.75rem 0 0; }
.faq h1 { margin-bottom: 1.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--card, #fff);
  border: 1px solid var(--border, #e8eef6);
  border-radius: var(--radius, 10px);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  color: #f0f3f7;
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand, #80abd7);
  transition: transform 0.15s;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item[open] summary { color: var(--brand-dark, #5d92c7); }
.faq-answer { padding: 0 1.1rem 1rem; color: var(--text, #2d3a47); line-height: 1.65; }
.faq-answer p { margin: 0; }
.faq-note { margin-top: 1.5rem; color: var(--text, #2d3a47); line-height: 1.65; }

/* ---------------- Statikus információs oldalak ---------------- */
.container.narrow { max-width: 860px; }
.page-static h1 { margin-bottom: 1.25rem; }
.page-static h2 { margin-top: 2rem; font-size: 1.3rem; }
.page-static p, .page-static li { line-height: 1.7; }
.page-static ul { padding-left: 1.2rem; }
.page-static li { margin-bottom: 0.4rem; }
.contact-form .gdpr-check { display: flex; gap: 0.65rem; align-items: flex-start; }
.contact-form .gdpr-check input { width: auto; margin-top: 0.3rem; flex-shrink: 0; }
.privacy-lead { font-size: 1.02rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.legal-table td { padding: 0.5rem 0.85rem 0.5rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.info-toc { padding-left: 1.2rem; line-height: 2; }
.info-toc a { color: var(--brand, #80abd7); }
.palyazat-lead { font-size: 1.05rem; }
.palyazat-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; margin: 1.25rem 0; }
.palyazat-meta dt { font-weight: 600; color: var(--brand-dark, #5d92c7); white-space: nowrap; }
.palyazat-meta dd { margin: 0; }
.page-static .palyazat-meta { grid-template-columns: minmax(8rem, 14rem) 1fr; }
.page-static .palyazat-meta dt { white-space: normal; }
@media (max-width: 640px) {
  .palyazat-meta,
  .page-static .palyazat-meta { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .palyazat-meta dt { white-space: normal; }
  .palyazat-meta dd { margin: 0 0 0.7rem; }
}
