* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: #102c54;
  background-color: #eeeeee;
  background-image: url("assets/background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: clamp(44px, 7vw, 92px) 0 clamp(56px, 7vw, 96px);
}

.card-shell {
  width: min(100%, 704px);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 520ms ease-out both;
}

.logo {
  width: clamp(182px, 34vw, 325px);
  height: auto;
  display: block;
  margin-bottom: clamp(48px, 7vw, 78px);
}

.name-block,
.buttons,
.photo-grid {
  width: min(calc(100% - 32px), 704px);
}

.name-block {
  margin-bottom: clamp(44px, 6vw, 72px);
}

.line {
  display: block;
  width: 100%;
  height: 2px;
  background: #ff6e33;
}

h1 {
  margin: 18px 0 16px;
  color: #102c54;
  font-size: clamp(16px, 4.05vw, 32px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: clamp(0.1em, 0.8vw, 0.22em);
  text-align: center;
}

.buttons {
  display: grid;
  gap: clamp(22px, 5vw, 45px);
  margin-bottom: clamp(48px, 7vw, 78px);
}

.button-link {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform 180ms ease, filter 180ms ease;
}

.button-link img {
  width: 100%;
  height: auto;
  display: block;
}

.button-link:hover,
.button-link:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(16, 44, 84, 0.18));
}

.button-link:active {
  transform: translateY(0) scale(0.995);
  filter: drop-shadow(0 5px 10px rgba(16, 44, 84, 0.12));
}

.photo-grid {
  height: auto;
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .name-block,
  .buttons,
  .photo-grid {
    width: calc(100% - 22px);
  }

  h1 {
    font-size: clamp(14px, 4.3vw, 17px);
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-shell,
  .button-link {
    animation: none;
    transition: none;
  }
}
