/*
 * Плашка согласия на cookie (analytics/consent.js). Оформление нейтральное, одинаковое на всех сайтах; значения заданы
 * явно и от #site-consent — темы сайтов красят кнопки и ссылки по-своему. «Принять» и «Отклонить» одного размера.
 */
#site-consent,
#site-consent * { box-sizing: border-box; }
#site-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid #d9dde3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(17, 24, 39, .18);
  color: #1f2430;
  font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: left;
}
#site-consent .site-consent__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
#site-consent .site-consent__text { flex: 1 1 420px; min-width: 0; }
#site-consent .site-consent__text p { margin: 0; padding: 0; color: #3c4350; font-size: 14px; line-height: 1.5; }
#site-consent p.site-consent__title { margin: 0 0 4px; color: #14181f; font-size: 16px; font-weight: 700; }
#site-consent .site-consent__text a,
#site-consent .site-consent__text a:visited { color: #1a56c4; text-decoration: underline; }
#site-consent .site-consent__btns { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
#site-consent button.site-consent__btn,
#site-consent button.site-consent__btn:hover,
#site-consent button.site-consent__btn:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 42px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid #1f2430;
  border-radius: 9px;
  background: #fff;
  color: #1f2430;
  font: 600 14px/1.2 inherit;
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
#site-consent button.site-consent__btn--main,
#site-consent button.site-consent__btn--main:hover,
#site-consent button.site-consent__btn--main:focus { background: #1f2430; color: #fff; }
#site-consent button.site-consent__btn--ghost,
#site-consent button.site-consent__btn--ghost:hover,
#site-consent button.site-consent__btn--ghost:focus { border-color: #c9ced6; color: #3c4350; font-weight: 500; }
#site-consent button.site-consent__btn:hover { filter: brightness(.93); }
#site-consent button.site-consent__btn:focus-visible { outline: 3px solid #7aa7f5; outline-offset: 2px; }
#site-consent button[hidden],
#site-consent .site-consent__opts[hidden] { display: none; }
#site-consent .site-consent__opts { flex: 1 1 100%; display: grid; gap: 8px; margin: 0; padding: 12px 0 2px; border-top: 1px solid #eceef1; }
#site-consent label.site-consent__opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #3c4350;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
#site-consent label.site-consent__opt b { display: block; color: #14181f; font-size: 14px; font-weight: 700; }
#site-consent label.site-consent__opt input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  opacity: 1;
  position: static;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: #1f2430;
}
.site-consent-foot { margin: 10px 0 0; padding: 0 0 12px; font-size: 13px; text-align: center; }
.site-consent-foot a { color: inherit; text-decoration: underline; opacity: .85; }

@media (max-width: 767px) {
  #site-consent {
    left: 8px;
    right: 8px;
    bottom: calc(8px + var(--site-consent-offset, 0px));
    max-height: calc(100vh - 24px - var(--site-consent-offset, 0px));
    padding: 14px;
    overflow-y: auto;
    border-radius: 12px;
  }
  #site-consent .site-consent__in { gap: 12px; }
  #site-consent .site-consent__text { flex-basis: 100%; }
  #site-consent .site-consent__text p { font-size: 13px; }
  #site-consent p.site-consent__title { font-size: 15px; }
  #site-consent .site-consent__btns { flex: 1 1 100%; }
  #site-consent button.site-consent__btn,
  #site-consent button.site-consent__btn:hover,
  #site-consent button.site-consent__btn:focus { flex: 1 1 calc(50% - 4px); min-width: 0; }
  #site-consent button.site-consent__btn--ghost,
  #site-consent button.site-consent__btn--ghost:hover,
  #site-consent button.site-consent__btn--ghost:focus { flex-basis: 100%; }
}

/* вставка стороннего сервиса до согласия — пустая рамка: не показываем, пока плашка не подставит адрес */
iframe[data-consent] { display: none !important; }
