.db-wrap {
  --db-bg: #2f3c43;
  --db-bg-dark: #1a2730;
  --db-bg-banner: #1e2c32;
  --db-bg-green: #1a3d22;
  --db-green: #b5d56a;
  --db-live: #b5d56a;
  --db-beta: #f5a623;
  --db-text: #ffffff;
  --db-muted: #8ca8a0;
  --db-faint: rgba(255, 255, 255, 0.35);
  --db-border: rgba(255, 255, 255, 0.14);
}

/* ── Статус (точка + текст) ── */
.db-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 10px;
}

.db-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.db-status--live .db-status__dot {
  background: var(--db-live);
}

.db-status--live .db-status__text {
  color: var(--db-live);
}

.db-status--beta .db-status__dot {
  background: var(--db-beta);
}

.db-status--beta .db-status__text {
  color: var(--db-beta);
}

/* ── Официальные бейджи App Store / Google Play (изображения) ── */
.db-store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.15s;
}

.db-store-badge img {
  display: block;
  width: auto;
}

.db-store-badge:hover {
  opacity: 0.85;
}

.db-store-badge--beta {
  opacity: 0.82;
}

.db-store-badge--beta:hover {
  opacity: 1;
}

/* Официальные бейджи Apple и Google имеют разные внутренние поля в
   растровых PNG. Решение — использовать официальные SVG-киты (см.
   badge_urls.txt), у которых bounding box уже выверен вплотную к
   контенту. Тогда достаточно ОДНОЙ высоты для обоих — без ratio-хаков,
   как это сделано на spotify.com/download. */
.db-store-badge img {
  height: 40px;
}

.db-store-badge--sm img {
  height: 32px;
}

/* ── QR-блок ── */
.db-qr-box {
  background: #fff;
  border-radius: 8px;
  display: inline-block;
  line-height: 0;
}

/* ─────────────────────────────────────────────────────────────
   БЛОК 1: HERO (незарегистрированный)
───────────────────────────────────────────────────────────── */
.db-hero {
  background: var(--db-bg);
  padding: 2rem 0;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.db-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(225deg,
      rgba(181, 213, 106, 0.14) 0%,
      transparent 45%);
}

.db-hero__content {
  flex: 1;
  min-width: 260px;
}

.db-hero__content,
.db-hero__phones {
  position: relative;
  z-index: 1;
}

.db-hero__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--db-green);
  margin-bottom: 14px;
}

.db-hero__title {
  color: var(--db-text);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.9rem;
}

.db-hero__desc {
  color: var(--db-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 500px;
}

.db-hero .container {
  display: flex;
}

/* Ряд с бейджами */
.db-hero__apps {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.db-hero__badge-wrap {
  display: inline-flex;
  flex-direction: column;
}

/* Инлайн QR рядом с бейджами */
.db-hero__qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.db-hero__qr-label {
  font-size: 9px;
  color: var(--db-faint);
}

/* Вторичная веб-ссылка */
.db-secondary {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.db-secondary__label {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--db-faint);
  margin-bottom: 2px;
}

.db-web-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 7px;
  padding: 7px 18px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.db-web-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

.db-secondary__or {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

/* Телефоны */
.db-hero__phones {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-shrink: 0;
}

.db-phone {
  width: 132px;
  height: 244px;
  background: var(--db-bg-dark);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.db-phone::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  z-index: 1;
}

.db-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  padding-top: 18px;
}

.db-phone--featured {
  width: 150px;
  height: 275px;
  border-color: rgba(181, 213, 106, 0.45);
  margin-bottom: 0;
}

.db-phone--featured::before {
  background: rgba(181, 213, 106, 0.25);
}

/* ─────────────────────────────────────────────────────────────
   БЛОК 2: БАННЕР (авторизованный)
───────────────────────────────────────────────────────────── */
.db-banner {
  background: var(--db-bg-banner);
  border-bottom: 1px solid rgba(94, 201, 154, 0.1);
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.db-banner__left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.db-banner__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(94, 201, 154, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.db-banner__title {
  color: var(--db-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.db-banner__sub {
  color: var(--db-muted);
  font-size: 12px;
  margin-top: 3px;
}

.db-banner__right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.db-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}

.db-dismiss:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ─────────────────────────────────────────────────────────────
   БЛОК 3: QR-СЕКЦИЯ
───────────────────────────────────────────────────────────── */
.db-qr-section {
  background: var(--db-bg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.db-qr-section__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--db-green);
  margin-bottom: 7px;
}

.db-qr-section__title {
  color: var(--db-text);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 1.75rem;
}

.db-qr-section__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.db-qr-item {
  text-align: center;
}

.db-qr-item__name {
  color: var(--db-text);
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 4px;
}

.db-qr-divider {
  width: 1px;
  height: 90px;
  background: rgba(255, 255, 255, 0.07);
}

.db-qr-section .db-status {
  justify-content: center;
}

.login__bg {
  background: var(--db-bg);
  /* border-radius: 12px; */
  border: 1px solid rgba(94, 201, 154, 0.15);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.login__title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.login__links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px
}

.login__secondary {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}


/* ── Адаптив ── */
@media (max-width: 1030px) {
  .db-hero {
    gap: 1.75rem;
    padding: 3rem 1.75rem;
  }

  .db-hero__qr-wrap {
    display: none;
  }

  .db-hero__phones {
    gap: 8px;
  }

  .db-phone {
    width: 104px;
    height: 192px;
  }

  .db-phone--featured {
    width: 118px;
    height: 217px;
  }

  .db-qr-section__row {
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .db-hero {
    padding: 2rem 1.25rem;
    gap: 1.5rem;
  }

  .db-hero__title {
    font-size: 22px;
  }

  .db-hero__phones {
    display: none;
  }

  .db-banner {
    padding: 1rem 1.25rem;
  }

  .db-banner-top {
    padding-right: 2.75rem;
  }

  .db-dismiss {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .db-qr-section {
    padding: 1.75rem 1.25rem;
  }

  .db-qr-section__row {
    gap: 1.5rem;
  }

  .db-qr-divider {
    display: none;
  }

  .db-hero__apps {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .db-banner__right .db-qr-box {
    display: none;
  }
}