html {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: Tahoma, Geneva, Helvetica, Arial, sans-serif;
  color: #000080;
  background-color: #60A0FF;
  background-image: url("images/bgimage.jpg");
  background-repeat: repeat;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 48px;
}

.header {
  text-align: center;
  margin-bottom: 34px;
}

.header-image {
  display: block;
  width: min(700px, 100%);
  height: auto;
  margin: 0 auto 18px;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: #000080;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 30px;
}

.menu-button {
  min-height: 120px;
  padding: 24px 18px;
  border: 3px solid rgba(255,255,255,.42);
  border-radius: 28px;
  background: rgba(42, 103, 198, .34);
  color: #000080;
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.menu-button:hover,
.menu-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(0, 0, 128, .10);
  border-color: rgba(255,255,255,.78);
  outline: none;
}

.menu-button strong {
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.15;
  color: #000080;
}

.menu-button span {
  margin-top: 6px;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: #000080;
}

@media (max-width: 760px) {
  .page {
    width: min(94%, 560px);
    padding-top: 10px;
  }

  .header {
    margin-bottom: 24px;
  }

  .button-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .menu-button {
    min-height: 88px;
    border-radius: 22px;
    padding: 18px 16px;
  }
}


.counter-spacer {
  height: 230vh;
}

.visitor-counter {
  text-align: center;
  padding: 18px 0 28px;
  font-size: 0.9rem;
  color: rgba(0, 0, 128, 0.60);
}

@media (max-width: 760px) {
  .counter-spacer {
    height: 220vh;
  }
}
