/* ==================== Unsubscribe page ==================== */

/* Desktop styles */
.titleH2 { color: var(--White); font-size: 2rem; font-weight: 700; line-height: 122.222%; }
.titleH2 .c-Purple { color: var(--Blue); }

.unsubscribe { margin-top: 1rem; }
.unsubscribe .pack__content { background-color: var(--header-color); padding: 20px; }
.unsubscribe .packBg { display: none; }
.unsubscribe .packBg__title { display: none; }

.unsubscribe__top { display: flex; align-items: flex-start; gap: 40px; margin-bottom: 70px; }
.unsubscribe__top .titleH2 { flex: 0 0 40%; }
.unsubscribe__top img.h-mob { flex: 1; height: auto; max-width: 60%; border-radius: 1.2rem; }

.unsubscribe__wrap { margin-bottom: 2rem; }
.unsubscribe__wrap img { height: auto; margin: 1rem auto; display: block; width: 100%; }
.unsubscribe__wrap a { text-decoration: none; }

.unsubscribe__text { margin-top: 30px; font-size: 1.25rem; line-height: 122.222%; color: var(--White); }

/* ==================== Mobile (≤ 800px) ==================== */
@media (max-width: 800px) {
  .titleH2 {
      font-size: 1rem;
  }
  /* Фон и контейнер */
  .unsubscribe {
    margin-top: 0;
    background: var(--mobile-background-color);
    min-height: 100vh;
  }

  .pack.unsubscribe .container {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: calc(76px + 1rem);
  }

  /* Верхний блок: картинка + текст поверх */
  .unsubscribe__top {
    position: relative;
    display: block;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
  }

  .unsubscribe__top img.h-mob {
    display: block;
    width: 100%;
    max-width: none;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    flex: none;
  }

  /* Градиент поверх картинки */
  .unsubscribe__top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 15, 28, 0) 0%,
      rgba(0, 15, 28, 0.6) 50%,
      rgba(0, 15, 28, 0.92) 100%
    );
  }

  /* Заголовок поверх картинки */
  .unsubscribe__top .titleH2 {
    position: absolute;
    bottom: 14px;
    left: 12px;
    right: 12px;
    z-index: 1;
    flex: none;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
  }

  /* Шаги */
  .unsubscribe .pack__content {
    background: none;
    padding: 0;
    gap: 20px;
  }

  .unsubscribe__wrap {
    margin-bottom: 0;
  }

  /* Меньше шрифт для заголовков шагов */
  .unsubscribe__wrap .titleH2 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
  }

  .unsubscribe__text {
    font-size: 14px;
    margin-top: 8px;
  }

  /* Скриншоты */
  .unsubscribe__wrap img {
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    margin: 8px 0;
    width: 100%;
  }
}
