/* Общие элементы приложения и страниц: реклама, уведомление о cookie */

.ad-host { margin-top: 18px; }
.ad-box {
  position: relative;
  border-radius: 14px;
  background: var(--card);
  padding: 22px 10px 10px;
  overflow: hidden;
  min-height: 60px;
  box-shadow: 0 0 0 0.5px var(--sep);
}
.ad-label {
  position: absolute; top: 5px; left: 12px;
  font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--label-3);
}
.ad-custom img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
.ad-custom a { color: var(--tint); }

.cookie-notice {
  position: fixed; z-index: 1200; left: 12px; bottom: 12px; max-width: 420px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 16px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--shadow); border: 0.5px solid var(--glass-border);
  font-size: 13px; color: var(--label-2); line-height: 1.35;
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s;
}
.cookie-notice.in { opacity: 1; transform: none; }
.cookie-notice a { color: var(--tint); }
.cookie-notice button {
  flex: none; border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 14px;
  background: var(--tint); color: #fff; cursor: pointer; font-family: inherit;
}
.site-links { text-align: center; margin-top: 16px !important; }
.site-links a { color: var(--label-2); text-decoration: none; }
.site-links a:hover { color: var(--tint); }

/* в приложении снизу панели и профиль — показываем сверху по центру */
body:not(.page) .cookie-notice { bottom: auto; top: calc(70px + env(safe-area-inset-top, 0px)); left: 50%; margin-left: -210px; width: 420px; transform: translateY(-10px); }
body:not(.page) .cookie-notice.in { transform: none; }
@media (max-width: 760px) {
  .cookie-notice { left: 10px; right: 10px; max-width: none; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  body:not(.page) .cookie-notice { left: 10px; right: 10px; margin-left: 0; width: auto; top: calc(62px + env(safe-area-inset-top, 0px)); }
}

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
