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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  background: #0b1020;
}

.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(97, 40, 255, 0.35), transparent),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(20, 184, 166, 0.12), transparent),
    #0b1020;
}

.card {
  width: min(420px, 100%);
  padding: 2rem 1.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: block;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #6128ff, #7c4dff);
  color: #fff;
  box-shadow: 0 8px 24px rgba(97, 40, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hint {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
}

.hint strong {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.hint-ru {
  display: block;
  margin-top: 0.4rem;
}

.test-link {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.test-link a {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: none;
}

.test-link a:hover {
  text-decoration: underline;
}

.viewer {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: #0b1020;
}

.bar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bar-left {
  justify-self: start;
}

.bar-right {
  justify-self: end;
}

.back {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.back:hover {
  text-decoration: underline;
}

.bar-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.external {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4b5fd;
  text-decoration: none;
  white-space: nowrap;
}

.external:hover {
  color: #e9d5ff;
  text-decoration: underline;
}

.frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}
