.pl-mega-menu {
  --pl-menu-text: #171717;
  --pl-menu-muted: #6b625b;
  --pl-menu-border: rgba(23, 23, 23, 0.1);
  --pl-menu-bg: rgba(255, 255, 255, 0.98);
  --pl-menu-soft: #f6f1ea;
  --pl-menu-accent: #b8956f;
  --pl-menu-shadow: 0 24px 70px rgba(23, 23, 23, 0.16);
  color: var(--pl-menu-text);
  display: block;
  font-family: inherit;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  position: relative;
  width: 100%;
  z-index: 9999;
}

.pl-mega-menu * {
  box-sizing: border-box;
}

.pl-mega-menu__panel {
  background: linear-gradient(135deg, rgba(246, 241, 234, 0.9), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--pl-menu-border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(23, 23, 23, 0.09);
  overflow: hidden;
  padding: 22px;
  pointer-events: auto;
  position: relative;
  width: 100%;
}

.pl-mega-menu__panel::before {
  background:
    radial-gradient(circle at 18% 6%, rgba(184, 149, 111, 0.16), transparent 32%),
    linear-gradient(120deg, rgba(246, 241, 234, 0.5), rgba(255, 255, 255, 0));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.pl-mega-menu__panel > * {
  position: relative;
  z-index: 1;
}

.pl-mega-menu__top {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.pl-mega-menu__eyebrow {
  color: var(--pl-menu-accent);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.pl-mega-menu__title {
  color: var(--pl-menu-text);
  font-family: "Marcellus", Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.pl-mega-menu__panel-logo {
  align-items: center;
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.pl-mega-menu .pl-mega-menu__panel-logo > img {
  display: block;
  height: auto !important;
  max-height: 105px !important;
  max-width: 280px !important;
  object-fit: contain;
  width: 280px !important;
}

.pl-mega-menu__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.pl-mega-menu__home,
.pl-mega-menu__all {
  border-bottom: 1px solid currentColor;
  color: var(--pl-menu-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.pl-mega-menu__layout {
  display: block;
}

.pl-mega-menu__tabs {
  background: var(--pl-menu-soft);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  padding: 8px;
}

.pl-mega-menu__tab {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--pl-menu-muted);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.pl-mega-menu__tab span {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.72;
}

.pl-mega-menu__tab.is-active,
.pl-mega-menu__tab:hover,
.pl-mega-menu__tab:focus {
  background: #fff;
  color: var(--pl-menu-text);
  outline: 0;
}

.pl-mega-menu__content {
  min-width: 0;
}

.pl-mega-menu__city {
  display: none;
}

.pl-mega-menu__city.is-active {
  display: block;
}

.pl-mega-menu__city-head {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pl-mega-menu__city-title {
  color: var(--pl-menu-text);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.pl-mega-menu__city-note {
  color: var(--pl-menu-muted);
  font-size: 13px;
  margin: 0;
}

.pl-mega-menu__cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pl-mega-menu__card {
  background: #fff;
  border: 1px solid var(--pl-menu-border);
  border-radius: 14px;
  color: inherit;
  min-width: 0;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pl-mega-menu__card:hover,
.pl-mega-menu__card:focus {
  border-color: rgba(184, 149, 111, 0.45);
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.12);
  color: inherit;
  outline: 0;
  transform: translateY(-2px);
}

.pl-mega-menu__image {
  aspect-ratio: 4 / 3;
  background: var(--pl-menu-soft);
  display: block;
  overflow: hidden;
}

.pl-mega-menu__image img,
.pl-mega-menu__img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.pl-mega-menu__card:hover img,
.pl-mega-menu__card:focus img {
  transform: scale(1.045);
}

.pl-mega-menu__body {
  display: block;
  padding: 10px 11px 12px;
}

.pl-mega-menu__name {
  color: var(--pl-menu-text);
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 4px;
}

.pl-mega-menu__meta {
  color: var(--pl-menu-muted);
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.pl-mega-menu__badge {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: var(--pl-menu-text);
  display: none;
  font-size: 11px;
  font-weight: 900;
  left: 8px;
  padding: 5px 8px;
  position: absolute;
  top: 8px;
  z-index: 2;
}

.pl-mega-menu__card.is-current .pl-mega-menu__badge {
  display: inline-flex;
}

@media (max-width: 980px) {
  .pl-mega-menu {
    width: 100%;
  }

  .pl-mega-menu__panel {
    border-radius: 16px;
    padding: 18px;
  }

  .pl-mega-menu__top {
    align-items: center;
    display: flex;
    gap: 10px;
  }

  .pl-mega-menu .pl-mega-menu__panel-logo > img {
    max-height: 48px !important;
    max-width: 120px !important;
    width: 120px !important;
  }

  .pl-mega-menu__actions {
    justify-content: flex-end;
  }

  .pl-mega-menu__title {
    font-size: 24px;
  }

  .pl-mega-menu__tabs {
    margin-bottom: 16px;
    overflow-x: auto;
    padding: 7px;
    flex-wrap: nowrap;
  }

  .pl-mega-menu__tab {
    flex: 0 0 auto;
    gap: 8px;
    min-height: 38px;
    white-space: nowrap;
  }

  .pl-mega-menu__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pl-mega-menu__cards {
    grid-template-columns: 1fr;
  }

  .pl-mega-menu__card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .pl-mega-menu__image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 92px;
  }
}
