/* App Install Banner (mobile only) */
.app-install-banner {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 10000; /* cookie-баннер будет сверху (см. правило ниже) */
  transform: translateY(-100%);
  transition: transform .25s ease;
  padding: calc(10px + env(safe-area-inset-top)) 12px 12px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.app-install-banner--visible { transform: translateY(0); }

.app-install-banner__inner {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto auto;
  grid-column-gap: 12px;
  grid-row-gap: 8px;
  align-items: center;
}

.app-install-banner__icon {
  width: 48px; height: 48px; border-radius: 12px; display: block;
  grid-column: 1;
  grid-row: 1;
}

.app-install-banner__title {
  font-weight: 700; font-size: 16px; line-height: 1.2; margin: 0;
  color: #111;
  grid-column: 2;
  grid-row: 1;
}

.app-install-banner__subtitle {
  font-size: 14px; font-weight: 400; margin: 0; line-height: 1.35;
  color: #111;
  grid-column: 1 / -1; /* на всю ширину под заголовком */
  grid-row: 2;
}

.app-install-banner__cta {
  grid-column: 1 / -1; /* на всю ширину */
  grid-row: 3;         /* в третьей строке, снизу блока */
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none; font-weight: 700; font-size: 15px;
}

.app-install-banner__close {
  position: absolute; top: calc(6px + env(safe-area-inset-top)); right: 8px;
  width: 32px; height: 32px; border: 0; background: transparent; font-size: 26px;
  line-height: 32px; text-align: center; cursor: pointer;
  color: #333;
}

@media (prefers-color-scheme: dark) {
  .app-install-banner { background: #1b1b1d; box-shadow: 0 6px 22px rgba(0,0,0,.5); }
  .app-install-banner__title, .app-install-banner__subtitle { color: #fff; }
  .app-install-banner__close { color: #fff; }
}

/* cookie поверх */
.use-cookie { z-index: 10001 !important; }

/* Показ только на мобайле: на десктопе скрываем */
@media (min-width: 769px) {
  .app-install-banner { display: none !important; }
}
.app-install-banner__title:empty{display:none !important;}
