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

html,
body {
  height: 100%;
}

body {
  font-family: "Funnel Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: #000;
}

/* Page layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 4vh, 32px) 8px;
}

/* Top text */
.top-line {
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.0em;
  font-size: clamp(45px, 10vw, 60px);
  max-width: 100%;
  word-break: break-word;
}

/* Center name block */
.center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  width: 100%;
  padding: 0 4px;
}

.name {
  position: relative;
  text-align: center;
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.02em;
  font-size: clamp(80px, 22vw, 220px);
  max-width: 100%;
}

.name .line {
  display: block;
}

/* Photo overlay */
.photo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(80px, 14vw, 140px);
  height: clamp(80px, 14vw, 140px);
  overflow: hidden;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Bottom links — ВЕРНУЛ ПОДЧЁРКИВАНИЯ */
.bottom-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: 0.0em;
  font-size: clamp(45px, 10vw, 60px);
  flex-wrap: wrap;          /* разрешаем перенос ссылок на новую строку */
  text-align: center;       /* выравниваем текст при переносе */
}

.bottom-line a {
  color: #000 !important;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.12em; /* Место под линию */
  word-break: break-word;   /* разрешаем перенос внутри слова при узком экране */
  white-space: normal;      /* убираем запрет на переносы */
}

.bottom-line a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .2em;
  height: 6px;
  background: #000;
}


