/* ============================================================
   Лендинг-визитка канала MAX
   Лёгкий, без внешних шрифтов и библиотек — быстрая загрузка.
   ============================================================ */

* {
  box-sizing: border-box;
}

/* Атрибут hidden должен побеждать любые display-правила ниже */
[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden; /* никакого горизонтального скролла */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #24172f;
  background: radial-gradient(circle at 50% -10%, #6a3fb5 0%, #4b2e83 45%, #241a3d 100%);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 28px 28px;
  box-shadow: 0 20px 60px rgba(20, 8, 46, 0.35);
  text-align: center;
  animation: card-in 0.4s ease-out;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(36, 26, 61, 0.22);
}

.card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  color: #241a3d;
}

.card__desc {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #55506a;
}

/* Строка с оффером — небольшой отступ от текста, выделена цветом */
.card__offer {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 700;
  color: #6a3fb5;
}

/* Социальное доказательство: маленькие аватарки + текст */
.card__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.35;
  color: #6b6480;
  text-align: left;
}

.card__avatars {
  display: flex;
  flex-shrink: 0;
}

.card__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -9px;
  box-shadow: 0 1px 3px rgba(36, 26, 61, 0.18);
}

.card__avatar:first-child {
  margin-left: 0;
}

.card__avatar--1 { background: linear-gradient(135deg, #f0a8c8, #d96ba0); }
.card__avatar--2 { background: linear-gradient(135deg, #a8c4f0, #5f86d6); }
.card__avatar--3 { background: linear-gradient(135deg, #c9a8f0, #8a5fd6); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.btn--primary {
  background: linear-gradient(135deg, #6a3fb5, #4b2e83);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(75, 46, 131, 0.35);
  margin-bottom: 12px;
}

.card__hint {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #9992ab;
}

/* Небольшие экраны (iPhone SE и т.п.) */
@media (max-width: 360px) {
  .card {
    padding: 28px 20px 22px;
  }
  .card__title {
    font-size: 21px;
  }
}

/* Достаточно широкие экраны — не растягиваем карточку до бесконечности */
@media (min-width: 768px) {
  .card {
    max-width: 440px;
    padding: 44px 36px 32px;
  }
}
