:root {
  --porto-blue: #1f2a44;
  --porto-blue-dark: #162033;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.92);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  background: var(--porto-blue-dark);
  touch-action: manipulation;
}

body {
  width: 100%;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--white-soft);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

button,
a,
img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--porto-blue);
}

.top-logo {
  display: flex;
  justify-content: center;
  margin: 72px 0 40px;
}

.top-logo img {
  height: 170px;
  max-width: 90%;
}

.home,
.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.language-title {
  font-size: 24px;
  font-weight: 400;
  margin: 40px 0;
}

.simple-buttons {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.simple-buttons a,
.simple-buttons button {
  all: unset;
  width: 100%;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease,
              color 0.2s ease,
              transform 0.15s ease;
}

.simple-buttons a:active,
.simple-buttons button:active {
  transform: scale(0.97);
}

.simple-buttons button::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: var(--porto-blue);
  transition: width 0.25s ease, left 0.25s ease;
}

.simple-buttons button.active {
  background: var(--white);
  color: var(--porto-blue);
}

.simple-buttons button.active::after {
  width: 100%;
  left: 0;
}

.btn-title {
  font-size: 18px;
}

.btn-note {
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
}

.menu-wrapper {
  width: 100%;
  margin: 32px 0 56px;
}

.menu-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 16px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.menu-images.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 24px;
}

.menu-images img {
  width: 100%;
  border-radius: 8px;
  cursor: zoom-in;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.menu-images img:active {
  transform: scale(0.98);
}

.image-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.image-viewer.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-viewer img {
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.96);
  transition: transform 0.25s ease;
  margin-top: auto;
  margin-bottom: auto;
}

.image-viewer.active img {
  transform: scale(1);
}

.image-viewer.long {
  justify-content: flex-start;
  padding: 80px 0 60px;
}

.image-viewer.long img {
  width: 72%;
  max-width: 340px;
  height: auto;
  max-height: none;
  margin-bottom: 40px;
}

.back-simple,
.viewer-close {
  position: fixed;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.15s ease;
}

.back-simple:active,
.viewer-close:active {
  transform: scale(0.92);
}

.back-simple {
  top: 18px;
  left: 18px;
}

.viewer-close {
  top: 18px;
  right: 18px;
}

.bottom-bar {
  background: transparent;
  padding: 32px 0 40px;
  display: flex;
  justify-content: center;
}

.bottom-socials {
  display: flex;
  gap: 32px;
}

.bottom-socials a {
  color: var(--white);
  font-size: 22px;
  opacity: 0.6;
  transition: opacity 0.2s ease,
              transform 0.2s ease;
}

.bottom-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .top-logo {
    margin: 60px 0 32px;
  }

  .top-logo img {
    height: 140px;
  }

  .btn-title {
    font-size: 17px;
  }

  .btn-note {
    font-size: 11px;
  }

  .bottom-bar {
    padding: 28px 0 36px;
  }
}
