/* Consent banner and preferences dialog for the corporate site.
   Scoped with an stc- prefix so nothing collides with the design-canvas
   inline styles the pages render with. */

.stc-banner {
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(760px, calc(100% - 36px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #e1e9f3;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgb(11 23 40 / 16%);
  font-family: "Manrope", Arial, sans-serif;
  color: #0b1728;
}

.stc-banner[hidden] { display: none; }

.stc-banner strong { font-size: 14px; font-weight: 700; }

.stc-banner p {
  margin: 4px 0 0;
  color: #55627a;
  font-size: 12.5px;
  line-height: 1.5;
}

.stc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.stc-btn {
  padding: 9px 14px;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  background: #ffffff;
  color: #0b1728;
  font: 600 13px/1 "Manrope", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.stc-btn:hover { border-color: #244bd8; color: #244bd8; }

.stc-btn-primary {
  border-color: #244bd8;
  background: #244bd8;
  color: #ffffff;
}

.stc-btn-primary:hover { background: #203cb0; border-color: #203cb0; color: #ffffff; }

.stc-btn:focus-visible,
.stc-icon:focus-visible { outline: 2px solid #244bd8; outline-offset: 2px; }

.stc-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: min(720px, calc(100svh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid #e1e9f3;
  border-radius: 10px;
  background: #ffffff;
  color: #0b1728;
  font-family: "Manrope", Arial, sans-serif;
}

.stc-dialog::backdrop { background: rgb(11 23 40 / 45%); }

.stc-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e1e9f3;
}

.stc-dialog-head h2 { margin: 0; font-size: 17px; font-weight: 700; }

.stc-dialog-body { display: grid; gap: 14px; padding: 18px; }

.stc-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #e1e9f3;
  border-radius: 8px;
  background: #ffffff;
  color: #55627a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.stc-icon:hover { border-color: #244bd8; color: #0b1728; }

.stc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #e1e9f3;
  border-radius: 8px;
  background: #f7f9fc;
}

.stc-row span { display: grid; min-width: 0; flex: 1 1 auto; gap: 2px; }
.stc-row strong { font-size: 13.5px; font-weight: 700; }
.stc-row small { color: #55627a; font-size: 12px; line-height: 1.45; }

.stc-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 20px;
  accent-color: #244bd8;
}

@media (max-width: 720px) {
  .stc-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
  }

  .stc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .stc-actions .stc-btn-primary { grid-column: 1 / -1; }
}

/* Главное действие визуально доминирует: банннер работает как согласие,
   а не как равновесный выбор из трёх одинаковых кнопок. */
.stc-actions .stc-btn-primary {
  order: 2;
  padding: 13px 26px;
  font-size: 14.5px;
  box-shadow: 0 4px 14px rgb(36 75 216 / 32%);
}

.stc-actions .stc-btn:not(.stc-btn-primary) {
  order: 1;
  padding: 8px 12px;
  border-color: transparent;
  background: none;
  color: #6b7789;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stc-actions .stc-btn:not(.stc-btn-primary):hover {
  border-color: transparent;
  color: #0b1728;
}

@media (max-width: 720px) {
  .stc-actions .stc-btn-primary { order: 0; grid-column: 1 / -1; }
  .stc-actions .stc-btn:not(.stc-btn-primary) { order: 1; }
}
