/* Szikra — csak az, amit a natív Bricks-vezérlők nem fednek.
   A gyermektémában a bricks-frontend után kell betölteni. */

html {
  overflow-x: visible;
}

#brx-content {
  overflow-x: clip;
}

#brx-header,
header.brx-header,
.crt-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f6f1ea;
}

.crt-menu-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.crt-hamburger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.crt-hamburger .crt-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: #0a0a0a;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.crt-menu-check:checked + .crt-hamburger .crt-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.crt-menu-check:checked + .crt-hamburger .crt-bar:nth-child(2) {
  opacity: 0;
}

.crt-menu-check:checked + .crt-hamburger .crt-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.crt-mobile-panel {
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 8px 0 16px;
}

.crt-menu-check:checked ~ .crt-mobile-panel {
  display: flex;
}

.crt-mobile-panel a {
  display: block;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.12);
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  color: #1a1614;
  text-decoration: none;
}

.crt-mobile-panel a.crt-mobile-cta {
  width: fit-content;
  margin: 20px auto 8px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .crt-nav-row {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 16px;
  }

  .crt-mobile-nav-wrap,
  .crt-mobile-nav-wrap.brxe-html {
    display: contents;
  }

  .crt-nav-desktop,
  .crt-nav-cta {
    display: none !important;
  }

  .crt-hamburger {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
  }

  .crt-mobile-panel {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (min-width: 992px) {
  .crt-hamburger,
  .crt-mobile-panel,
  .crt-menu-check {
    display: none !important;
  }
}

:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 3px;
}

.crt-card {
  transition: border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crt-card:hover {
  border-color: #5b21b6;
}

.crt-image-wrap img,
img.crt-image,
.brxe-image img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.brxe-image img {
  height: 100%;
}

@media (max-width: 478px) {
  .brxe-section .brxe-button {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crt-card {
    transition: none;
  }
}
