/* Shared cookie consent. Canonical stylesheet; theme builds copy it unchanged. */
.rh-cookie {
  --rh-cookie-ink: #06152d;
  --rh-cookie-text: #455b74;
  --rh-cookie-muted: #61758c;
  --rh-cookie-link: #1453a6;
  --rh-cookie-line: #dce6f0;
  --rh-cookie-surface: #fff;
  --rh-cookie-soft: #f2f8ff;
  position: fixed;
  z-index: 10000;
  left: max(24px, env(safe-area-inset-left, 0px));
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 196px;
  align-items: center;
  gap: 22px;
  width: auto;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--rh-cookie-line);
  border-radius: 20px;
  background: var(--rh-cookie-surface);
  color: var(--rh-cookie-ink);
  box-shadow: 0 12px 48px rgb(6 21 45 / .16), 0 2px 8px rgb(6 21 45 / .04);
  font-family: 'Manrope', Arial, sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.rh-cookie, .rh-cookie * { box-sizing: border-box; }
.rh-cookie[hidden] { display: none; }
.rh-cookie__icon {
  display: grid;
  place-items: center;
  align-self: start;
  width: 48px;
  height: 48px;
  margin-top: 2px;
  border: 1px solid var(--rh-cookie-line);
  border-radius: 14px;
  background: var(--rh-cookie-soft);
  color: var(--rh-cookie-link);
}
.rh-cookie__icon svg { display: block; }
.rh-cookie .rh-cookie__title {
  margin: 0 0 8px;
  color: var(--rh-cookie-ink);
  font: 800 18px/1.4 'Manrope', Arial, sans-serif;
  letter-spacing: -.025em;
}
.rh-cookie__description {
  max-width: 650px;
  margin: 0;
  color: var(--rh-cookie-text);
  font: 500 14px/1.7 'Manrope', Arial, sans-serif;
}
.rh-cookie__policy {
  display: inline-block;
  max-width: 100%;
  color: var(--rh-cookie-link);
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.rh-cookie__policy:hover { text-decoration-thickness: 2px; }
.rh-cookie__scope {
  margin: 10px 0 0;
  color: var(--rh-cookie-muted);
  font: 500 12px/1.6 'Manrope', Arial, sans-serif;
}
.rh-cookie__actions { display: grid; gap: 8px; }
.rh-cookie__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: 800 13px/1.5 'Manrope', Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background .16s, border-color .16s;
}
.rh-cookie__button--accept { background: #9ccb3b; color: #0a2031; }
.rh-cookie__button--accept:hover { background: #aedb51; }
.rh-cookie__button--necessary {
  border-color: var(--rh-cookie-line);
  background: var(--rh-cookie-surface);
  color: var(--rh-cookie-text);
  font-weight: 700;
}
.rh-cookie__button--necessary:hover { background: var(--rh-cookie-soft); }
.rh-cookie :is(a, button):focus-visible { outline: 3px solid var(--rh-cookie-link); outline-offset: 4px; }
[data-ru-theme='dark'] .rh-cookie {
  --rh-cookie-ink: #edf4ff;
  --rh-cookie-text: #bdcee1;
  --rh-cookie-muted: #9fb2ca;
  --rh-cookie-link: #b6d4ff;
  --rh-cookie-line: #344c6b;
  --rh-cookie-surface: #10243e;
  --rh-cookie-soft: #192f4c;
  box-shadow: 0 12px 48px rgb(0 0 0 / .3);
}
@media (max-width: 720px) {
  .rh-cookie {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-radius: 18px;
  }
  .rh-cookie__icon { width: 36px; height: 36px; margin: 0; border-radius: 11px; }
  .rh-cookie__icon svg { width: 25px; height: 25px; }
  .rh-cookie__copy { display: contents; }
  .rh-cookie .rh-cookie__title { margin: 0; font-size: 16px; line-height: 1.5; }
  .rh-cookie__description { grid-column: 1 / -1; font-size: 13px; line-height: 1.7; }
  .rh-cookie__scope { grid-column: 1 / -1; margin: 0; font-size: 11px; line-height: 1.65; }
  .rh-cookie__actions { grid-column: 1 / -1; margin-top: 2px; }
}
@media (max-height: 440px) {
  .rh-cookie { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (prefers-reduced-motion: reduce) {
  .rh-cookie__button { transition: none; }
}
@media print { .rh-cookie { display: none; } }

.rh-cookie .rh-cookie__status { grid-column: 1 / -1; margin: 0; color: #963c20; font: 600 12px/1.6 'Manrope', Arial, sans-serif; }
.rh-cookie .rh-cookie__status[hidden] { display: none; }
[data-ru-theme='dark'] .rh-cookie .rh-cookie__status { color: #ffc4a8; }
.rh-cookie-settings { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rh-cookie-settings:focus-visible { outline: 3px solid #9ccb3b; outline-offset: 4px; }
