.sdz-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--sdz-radius-sm);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.sdz-btn:hover {
  transform: translateY(-1px);
}

.sdz-btn--primary,
.sdz-public-page .sdz-btn--primary {
  color: var(--sdz-color-surface);
  background: var(--sdz-color-primary);
}

[data-theme="dark"] .sdz-btn--primary,
[data-theme="dark"] .sdz-public-page .sdz-btn--primary {
  color: var(--sdz-color-background);
}

.sdz-btn--primary:hover {
  background: var(--sdz-color-primary-hover);
}

.sdz-btn--secondary,
.sdz-public-page .sdz-btn--secondary {
  color: var(--sdz-color-primary);
  background: var(--sdz-color-surface);
  border-color: var(--sdz-color-border);
}

.sdz-btn--danger,
.sdz-public-page .sdz-btn--danger {
  color: var(--sdz-color-danger);
  background: var(--sdz-color-danger-soft);
  border-color: var(--sdz-color-danger);
}

.sdz-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.sdz-card {
  padding: 24px;
  background: var(--sdz-color-surface);
  border: 1px solid var(--sdz-color-border);
  border-radius: var(--sdz-radius-md);
}

.sdz-card__icon,
.sdz-step__number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--sdz-color-primary);
  background: var(--sdz-color-primary-soft);
  border-radius: var(--sdz-radius-sm);
  font-weight: 800;
}

.sdz-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  color: var(--sdz-color-primary);
  background: var(--sdz-color-primary-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.sdz-badge--success {
  color: var(--sdz-color-success);
  background: var(--sdz-color-success-soft);
}

.sdz-badge--muted {
  color: var(--sdz-color-text-muted);
  background: var(--sdz-color-surface-muted);
}

.sdz-badge--danger {
  color: var(--sdz-color-danger);
  background: var(--sdz-color-danger-soft);
}

.sdz-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px 42px;
  color: var(--sdz-color-surface);
  background: var(--sdz-color-primary);
  border-radius: var(--sdz-radius-md);
}

.sdz-cta .sdz-badge {
  margin-bottom: 12px;
}

.sdz-cta h2 {
  margin-bottom: 7px;
  color: inherit;
}

.sdz-cta p {
  margin-bottom: 0;
}

.sdz-cta .sdz-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .sdz-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 24px;
  }

  .sdz-cta .sdz-btn {
    width: 100%;
  }
}

/*
 * Атрибут hidden должен побеждать любой display у компонента: у кнопок и
 * панелей он задан классом, поэтому без !important скрытый элемент остаётся
 * видимым.
 */
[hidden] {
  display: none !important;
}

/* Компактная метка: короткий текст в списке, полное название — в подсказке. */
.sdz-chip {
  position: relative;
  display: inline-flex;
  min-width: 26px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  color: var(--sdz-color-primary);
  background: var(--sdz-color-primary-soft);
  border: 1px solid transparent;
  border-radius: var(--sdz-radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: default;
}

.sdz-chip--muted {
  color: var(--sdz-color-text-muted);
  background: var(--sdz-color-surface-muted);
}

.sdz-chip--success {
  color: var(--sdz-color-success);
  background: var(--sdz-color-success-soft);
}

.sdz-chip:focus-visible {
  border-color: var(--sdz-color-focus);
  outline: 2px solid var(--sdz-color-focus);
  outline-offset: 1px;
}

.sdz-hint {
  position: relative;
}

.sdz-hint::after {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: min(260px, 70vw);
  padding: 7px 10px;
  color: var(--sdz-color-surface);
  background: var(--sdz-color-heading);
  border-radius: var(--sdz-radius-sm);
  box-shadow: var(--sdz-shadow-card);
  content: attr(data-hint);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  /* Overrides an inherited white-space: nowrap on triggers like
     .sdz-age-badge (there just to keep "6+" itself from wrapping) — without
     this, the pseudo-element ignores max-width and renders its whole hint
     text on one line, invisibly widening the page's scrollable area even
     while opacity: 0 and never hovered. */
  white-space: normal;
  transform: translate(-50%, 4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.sdz-hint:hover::after,
.sdz-hint:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* В конструкторе теста это имя используется для полноценного DOM-tooltip.
   Не показываем поверх него старую пустую подсказку из data-hint. */
.sdz-cabinet-shell .sdz-hint::after {
  display: none;
}

.sdz-age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  color: var(--sdz-color-text-muted);
  background: transparent;
  border: 1px solid var(--sdz-color-border);
  border-radius: var(--sdz-radius-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: help;
}

.sdz-age-badge:focus-visible {
  outline: 2px solid var(--sdz-color-focus);
  outline-offset: 1px;
}

/* Значок стоит у правого края подвала: якорим подсказку к правой стороне,
   чтобы она росла влево и не давала горизонтальной прокрутки. */
.sdz-lp-footer .sdz-hint::after {
  left: auto;
  right: 0;
  transform: translate(0, 4px);
}

.sdz-lp-footer .sdz-hint:hover::after,
.sdz-lp-footer .sdz-hint:focus-visible::after {
  transform: translate(0, 0);
}

.sdz-action-tooltip {
  position: fixed;
  z-index: 10000;
  width: max-content;
  max-width: min(258px, calc(100vw - 20px));
  padding: 8px 10px;
  border-radius: var(--sdz-radius-sm);
  background: var(--sdz-color-heading);
  color: var(--sdz-color-surface);
  box-shadow: var(--sdz-shadow-card);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 100ms ease, transform 100ms ease;
}
.sdz-action-tooltip.is-visible { opacity: 1; transform: none; }

.sdz-icon-button {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--sdz-color-primary);
  background: transparent;
  border: 1px solid var(--sdz-color-border);
  border-radius: var(--sdz-radius-sm);
  cursor: pointer;
}

.sdz-icon-button:hover {
  background: var(--sdz-color-primary-soft);
}

.sdz-icon-button:focus-visible {
  outline: 2px solid var(--sdz-color-focus);
  outline-offset: 1px;
}

.sdz-icon-button--danger {
  color: var(--sdz-color-error-text);
}

.sdz-icon-button--danger:hover {
  background: var(--sdz-color-error-soft);
}

.sdz-icon-button--favorite.sdz-icon-button--active {
  color: var(--sdz-color-warning);
}

.sdz-icon-button--favorite.sdz-icon-button--active svg {
  fill: currentColor;
}

.sdz-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

/* Условие вопроса: таблицы из редактора выводятся по центру и с границами. */
.sdz-question-content {
  overflow-x: auto;
}

/* Формулы MathLive рендерятся нативным MathML: масштаб всей дроби, включая
   цифры числителя и знаменателя, задаётся размером шрифта корневого <math>. */
.sdz-question-content math {
  font-size: 32px;
}

.sdz-question-content table {
  margin: 18px auto;
  border-collapse: collapse;
  background: var(--sdz-color-surface);
  border: 1px solid var(--sdz-color-border);
  border-radius: var(--sdz-radius-sm);
}

.sdz-question-content th,
.sdz-question-content td {
  padding: 9px 14px;
  border: 1px solid var(--sdz-color-border);
  font-size: 16px;
  text-align: center;
  vertical-align: middle;
}

.sdz-question-content th {
  color: var(--sdz-color-heading);
  background: var(--sdz-color-surface-muted);
  font-weight: 700;
  white-space: nowrap;
}

/* Редактор часто отдаёт таблицу без thead: заголовком считается первая строка. */
.sdz-question-content thead th,
.sdz-question-content tr:first-child th {
  border-bottom-width: 2px;
}

.sdz-question-content caption {
  caption-side: top;
  padding-bottom: 8px;
  color: var(--sdz-color-text-muted);
  font-size: 14px;
}

.sdz-question-content table p {
  margin: 0;
}

/* Фрагменты кода в условии: моноширинный блок со своим горизонтальным
   скроллом на длинных строках — не переносим их (white-space: pre), перенос
   ломает отступы и структуру кода. Родительский overflow-x на
   .sdz-question-content не спасает: скролл нужен именно на самом <pre>. */
.sdz-question-content pre {
  margin: 16px 0;
  padding: 12px 16px;
  overflow-x: auto;
  color: var(--sdz-color-text);
  background: var(--sdz-color-surface-muted);
  border: 1px solid var(--sdz-color-border);
  border-radius: var(--sdz-radius-sm);
  font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre;
  tab-size: 4;
}

/* Инлайновый код (`code`) вне <pre> — более скромный стиль, как метка. */
.sdz-question-content code {
  padding: 1px 5px;
  color: var(--sdz-color-text);
  background: var(--sdz-color-surface-muted);
  border: 1px solid var(--sdz-color-border);
  border-radius: 4px;
  font: .9em ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Редактор иногда оборачивает код внутри <pre> ещё и в <code> — тут
   собственный фон/рамка/паддинг инлайнового code были бы лишними. */
.sdz-question-content pre code {
  padding: 0;
  background: none;
  border: 0;
  font-size: inherit;
}

@media print {
  .sdz-question-content table,
  .sdz-question-content pre {
    break-inside: avoid;
  }

  /* PDF-печать не умеет горизонтальный скролл — переносим длинные строки,
     чтобы код не обрезался за краем страницы. */
  .sdz-question-content pre {
    overflow-x: visible;
    white-space: pre-wrap;
    word-break: break-word;
  }
}

.sdz-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sdz-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sdz-color-heading) !important;
  font-weight: 800;
}

.sdz-brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  background: url("../img/brand-mark-light.svg") no-repeat center / contain;
}
[data-theme="dark"] .sdz-brand__mark {
  background-image: url("../img/brand-mark-dark.svg");
}

.sdz-brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1;
}

.sdz-brand__word {
  font-size: 24px;
  white-space: nowrap;
}

.sdz-brand__word-accent {
  color: var(--sdz-color-primary);
}

.sdz-brand__tagline {
  font-family: inherit;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sdz-color-text-muted);
  white-space: nowrap;
}

.sdz-brand__version {
  color: var(--sdz-color-text-muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.sdz-theme-toggle,
.sdz-menu-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--sdz-color-text);
  background: var(--sdz-color-surface);
  border: 1px solid var(--sdz-color-border);
  border-radius: var(--sdz-radius-sm);
  cursor: pointer;
}

.sdz-theme-toggle__moon,
[data-theme="dark"] .sdz-theme-toggle__sun {
  display: none;
}

[data-theme="dark"] .sdz-theme-toggle__moon {
  display: inline;
}

.sdz-state {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--sdz-color-border);
  border-radius: var(--sdz-radius-sm);
  font-weight: 700;
}

.sdz-state--correct {
  color: var(--sdz-color-success);
  background: var(--sdz-color-success-soft);
  border-color: var(--sdz-color-success);
}

.sdz-state--wrong {
  color: var(--sdz-color-danger);
  background: var(--sdz-color-danger-soft);
  border-color: var(--sdz-color-danger);
}

.sdz-field {
  display: grid;
  gap: 7px;
  margin: 0;
  border: 0;
}

.sdz-field__label {
  color: var(--sdz-color-heading);
  font-size: 14px;
  font-weight: 700;
}

.sdz-field__control {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--sdz-color-text);
  background: var(--sdz-color-surface);
  border: 1px solid var(--sdz-color-border);
  border-radius: var(--sdz-radius-sm);
}

.sdz-field__control[aria-invalid="true"] {
  background: var(--sdz-color-error-soft);
  border-color: var(--sdz-color-error);
}

/* Show/hide password — wraps just the <input>, not the whole .sdz-field, so
   aria-invalid styling above keeps targeting the input directly. */
.sdz-field__control-wrap {
  position: relative;
}

.sdz-field__control-wrap .sdz-field__control {
  padding-right: 42px;
}

.sdz-field__toggle-password {
  position: absolute;
  top: 0;
  right: 2px;
  display: flex;
  width: 38px;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--sdz-color-text-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.sdz-field__toggle-password:hover {
  color: var(--sdz-color-text);
}

.sdz-field__eye-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.sdz-field__eye-icon--hide {
  display: none;
}

.sdz-field__toggle-password[aria-pressed="true"] .sdz-field__eye-icon--show {
  display: none;
}

.sdz-field__toggle-password[aria-pressed="true"] .sdz-field__eye-icon--hide {
  display: block;
}

.sdz-field__hint {
  color: var(--sdz-color-text-muted);
  font-size: 12px;
}

.sdz-field__error {
  min-height: 1em;
  color: var(--sdz-color-error-text);
  font-size: 13px;
  font-weight: 600;
}

.sdz-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.sdz-check input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: var(--sdz-color-primary);
}

.sdz-check--agreement {
  font-size: 14px;
}

.sdz-alert {
  padding: 12px 14px;
  border: 1px solid var(--sdz-color-border);
  border-radius: var(--sdz-radius-sm);
}

.sdz-alert--success {
  color: var(--sdz-color-success);
  background: var(--sdz-color-success-soft);
  border-color: var(--sdz-color-success);
}

.sdz-alert--error {
  color: var(--sdz-color-error-text);
  background: var(--sdz-color-error-soft);
  border-color: var(--sdz-color-error);
}

.sdz-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: color-mix(in srgb, var(--sdz-color-surface) 94%, transparent);
  border-bottom: 1px solid var(--sdz-color-border);
  backdrop-filter: blur(12px);
}

.sdz-site-header__inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 28px;
}

.sdz-site-nav,
.sdz-site-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.sdz-site-nav {
  gap: 28px;
  margin-left: auto;
}

.sdz-site-nav a {
  color: var(--sdz-color-text);
  font-size: 14px;
  font-weight: 600;
}

.sdz-site-header__actions {
  gap: 10px;
}

.sdz-menu-toggle {
  display: none;
}

/* Registration CTA at the bottom of the mobile nav dropdown — hidden
   otherwise, shown only once the dropdown itself is enabled below. */
.sdz-site-nav__mobile-cta {
  display: none;
}

/* "Claude Design" header — every public page renders this same modifier
   (templates/partials/site-header.php), so the menu, logo and buttons look
   identical everywhere; landing_header only ever changes how the guest
   menu's section anchors resolve, not this visual style. */
.sdz-site-header--landing {
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #d5dee7;
  backdrop-filter: blur(8px);
}

.sdz-site-header--landing .sdz-site-header__inner {
  min-height: 66px;
  gap: 20px;
}

.sdz-site-header--landing .sdz-brand {
  flex: none;
  gap: 9px;
}

.sdz-site-header--landing .sdz-brand__mark {
  width: 30px;
  height: 30px;
}

.sdz-site-header--landing .sdz-brand__word {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.sdz-site-header--landing .sdz-brand__tagline {
  color: #5a6e80;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.sdz-site-header--landing .sdz-site-nav {
  gap: 18px;
  margin-left: 0;
}

.sdz-site-header--landing .sdz-site-nav a {
  color: #33475a;
  font-size: 13.5px;
  line-height: 1;
}

.sdz-site-header--landing .sdz-site-header__actions {
  gap: 14px;
  margin-left: auto;
}

.sdz-site-header--landing .sdz-site-header__login,
.sdz-site-header--landing .sdz-site-header__cta {
  min-height: 40px;
  height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 14px;
}

.sdz-site-header--landing .sdz-site-header__cta {
  padding-inline: 18px;
}

/* Единый подвал сайта — раньше был только на главной, остальные страницы
   (включая /kumir/) использовали урезанную версию; теперь везде одно и то же,
   независимо от светлой/тёмной темы страницы (подвал всегда тёмный, как и
   был на главной). */
.sdz-lp-footer {
  padding-top: 52px;
  color: #c3d2de;
  background: #152a3a;
}

.sdz-lp-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 28px;
}

.sdz-lp-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sdz-lp-footer__logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sdz-lp-footer__logo img {
  flex: none;
}

.sdz-lp-footer__logo .sdz-brand__word {
  color: #fff;
}

.sdz-lp-footer__logo .sdz-brand__tagline {
  color: #6c7f91;
}

.sdz-lp-footer__brand p {
  margin: 0;
  max-width: 34ch;
  font-size: 13px;
}

.sdz-lp-footer__email {
  color: #8ac2e9;
  font-size: 13.5px;
  font-weight: 600;
}

.sdz-lp-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sdz-lp-footer__col-title {
  color: #6c7f91;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sdz-lp-footer__col a {
  color: #c3d2de;
  font-size: 13.5px;
}

.sdz-lp-footer__col a:hover {
  color: #8ac2e9;
}

.sdz-lp-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 40px;
  border-top: 1px solid #2c3a47;
  font-size: 12.5px;
  color: #6c7f91;
}

.sdz-lp-footer__legal-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sdz-lp-footer .sdz-age-badge {
  color: #c3d2de;
  border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 900px) {
  .sdz-site-header__cta,
  .sdz-site-nav {
    display: none;
  }

  .sdz-site-nav--open {
    position: absolute;
    top: 70px;
    right: 16px;
    display: grid;
    min-width: 210px;
    gap: 0;
    padding: 10px;
    background: var(--sdz-color-surface);
    border: 1px solid var(--sdz-color-border);
    border-radius: var(--sdz-radius-md);
    box-shadow: var(--sdz-shadow-card);
  }

  .sdz-site-nav--open a {
    padding: 10px;
  }

  .sdz-site-nav--open .sdz-site-nav__mobile-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
  }

  .sdz-site-header__actions {
    margin-left: auto;
  }

  .sdz-menu-toggle {
    display: inline-flex;
  }

  .sdz-site-header--landing .sdz-site-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #d5dee7;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(21, 42, 58, 0.14);
  }

  .sdz-site-header--landing .sdz-site-nav--open {
    display: flex;
  }

  .sdz-site-header--landing .sdz-menu-toggle {
    display: inline-flex;
  }

  .sdz-lp-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sdz-site-header__inner {
    min-height: 62px;
  }

  .sdz-site-header--landing .sdz-site-header__inner {
    min-height: 60px;
  }

  .sdz-site-header--landing .sdz-site-header__cta {
    display: none;
  }

  .sdz-site-header--landing .sdz-site-header__actions {
    margin-left: auto;
  }

  .sdz-lp-footer__grid {
    grid-template-columns: 1fr;
  }

  .sdz-lp-footer__legal {
    flex-direction: column;
  }
}

.sdz-cookie-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 200;
  max-width: 560px;
  margin-inline: auto;
  padding: 18px 20px;
  color: var(--sdz-color-text);
  background: var(--sdz-color-surface);
  border: 1px solid var(--sdz-color-border);
  border-radius: var(--sdz-radius-md);
  box-shadow: var(--sdz-shadow-card);
}

.sdz-cookie-consent__inner {
  display: grid;
  gap: 14px;
}

.sdz-cookie-consent__text {
  margin: 0;
  font-size: 14px;
}

.sdz-cookie-consent__text a {
  color: var(--sdz-color-primary);
}

.sdz-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sdz-cookie-consent__panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sdz-color-border);
}

.sdz-cookie-consent__toggle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--sdz-color-text-muted);
}

.sdz-cookie-consent__toggle input {
  flex-shrink: 0;
  margin-top: 3px;
}

@media (max-width: 480px) {
  .sdz-cookie-consent {
    inset: auto 8px 8px 8px;
  }

  .sdz-cookie-consent__actions {
    flex-direction: column;
  }

  .sdz-cookie-consent__actions .sdz-btn {
    width: 100%;
  }
}

/* ---------- Всплывающее подтверждение действия (замена window.confirm) ---------- */
.sdz-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: color-mix(in srgb, var(--sdz-color-heading) 70%, transparent);
}

.sdz-confirm-dialog {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  background: var(--sdz-color-surface);
  border-radius: var(--sdz-radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sdz-confirm-dialog__title {
  margin: 0;
  color: var(--sdz-color-heading);
  font-size: 18px;
}

.sdz-confirm-dialog__message {
  margin: 0;
  color: var(--sdz-color-text);
  line-height: 1.5;
}

.sdz-confirm-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 480px) {
  .sdz-confirm-dialog__actions {
    flex-direction: column-reverse;
  }

  .sdz-confirm-dialog__actions .sdz-btn {
    width: 100%;
  }
}
