@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");

:root {
  --bg: #050608;
  --text-main: #f6ead0;
  --hgap: 0;
  --vgap: 0;
  --animation-duration: 350ms;
  --header-left-offset: clamp(120px, 8vw, 170px);
  --header-right-offset: clamp(110px, 7vw, 165px);
  --header-tabs-gap: 16px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(1200px 700px at 68% 56%, rgba(27, 35, 101, 0.22), transparent 65%),
    radial-gradient(900px 500px at 18% 72%, rgba(141, 42, 27, 0.2), transparent 70%),
    var(--bg);
  font-family: "Montserrat", sans-serif;
}

.shell {
  width: min(1320px, 92vw);
  margin-inline: auto;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px 0 36px;
}

.brand {
  width: clamp(90px, 7.8vw, 138px);
  margin-left: var(--header-left-offset);
  display: inline-block;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-right: var(--header-right-offset);
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--header-tabs-gap);
}

.tab {
  display: inline-block;
  width: clamp(82px, 5.9vw, 115px);
  aspect-ratio: 2 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 0;
  text-decoration: none;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

.tab:hover,
.tab.is-active {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.tab img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.language-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.language {
  width: 68px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
}

.language:hover,
.language.is-active {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.language img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--vgap) var(--hgap);
  padding-bottom: 36px;
}

.menu-card {
  position: relative;
  transition-property: all;
  transition-duration: var(--animation-duration);
  transition-timing-function: ease;
  transition-delay: 0s;
  overflow: hidden;
  aspect-ratio: 1000 / 1440;
  border: 0;
}

.e-gallery-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  transform-origin: center top;
  transition-behavior: normal;
  transition-property: all;
  transition-duration: var(--animation-duration);
  transition-timing-function: ease;
  transition-delay: 0s;
  will-change: transform, filter;
}

.e-gallery--lazyload .e-gallery-image:not(.e-gallery-image-loaded) {
  filter: opacity(0);
  transform: scale(0.5);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2200;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.modal.show {
  display: flex;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  background-color: #000;
  width: min(1000px, 90vw);
  max-height: 90vh;
  margin: auto;
  border: 6px solid #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.modal-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .e-gallery-image {
    transition: none;
    transform: none;
    filter: none;
  }

  .modal.show {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  main.shell {
    width: min(1320px, 98vw);
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    padding-top: 22px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .brand {
    margin-left: 0;
  }

  .actions {
    margin-right: 0;
  }
}

@media (max-width: 680px) {
  .brand {
    width: 71px;
  }

  .menu-tabs {
    width: 100%;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .tab {
    width: auto;
    flex: 1 1 0;
    max-width: 96px;
  }

  .language {
    width: 56px;
  }
}
