/* Фирменные цвета — design-tokens.json (Иммерсивный колледж «Юность») */
:root {
  --color-dark: #1c1c1b;
  --color-beige: #ece6dd;
  --color-green: #00a870;
  --color-pink: #e60064;
  --color-orange: #f59b32;
  --color-white: #ffffff;
  --color-muted: rgba(236, 230, 221, 0.72);
  --color-border: rgba(236, 230, 221, 0.12);

  --bg: var(--color-dark);
  --card: #141413;
  --text: var(--color-beige);
  --accent: var(--color-green);
  --accent-2: var(--color-pink);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--color-dark);
  background-image:
    radial-gradient(900px 480px at 12% -8%, rgba(0, 168, 112, 0.14) 0%, transparent 55%),
    radial-gradient(700px 400px at 88% 20%, rgba(230, 0, 100, 0.1) 0%, transparent 50%),
    radial-gradient(600px 360px at 50% 100%, rgba(245, 155, 50, 0.08) 0%, transparent 45%);
  color: var(--text);
}

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top {
  margin-bottom: 0.75rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.brand-logo {
  flex-shrink: 0;
  width: auto;
  height: 36px;
  max-width: min(200px, 55vw);
  object-fit: contain;
  object-position: left center;
  /* Логотип из файла чёрный — инверсия для тёмного фона */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.brand-text {
  line-height: 1.25;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: linear-gradient(165deg, rgba(236, 230, 221, 0.07) 0%, rgba(20, 20, 19, 0.98) 42%);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
}

/* Вступление: одна обложка */
.intro-visual {
  margin: 0 0 1.1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  line-height: 0;
}

.intro-visual img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.08rem;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-weight: 600;
}

p.lead {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.02rem;
}

p.step-text {
  margin: 0 0 1rem;
  line-height: 1.62;
  font-size: 1.04rem;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  text-align: left;
  color: var(--text);
  background: rgba(236, 230, 221, 0.06);
  border: 1px solid var(--color-border);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

button:hover,
button:focus-visible {
  background: rgba(0, 168, 112, 0.12);
  border-color: rgba(0, 168, 112, 0.35);
  outline: none;
}

button:active {
  transform: translateY(1px);
}

button.primary {
  background: linear-gradient(125deg, var(--color-green), #009060);
  border-color: transparent;
  text-align: center;
  font-weight: 600;
  color: var(--color-white);
}

button.primary:hover,
button.primary:focus-visible {
  background: linear-gradient(125deg, #00c080, var(--color-green));
  border-color: transparent;
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.role-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
}

.role-btn__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background: rgba(236, 230, 221, 0.08);
  border: 2px solid var(--color-border);
}

.role-btn__body {
  flex: 1;
  min-width: 0;
}

.role-btn strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.role-btn span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

/* Шаг: иллюстрация и метка этапа */
.step-header {
  margin-bottom: 1rem;
}

.step-figure {
  margin: 0 0 0.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  line-height: 0;
}

.step-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.stage-badge--1 {
  background: var(--color-green);
}

.stage-badge--2 {
  background: var(--color-pink);
  color: var(--color-white);
}

.stage-badge--3 {
  background: var(--color-orange);
  color: var(--color-dark);
}

.stage-dots {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  justify-content: center;
}

.stage-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(236, 230, 221, 0.2);
}

.stage-dots span.is-active {
  background: var(--color-green);
  box-shadow: 0 0 0 2px rgba(0, 168, 112, 0.35);
}

.stage-dots span.is-done {
  background: var(--color-pink);
}

/* Итог */
.result-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.15rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(236, 230, 221, 0.05);
  border: 1px solid var(--color-border);
}

.result-hero__avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid rgba(0, 168, 112, 0.45);
  background: rgba(28, 28, 27, 0.6);
}

.result-hero__text h2 {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-size: 1.15rem;
}

.result-hero__text p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.result-accent-bar {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--color-green), var(--color-pink), var(--color-orange));
}

.result-block {
  margin-bottom: 1rem;
}

.result-block h2 {
  color: var(--text);
  font-size: 1.02rem;
}

.reward-block {
  margin: 1rem 0 0.25rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 168, 112, 0.45);
  background: linear-gradient(
    145deg,
    rgba(0, 168, 112, 0.12) 0%,
    rgba(236, 230, 221, 0.06) 100%
  );
}

.reward-block h2 {
  color: var(--color-green);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.share-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.foot {
  margin-top: 2rem;
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

a {
  color: var(--color-green);
}

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

@media (min-width: 480px) {
  h1 {
    font-size: 1.72rem;
  }

  .result-hero__avatar {
    width: 84px;
    height: 84px;
  }
}
