:root {
  color-scheme: dark;
}

body.dz-static {
  margin: 0;
  background: #080d18;
  color: #cbd5e1;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}

.dz-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 70px;
}

.dz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.dz-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f1f5ff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.dz-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
}

.dz-nav,
.dz-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dz-nav a,
.dz-legal-links a {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dz-nav a:hover,
.dz-legal-links a:hover {
  color: #fff;
  background: rgba(91, 140, 255, 0.28);
  transform: translateY(-2px);
}

.dz-card {
  background: #101827;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 18px;
}

.dz-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.5;
  color: #f1f5ff;
}

.dz-card h2 {
  margin: 26px 0 8px;
  font-size: 20px;
  color: #f1f5ff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 8px;
}

.dz-card h3 {
  margin: 18px 0 6px;
  font-size: 16px;
  color: #e2e8f0;
}

.dz-card p {
  margin: 8px 0;
}

.dz-card ul,
.dz-card ol {
  padding-inline-start: 22px;
  margin: 10px 0;
}

.dz-card li {
  margin: 5px 0;
}

.dz-card a {
  color: #7aa2ff;
  text-decoration: none;
}

.dz-card a:hover {
  text-decoration: underline;
}

.dz-lead {
  color: #94a3b8;
  font-size: 16px;
}

.dz-note {
  background: rgba(91, 140, 255, 0.09);
  border-inline-start: 3px solid #5b8cff;
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  margin: 16px 0;
}

.dz-meta {
  color: #94a3b8;
  font-size: 13px;
}

details.dz-qa {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 10px 0;
}

details.dz-qa summary {
  cursor: pointer;
  color: #f1f5ff;
  font-weight: 600;
  padding: 6px 0;
}

details.dz-qa p {
  margin: 6px 0 12px;
  color: #cbd5e1;
}

.dz-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 8px 4px 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6f9bff, #2f5fe0);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.lang-selector {
  --lang-surface: #101827;
  --lang-surface-hover: rgba(91, 140, 255, 0.10);
  --lang-border: rgba(148, 163, 184, 0.16);
  --lang-text: #E8EEFC;
  --lang-text-muted: #94A3B8;
  --lang-primary: #5B8CFF;
  --lang-primary-suppl: #1D4ED8;
  --lang-shadow: 0 24px 64px -22px rgba(0, 0, 0, 0.78);
  position: relative;
  display: inline-flex;
  color: var(--lang-text);
  font-family: Inter, "SF Pro Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--lang-border);
  border-radius: 999px;
  background: var(--lang-surface);
  color: var(--lang-text);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lang-trigger:hover,
.lang-selector.is-open .lang-trigger {
  background: var(--lang-surface-hover);
  border-color: var(--lang-primary);
  box-shadow: 0 0 0 2px var(--lang-primary-suppl);
}

.lang-trigger:active {
  transform: scale(0.97);
}

.lang-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--lang-primary-suppl);
}

.lang-trigger__globe {
  display: inline-flex;
  align-items: center;
  color: var(--lang-primary);
  font-size: 16px;
}

.lang-trigger__globe svg {
  display: block;
  width: 1em;
  height: 1em;
}

.lang-trigger__current {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-inline-start: 8px;
  border-inline-start: 1px solid var(--lang-border);
}

.lang-trigger__flag {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.28);
}

.lang-trigger__name {
  font-size: 12px;
  opacity: 0.82;
}

.lang-trigger__chevron {
  display: inline-flex;
  font-size: 13px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.lang-trigger__chevron svg {
  display: block;
  width: 0.85em;
  height: 0.85em;
}

.lang-selector.is-open .lang-trigger__chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 262px;
  overflow: hidden;
  border: 1px solid var(--lang-border);
  border-radius: 14px;
  background: var(--lang-surface);
  box-shadow: var(--lang-shadow);
  transform-origin: top;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.lang-selector.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.lang-menu__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-block-end: 1px solid var(--lang-border);
  color: var(--lang-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-menu__header svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--lang-primary);
}

.lang-menu__list {
  max-height: 336px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--lang-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.lang-option:hover {
  background: var(--lang-surface-hover);
  transform: translateX(2px);
}

html[dir="rtl"] .lang-option:hover {
  transform: translateX(-2px);
}

.lang-option.is-active {
  background: var(--lang-primary-suppl);
}

.lang-option__flag {
  flex: 0 0 auto;
  display: block;
  width: 28px;
  height: 21px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.25);
}

.lang-option__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.lang-option__name {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-option__english {
  font-size: 11px;
  color: var(--lang-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-option__check {
  flex: 0 0 auto;
  color: var(--lang-primary);
  font-size: 16px;
}

@media (max-width: 640px) {
  .lang-trigger__name {
    display: none;
  }
}

.dz-footer {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 18px;
}

.dz-legal-links {
  justify-content: center;
  padding: 10px 12px;
}

.app-footer .dz-legal-links {
  padding: 4px 12px 12px;
}

@media (max-width: 600px) {
  .dz-card {
    padding: 18px;
    border-radius: 14px;
  }
  .dz-card h1 {
    font-size: 23px;
  }
}
