* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  max-height: 100vh;
  overflow: hidden !important; /* Убираем скроллбар страницы */
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Главный контейнер страницы */
.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #000;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Блок с фото (Hero) */
.hero {
  position: relative;
  width: 100%;
  flex: 0 0 35vh; /* Занимает ровно 35% высоты экрана */
  height: 35vh !important;
  min-height: 0 !important; /* Сброс фиксированной высоты */
  max-height: 35vh !important;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

.hero-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Сохраняет пропорции без искажений */
  object-position: center 20% !important; /* Фокусировка на лице */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.08) 42%,
    rgba(0, 0, 0, 0.30) 64%,
    rgba(0, 0, 0, 0.96) 100%
  );
}

.online {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 22px;
  background: rgba(35, 24, 24, 0.76);
  backdrop-filter: blur(7px);
  font-size: 13px;
  line-height: 1;
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00f184;
  box-shadow: 0 0 7px rgba(0, 241, 132, 0.5);
}

.profile-info {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 12px;
  text-align: center;
}

.profile-info h1 {
  margin: 0;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -1px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.verified {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex: 0 0 20px;
}

.verified svg {
  width: 100%;
  height: 100%;
  fill: #009ff5;
}

.verified .check {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.username {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* Блок с текстом и кнопками */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 12px 20px 20px !important;
  background: #000;
  text-align: center;
}

.content p {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  max-width: 90%;
}

/* Группа кнопок: вертикальная колонка с отступом */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Зазор между кнопками */
  align-items: center;
  width: 100%;
}

.btn-main {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 11px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.btn-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #0088cc;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 320px;
  text-align: center;
}

@media (min-width: 721px) {
  .page {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  }
}
