:root {
  --nabu-blue: #4169e1;
  --nabu-sky: #87ceeb;
  --nabu-yellow: #ffc600;
  --nabu-bg: #000000;
  --nabu-surface: #141414;
  --nabu-border: #2a2a2a;
  --nabu-text: #f5f5f5;
  --nabu-muted: #a8a8a8;
  /** Липкая шапка: дорожка прогресса + отступы */
  --nabu-sticky-offset: 86px;
  /* Герой: белый блок 100%; голубой 70%; золото 60%; теглайн 40% от крупного блока */
  --nabu-hero-reg: clamp(2rem, 8.2vw, 2.95rem);
  --nabu-hero-welcome: calc(var(--nabu-hero-reg) * 0.68);
  --nabu-hero-tag: calc(var(--nabu-hero-reg) * 0.46);
  --nabu-hero-sky: calc(var(--nabu-hero-reg) * 0.7);
  --nabu-section-title: 1.0625rem;
  --nabu-section-lead: 0.9375rem;
  --nabu-unified-step-size: clamp(1.95rem, 7.8vw, 2.35rem);
  --nabu-body-sm: 0.9375rem;
  --nabu-caption: 0.8125rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nabu-sticky-offset) + env(safe-area-inset-top, 0px));
}

.nabu-body {
  margin: 0;
  font-family: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  background: var(--nabu-bg);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
}

.nabu-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.nabu-progress-head {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--nabu-bg) 92%, transparent);
  padding: 10px 16px 12px;
  padding-top: max(10px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.progress-track {
  position: relative;
  height: 36px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  min-width: 0;
  z-index: 1;
  background: var(--nabu-yellow);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}

.progress-pct {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #000000;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.nabu-main {
  flex: 1;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 18px 20px 52px;
  padding-bottom: max(52px, env(safe-area-inset-bottom));
}

.hero-block {
  text-align: center;
  margin-bottom: 28px;
  padding: 4px 2px 0;
  scroll-margin-top: calc(var(--nabu-sticky-offset) + env(safe-area-inset-top, 0px));
}

.hero-title {
  margin: 0 0 10px;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: var(--nabu-hero-welcome);
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--nabu-yellow);
}

.hero-title-line {
  white-space: nowrap;
}

.hero-title-brand {
  font-weight: 700;
  color: inherit;
}

.hero-tagline {
  margin: 0 0 clamp(22px, 5.5vw, 34px);
  font-size: var(--nabu-hero-tag);
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.94);
}

.hero-line {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  text-align: center;
}

.hero-line-row {
  display: block;
}

/* Фиксируем строки hero-текста строго как в разметке */
.hero-line--white .hero-line-row {
  white-space: nowrap;
  text-align: center;
  width: auto;
}

.hero-line--white .hero-line-row + .hero-line-row {
  margin-top: 0.05em;
}

.hero-line--sky .hero-line-row + .hero-line-row {
  margin-top: 0.08em;
}

.hero-line--sky .hero-line-row {
  white-space: nowrap;
  text-align: center;
}

.hero-line--white {
  margin-top: 0;
  margin-bottom: 0;
  font-size: var(--nabu-hero-reg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-line--white,
.hero-line--sky {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-line--sky {
  margin-top: clamp(16px, 4.5vw, 26px);
  font-size: var(--nabu-hero-sky);
  font-weight: 600;
  line-height: 1.22;
  color: #8fdcff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 360px) {
  .hero-title-line {
    white-space: normal;
  }
}

.accent-yellow {
  color: var(--nabu-yellow);
}

.accent-sky {
  color: var(--nabu-sky);
}

.flow-block {
  background: rgba(20, 20, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px 18px 22px;
  margin-bottom: 18px;
  opacity: 0.45;
  transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  scroll-margin-top: calc(var(--nabu-sticky-offset) + env(safe-area-inset-top, 0px));
}

.flow-block--locked {
  opacity: 0.38;
  pointer-events: none;
  filter: grayscale(0.2);
}

.flow-block--active {
  opacity: 1;
  border-color: rgba(65, 105, 225, 0.55);
  box-shadow: 0 0 0 1px rgba(65, 105, 225, 0.2);
}

.block-title {
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  font-size: var(--nabu-section-title);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.block-title--white {
  color: #ffffff;
}

.block-lead {
  margin: 0 0 14px;
  font-size: var(--nabu-section-lead);
  font-weight: 400;
  line-height: 1.45;
  color: var(--nabu-sky);
  text-align: center;
}

/* Единый шрифтовой массив для блока "Теперь подключим... / Начнём с Telegram" */
#block-tg .block-title,
#block-tg .block-lead {
  font-size: clamp(1.28rem, 4.2vw, 1.58rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-align: center;
  width: 100%;
}

#block-tg .block-title {
  color: #ffffff;
  margin-bottom: 6px;
  white-space: nowrap;
}

#block-tg > .block-lead {
  color: #8fdcff;
  margin-bottom: 14px;
  white-space: nowrap;
}

#tg-password-panel .block-lead {
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: break-word;
  hyphens: auto;
  margin-bottom: 16px;
}

#block-wa .block-title {
  font-size: var(--nabu-unified-step-size);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

#block-wa .wa-title-main {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.legal-checklist {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--nabu-body-sm);
  font-weight: 400;
  line-height: 1.45;
}

.legal-cb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.legal-cb:checked {
  background-color: var(--nabu-blue);
  border-color: var(--nabu-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 10px;
}

.legal-cb:focus-visible {
  outline: 2px solid var(--nabu-sky);
  outline-offset: 2px;
}

.legal-item a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-item a:hover {
  color: var(--nabu-sky);
}

.fine-print {
  font-size: var(--nabu-caption);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 12px;
  line-height: 1.5;
}

.fine-print a {
  color: var(--nabu-sky);
}

.security-note {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: var(--nabu-caption);
  line-height: 1.45;
}

.tg-next-step-hint {
  margin: 16px 0 14px;
  text-align: center;
  color: var(--nabu-sky);
  font-size: var(--nabu-section-lead);
  font-weight: 500;
  line-height: 1.35;
}

.phone-legal-hint {
  text-align: center;
  margin-top: -6px;
  margin-bottom: 14px;
}

.code-stage-hint {
  margin: 0 0 14px;
  font-size: var(--nabu-body-sm);
  font-weight: 400;
  line-height: 1.45;
  color: var(--nabu-sky);
  text-align: center;
}

.field-code {
  margin-bottom: 14px;
}

.input-text--code::placeholder {
  color: var(--nabu-sky);
  opacity: 0.95;
  font-size: 0.875rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field-label {
  font-size: var(--nabu-caption);
  font-weight: 500;
  color: #ffffff;
}

.phone-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--nabu-border);
  border-radius: 12px;
  background: #fff;
  overflow: visible;
}

.phone-row:focus-within {
  border-color: var(--nabu-blue);
  box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.25);
}

.phone-row--locked {
  opacity: 0.92;
  pointer-events: none;
  background: #e8e8e8 !important;
}

.phone-row--locked:focus-within {
  border-color: var(--nabu-border);
  box-shadow: none;
}

.phone-row--locked .country-trigger {
  cursor: default;
  background: #e8e8e8;
}

.phone-row--locked .country-trigger:disabled {
  opacity: 1;
  color: #111;
}

.phone-row--locked .phone-number:disabled {
  opacity: 1;
  -webkit-text-fill-color: #111;
  color: #111;
  background: transparent;
}

.country-picker {
  position: relative;
  flex-shrink: 0;
}

.country-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  min-width: 104px;
  padding: 12px 10px 12px 14px;
  font-size: 1rem;
  color: #111;
  background: #f8f8f8;
  border: none;
  border-right: 1px solid #ccc;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.country-trigger:hover {
  background: #eee;
}

.country-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.country-code {
  font-weight: 600;
}

.country-chevron {
  font-size: 0.55rem;
  color: #555;
}

.country-dropdown {
  position: fixed;
  z-index: 200;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: calc(100vw - 32px);
  max-width: 340px;
  max-height: min(72vh, 360px);
  background: #1a1a1a;
  border: 1px solid var(--nabu-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s ease, transform 0.25s ease;
}

.country-dropdown.is-open {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.country-dropdown-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--nabu-muted);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-dropdown-close:hover {
  color: var(--nabu-text);
  background: #2a2a2a;
}

.country-list {
  overflow-y: auto;
  padding: 48px 8px 14px;
  max-height: calc(min(72vh, 360px) - 8px);
  -webkit-overflow-scrolling: touch;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-size: 0.9375rem;
  color: var(--nabu-text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}

.country-option:hover,
.country-option.selected {
  background: #2d2d2d;
}

.country-option .dial {
  min-width: 44px;
  font-weight: 600;
  color: var(--nabu-yellow);
}

.country-option .flag {
  font-size: 1.2rem;
}

.country-option .name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field input.phone-number {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.4;
  color: #111;
  border: none;
  background: transparent;
  border-radius: 0 12px 12px 0;
}

.field input.phone-number:focus {
  outline: none;
}

.input-text {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-size: 16px;
  color: #111;
  border: 1px solid var(--nabu-border);
  border-radius: 12px;
  background: #fff;
}

.input-text:focus {
  outline: none;
  border-color: var(--nabu-blue);
  box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.2);
}

.input-text--code {
  min-height: 56px;
  text-align: center;
}

.checkbox-wrap {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.checkbox-wrap input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--nabu-blue);
}

.checkbox-wrap label {
  margin: 0;
  font-size: var(--nabu-body-sm);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.45;
  cursor: pointer;
}

.field.hidden {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 16px 20px;
  font-family: "Oswald", sans-serif;
  font-size: var(--nabu-body-sm);
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary {
  color: #fff;
  background: var(--nabu-blue);
}

.btn-primary:hover:not(:disabled) {
  background: #3558c4;
}

#btn-submit,
#btn-wa-start {
  font-size: clamp(1.5rem, 5.8vw, 2rem);
  font-weight: 500;
  line-height: 1;
}

.btn-ghost {
  margin-top: 10px;
  background: transparent;
  color: var(--nabu-sky);
  border: 1px solid rgba(135, 206, 235, 0.45);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(135, 206, 235, 0.08);
}

.btn-mega {
  margin-top: 22px;
  padding: 18px 22px;
  font-size: var(--nabu-body-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.subpanel.hidden {
  display: none;
}

.message {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: var(--nabu-caption);
  line-height: 1.45;
}

.message.hidden {
  display: none;
}

.message.error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.45);
  color: #ffb4b4;
}

.message.success {
  background: rgba(65, 105, 225, 0.15);
  border: 1px solid rgba(65, 105, 225, 0.45);
  color: var(--nabu-sky);
}

.rate-limit-timer {
  margin: 8px 0 0;
  font-size: var(--nabu-caption);
  color: var(--nabu-yellow);
  text-align: center;
  line-height: 1.45;
}

.rate-limit-timer.hidden {
  display: none;
}

.global-boot-error {
  text-align: center;
  color: #ffb4b4;
  font-size: var(--nabu-body-sm);
  line-height: 1.45;
  padding: 16px;
}

.global-boot-error.hidden {
  display: none;
}

.video-placeholder {
  margin: 14px 0 18px;
  min-height: 148px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  text-align: center;
  background: rgba(135, 206, 235, 0.12);
}

.accent-sky-border {
  border: 2px dashed rgba(135, 206, 235, 0.45);
}

.video-placeholder-text {
  font-size: var(--nabu-caption);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.45;
  max-width: 280px;
}

/* Встроенное видео: окно 320×400 px */
.video-placeholder.video-placeholder--embed {
  box-sizing: border-box;
  width: 320px;
  max-width: 100%;
  height: 400px;
  margin: 12px auto 16px;
  padding: 0;
  display: block;
  background: #0a0a0a;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: none;
  border-radius: 12px;
  overflow: hidden;
}

#block-wa.flow-block,
#block-wa.flow-block.flow-block--active {
  border: none;
  box-shadow: none;
  background: transparent;
}

.video-placeholder--embed .video-embed {
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
  border-radius: 0;
  background: #0a0a0a;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.video-stub-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.tg-confirm-wrap {
  margin: 10px 0 6px;
}

.tg-confirm-text {
  margin: 0 0 10px;
  font-size: var(--nabu-caption);
  line-height: 1.45;
  color: #ffffff;
  text-align: center;
}

.tg-confirm-image {
  border: 1px solid rgba(135, 206, 235, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.tg-confirm-image img {
  display: block;
  width: 100%;
  height: auto;
}

.wa-steps {
  margin: 0 0 16px;
  padding-left: 1.15rem;
  font-size: var(--nabu-body-sm);
  line-height: 1.5;
}

.wa-setup-steps {
  margin-top: 10px;
}

.wa-autoredirect-note {
  margin: 12px 0 0;
  text-align: center;
  color: #9fdcf6;
  font-size: var(--nabu-caption);
  line-height: 1.4;
}

.wa-steps li {
  margin-bottom: 5px;
}

.wa-code-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 12px 0 18px;
  padding: 22px 16px;
  background: #fff;
  color: #111;
  border: 2px solid var(--nabu-border);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wa-code-box:hover {
  border-color: var(--nabu-blue);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.15);
}

.wa-code-value {
  font-size: clamp(1.5rem, 5.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: var(--nabu-sky);
}

.wa-code-hint {
  font-size: var(--nabu-caption);
  font-weight: 400;
  color: rgba(17, 17, 17, 0.55);
}

.loader-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 12px 20px;
}

.loader-ring {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(135, 206, 235, 0.25);
  border-top-color: var(--nabu-yellow);
  border-radius: 50%;
  animation: nabu-spin 0.85s linear infinite;
}

@keyframes nabu-spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-text {
  margin: 0;
  text-align: center;
  font-size: var(--nabu-body-sm);
  font-weight: 400;
  color: var(--nabu-sky);
  line-height: 1.45;
  max-width: 320px;
}

.sync-text {
  margin: 0;
  text-align: center;
  font-size: var(--nabu-body-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255, 198, 0, 0.15);
  border: 2px solid var(--nabu-yellow);
  color: var(--nabu-yellow);
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.logo-link {
  display: block;
  width: fit-content;
  margin: 20px auto 8px;
  line-height: 0;
  border-radius: 0;
  transition: transform 0.2s;
}

.logo-link:hover {
  transform: scale(1.03);
}

.logo-link img {
  display: block;
  height: auto;
  max-width: 200px;
  width: 100%;
  filter: none;
}

.support-line {
  margin: 22px 0 10px;
  text-align: center;
  font-size: var(--nabu-caption);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.45;
}

.support-line a {
  color: var(--nabu-sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--nabu-border);
  color: var(--nabu-sky);
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--nabu-yellow);
  color: var(--nabu-yellow);
}

.social-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.social-icon--site {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.25);
}

#block-success .block-title {
  font-size: clamp(1.75rem, 5.5vw, 2.15rem);
  font-weight: 700;
  margin-bottom: 14px;
}

#block-success .hero-text {
  margin: 0 0 12px;
  font-size: var(--nabu-body-sm);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.45;
  text-align: center;
}

#block-success .block-lead {
  font-size: clamp(1.75rem, 5.5vw, 2.15rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding: 16px env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.video-modal.hidden {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-instruction {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.video-instruction-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

.video-instruction::-webkit-media-controls {
  display: none !important;
}

@media (max-width: 480px) {
  .nabu-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .flow-block {
    padding: 18px 15px 20px;
    border-radius: 16px;
  }
}

/* 2026 Nabû registration redesign */
:root {
  --nabu-blue: #13b8ff;
  --nabu-sky: #67d9ff;
  --nabu-yellow: #ffc318;
  --nabu-red: #c60035;
  --nabu-violet: #5224a8;
  --nabu-bg: #000;
  --nabu-surface: rgba(13, 15, 23, 0.82);
  --nabu-border: rgba(255, 255, 255, 0.14);
  --nabu-text: #fff;
  --nabu-muted: rgba(255, 255, 255, 0.62);
  --nabu-sticky-offset: 118px;
  --nabu-section-title: clamp(1.45rem, 2vw, 2rem);
  --nabu-section-lead: 1rem;
  --nabu-body-sm: 0.95rem;
  --nabu-caption: 0.82rem;
}

html {
  background: #000;
}

.nabu-body {
  position: relative;
  overflow-x: hidden;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 74% 8%, rgba(33, 43, 149, 0.2), transparent 28rem),
    radial-gradient(circle at 92% 62%, rgba(174, 0, 53, 0.12), transparent 32rem),
    #000;
}

.nabu-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), transparent 72%);
}

.nabu-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.94fr) minmax(640px, 1.06fr);
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
}

.nabu-brand-panel {
  position: sticky;
  top: 0;
  grid-column: 1;
  grid-row: 1 / 3;
  height: 100dvh;
  min-height: 720px;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.78) 48%, rgba(0,0,0,0.1) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.04) 0%, #000 100%),
    url("/registration-visual.jpg") center / cover no-repeat;
}

.nabu-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.82)),
    linear-gradient(135deg, rgba(198,0,53,0.12), transparent 42%, rgba(82,36,168,0.14));
}

.nabu-brand-glow {
  position: absolute;
  z-index: 1;
  right: -18%;
  bottom: 11%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(19,184,255,0.12);
  filter: blur(90px);
}

.nabu-brand-watermark {
  position: absolute;
  z-index: 1;
  right: -24%;
  bottom: -13%;
  width: min(48vw, 820px);
  max-width: none;
  opacity: 0.3;
  transform: rotate(-8deg);
}

.nabu-brand-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(36px, 5vw, 84px);
}

.nabu-brand-home {
  display: inline-flex;
  width: 118px;
  transition: transform 300ms ease, opacity 300ms ease;
}

.nabu-brand-home:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

.nabu-brand-home img {
  display: block;
  width: 100%;
  height: auto;
}

.nabu-brand-copy {
  margin: auto 0;
  max-width: 710px;
}

.nabu-brand-kicker {
  margin: 0 0 22px;
  font-size: clamp(0.78rem, 0.9vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nabu-sky);
}

.nabu-brand-copy h2 {
  margin: 0;
  font-size: clamp(4.4rem, 7.2vw, 8.5rem);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.06em;
}

.nabu-brand-copy > p:last-child {
  max-width: 610px;
  margin: 36px 0 0;
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  font-weight: 600;
  line-height: 1.48;
  color: rgba(255,255,255,0.76);
}

.nabu-brand-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nabu-brand-points > div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(16px);
}

.nabu-brand-points span {
  display: block;
  margin-bottom: 16px;
  color: var(--nabu-sky);
  font-size: 0.75rem;
  font-weight: 800;
}

.nabu-brand-points p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.nabu-brand-note {
  margin: 22px 0 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.48);
}

.nabu-progress-head {
  position: sticky;
  top: 0;
  z-index: 100;
  grid-column: 2;
  grid-row: 1;
  padding: 22px clamp(28px, 4vw, 70px) 18px;
  background: rgba(0,0,0,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(22px);
}

.progress-caption {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  color: rgba(255,255,255,0.56);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-track {
  height: 13px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}

.progress-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, #c60035 0%, #742091 54%, #13b8ff 100%);
  clip-path: none;
  box-shadow: 0 0 22px rgba(19,184,255,0.32);
}

.progress-pct {
  top: 22px;
  bottom: auto;
  right: clamp(28px, 4vw, 70px);
  left: auto;
  width: auto;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
}

.nabu-main {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(42px, 5vw, 78px) clamp(28px, 4vw, 70px) 100px;
}

.hero-block {
  margin-bottom: clamp(38px, 5vw, 70px);
  padding: 0;
  text-align: left;
}

.hero-title,
.hero-tagline,
.hero-line,
.block-title,
.block-lead,
.btn,
.progress-pct {
  font-family: "Manrope", sans-serif;
}

.hero-title {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(2.4rem, 4.2vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-title-line {
  white-space: normal;
}

.hero-title-brand {
  color: var(--nabu-sky);
}

.hero-tagline {
  margin: 0 0 42px;
  color: rgba(255,255,255,0.58);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  font-weight: 700;
}

.hero-line--white,
.hero-line--sky {
  align-items: flex-start;
  text-align: left;
}

.hero-line--white .hero-line-row,
.hero-line--sky .hero-line-row {
  text-align: left;
}

.hero-line--white {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-line--sky {
  margin-top: 24px;
  color: var(--nabu-sky);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.38;
}

.flow-block {
  position: relative;
  margin-bottom: 24px;
  padding: clamp(26px, 3vw, 40px);
  overflow: visible;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0 34px 0 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    rgba(7,9,15,0.78);
  box-shadow: 0 24px 80px rgba(0,0,0,0.24);
  backdrop-filter: blur(18px);
}

.flow-block::before {
  content: attr(data-step);
  position: absolute;
  top: 16px;
  right: 20px;
  color: rgba(255,255,255,0.1);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-block--active {
  border-color: rgba(19,184,255,0.64);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.32),
    0 0 0 1px rgba(19,184,255,0.12),
    0 0 44px rgba(19,184,255,0.08);
}

.flow-block--locked {
  opacity: 0.32;
  filter: grayscale(0.42);
}

.block-title,
#block-tg .block-title,
#block-tg .block-lead,
#block-wa .block-title {
  width: auto;
  text-align: left;
  white-space: normal;
}

.block-title,
#block-tg .block-title,
#block-wa .block-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.25vw, 2.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.block-lead,
#block-tg .block-lead,
#block-tg > .block-lead {
  margin: 0 0 24px;
  color: var(--nabu-sky);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.legal-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.legal-item {
  min-height: 90px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.025);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.legal-item:hover {
  transform: translateY(-2px);
  border-color: rgba(19,184,255,0.44);
  background: rgba(19,184,255,0.045);
}

.legal-item a {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration-color: rgba(255,255,255,0.35);
}

.legal-cb {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,0.68);
  border-radius: 6px;
}

.legal-cb:checked {
  border-color: var(--nabu-sky);
  background-color: var(--nabu-blue);
}

.subpanel {
  margin-top: 26px;
}

.field {
  gap: 10px;
  margin-bottom: 18px;
}

.field-label {
  color: rgba(255,255,255,0.68);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.phone-row,
.input-text {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}

.phone-row:focus-within,
.input-text:focus {
  border-color: var(--nabu-sky);
  box-shadow: 0 0 0 3px rgba(19,184,255,0.18);
}

.country-trigger {
  min-height: 58px;
  border-radius: 12px 0 0 12px;
}

.field input.phone-number,
.input-text {
  min-height: 58px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

.btn {
  min-height: 58px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

#btn-submit,
#btn-wa-start {
  font-size: 1rem;
  font-weight: 800;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, #c9003d 0%, #792194 52%, #14baff 100%);
  box-shadow: 0 16px 38px rgba(88,34,166,0.22);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(100deg, #e00046 0%, #8c2aab 52%, #2bc3ff 100%);
  box-shadow: 0 20px 46px rgba(19,184,255,0.2);
}

.btn-ghost {
  border-color: rgba(19,184,255,0.36);
  color: var(--nabu-sky);
}

.tg-next-step-hint,
.tg-confirm-text,
.wa-autoredirect-note {
  color: rgba(255,255,255,0.62);
  font-size: 0.8rem;
  line-height: 1.55;
}

.video-placeholder.video-placeholder--embed {
  width: min(100%, 520px);
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 28px auto;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 0 34px 0 34px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.34);
}

.tg-confirm-image {
  border-color: rgba(255,255,255,0.14);
  border-radius: 0 24px 0 24px;
}

.wa-steps {
  columns: 2;
  column-gap: 36px;
  padding-left: 1.2rem;
  color: rgba(255,255,255,0.78);
}

.wa-steps li {
  break-inside: avoid;
  margin-bottom: 10px;
}

.success-icon {
  margin-left: 0;
}

.logo-link {
  margin-left: 0;
}

.support-line {
  text-align: left;
}

.social-row {
  justify-content: flex-start;
}

.social-link {
  border-radius: 50%;
}

.country-dropdown {
  border-color: rgba(255,255,255,0.15);
  background: rgba(10,12,18,0.98);
  backdrop-filter: blur(20px);
}

.video-modal-inner {
  max-width: 520px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0 34px 0 34px;
}

@media (max-width: 1180px) {
  .nabu-layout {
    grid-template-columns: minmax(340px, 0.78fr) minmax(600px, 1.22fr);
  }

  .nabu-brand-content {
    padding: 42px;
  }

  .nabu-brand-copy h2 {
    font-size: clamp(4rem, 7vw, 6.4rem);
  }

  .nabu-brand-points {
    grid-template-columns: 1fr;
  }

  .nabu-brand-points > div {
    display: flex;
    min-height: auto;
    gap: 16px;
    align-items: center;
  }

  .nabu-brand-points span {
    margin: 0;
  }
}

@media (max-width: 920px) {
  :root {
    --nabu-sticky-offset: 82px;
  }

  .nabu-layout {
    display: flex;
    flex-direction: column;
  }

  .nabu-brand-panel {
    display: none;
  }

  .nabu-progress-head {
    width: 100%;
    padding: max(14px, env(safe-area-inset-top)) 18px 14px;
  }

  .progress-caption {
    display: none;
  }

  .progress-pct {
    top: 14px;
    right: 24px;
    font-size: 0.67rem;
  }

  .nabu-main {
    max-width: 620px;
    padding: 34px 20px max(72px, env(safe-area-inset-bottom));
  }

  .hero-block {
    margin-bottom: 34px;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.15rem, 9.2vw, 3.8rem);
    line-height: 1.03;
  }

  .hero-tagline {
    margin-bottom: 32px;
    font-size: 0.82rem;
  }

  .hero-line--white,
  .hero-line--sky {
    align-items: center;
    text-align: center;
  }

  .hero-line--white .hero-line-row,
  .hero-line--sky .hero-line-row {
    text-align: center;
  }

  .hero-line--white {
    font-size: clamp(1.8rem, 8.6vw, 2.8rem);
  }

  .hero-line--sky {
    font-size: clamp(0.95rem, 4.4vw, 1.18rem);
  }

  .flow-block {
    padding: 24px 20px 26px;
    border-radius: 0 28px 0 28px;
  }

  .block-title,
  #block-tg .block-title,
  #block-tg .block-lead,
  #block-wa .block-title,
  .block-lead,
  #block-tg > .block-lead {
    text-align: center;
  }

  .legal-checklist {
    grid-template-columns: 1fr;
  }

  .legal-item {
    min-height: auto;
  }

  .wa-steps {
    columns: 1;
  }

  .success-icon {
    margin-left: auto;
  }

  .logo-link {
    margin-left: auto;
  }

  .support-line {
    text-align: center;
  }

  .social-row {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nabu-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero-line--white .hero-line-row,
  .hero-line--sky .hero-line-row {
    white-space: normal;
  }

  .flow-block {
    padding: 22px 16px 24px;
  }

  .flow-block::before {
    display: none;
  }

  .video-placeholder.video-placeholder--embed {
    border-radius: 0 26px 0 26px;
  }
}
