:root {
  color-scheme: light;
  --nav-height: 72px;
  --bg: #f5f3ee;
  --bg-blue: #eaf1f3;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-muted: #f9f8f4;
  --text: #17212b;
  --muted: #62707d;
  --muted-strong: #43515f;
  --line: rgba(124, 141, 156, 0.22);
  --line-strong: rgba(74, 95, 112, 0.28);
  --blue: #2f6f9f;
  --blue-dark: #244f76;
  --teal: #3c8f84;
  --purple: #7666a6;
  --rose: #9a6b61;
  --gold: #b58a4a;
  --focus: #0f75bc;
  --shadow-soft: 0 24px 70px rgba(23, 33, 43, 0.12);
  --shadow-subtle: 0 14px 36px rgba(23, 33, 43, 0.08);
  --shadow-tiny: 0 8px 20px rgba(23, 33, 43, 0.06);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(115deg, rgba(47, 111, 159, 0.13), transparent 36%),
    linear-gradient(245deg, rgba(60, 143, 132, 0.12), transparent 42%),
    linear-gradient(145deg, var(--bg-blue), var(--bg) 44%, #f8f6f0 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(47, 111, 159, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 159, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.64), transparent 82%);
}

body,
button,
input {
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(15, 117, 188, 0.32);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--text);
  color: #ffffff;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(247, 246, 241, 0.72);
  padding: 0.78rem max(1.25rem, calc((100vw - var(--max-width)) / 2));
  backdrop-filter: blur(22px) saturate(1.08);
  box-shadow: 0 1px 0 rgba(42, 60, 75, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 780;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(47, 111, 159, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 248, 0.82));
  color: var(--blue-dark);
  font-size: 0.9rem;
  box-shadow: var(--shadow-tiny);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.44);
  padding: 0.18rem;
}

.site-nav a {
  border-radius: 7px;
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  background: rgba(47, 111, 159, 0.09);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.language-control {
  display: inline-flex;
}

.language-control select {
  min-height: 2.3rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted-strong);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 720;
  padding: 0.45rem 2rem 0.45rem 0.7rem;
  box-shadow: var(--shadow-tiny);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.section-band {
  position: relative;
  padding: 5.4rem max(1.25rem, calc((100vw - var(--max-width)) / 2));
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100vh - var(--nav-height, 72px));
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(248, 251, 253, 0.98) 0%, rgba(248, 251, 253, 0.88) 36%, rgba(248, 251, 253, 0.36) 62%, rgba(248, 251, 253, 0.08) 100%),
    url("../assets/images/hero-personality-bg.png");
  background-position: center right;
  background-size: cover;
  padding: 5.2rem max(1.25rem, calc((100vw - var(--max-width)) / 2)) 4rem;
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.74), transparent 35%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent 65%);
}

.hero::after,
.result-shell::after {
  position: absolute;
  right: 6%;
  bottom: 10%;
  width: 30rem;
  height: 18rem;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(47, 111, 159, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(47, 111, 159, 0.04));
  opacity: 0.75;
  transform: rotate(-8deg);
}

.hero::after {
  content: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 36%, rgba(255, 255, 255, 0.2));
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__copy,
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
  animation: heroIn 680ms ease both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 830;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 1rem;
  font-size: 3.82rem;
  line-height: 1.03;
  font-weight: 840;
}

.hero h1 {
  display: grid;
  gap: 0.05em;
  max-width: 720px;
  margin-bottom: 1.05rem;
  color: #183044;
  font-size: 5.35rem;
  font-weight: 860;
  line-height: 0.96;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.48);
}

html[lang="ru"] .hero h1 {
  font-size: 5.05rem;
}

.hero h1 .accent {
  color: var(--teal);
}

h2 {
  margin-bottom: 0.85rem;
  font-size: 2.15rem;
  line-height: 1.14;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.14rem;
  line-height: 1.25;
}

.subtitle {
  max-width: 620px;
  color: var(--blue-dark);
  font-size: 1.26rem;
  font-weight: 720;
}

.hero__subtitle {
  max-width: 620px;
  margin-bottom: 2rem;
  color: var(--blue);
  font-size: 1.42rem;
  font-weight: 780;
  line-height: 1.35;
}

.hero-copy > p:not(.eyebrow, .subtitle) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-chips,
.example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1rem;
}

.hero__micro-disclaimer {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
}

.hero-chips {
  margin: 1.25rem 0 1.35rem;
}

.hero-chips span,
.example-list li {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 6px 18px rgba(23, 33, 43, 0.05);
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 760;
  padding: 0.42rem 0.65rem;
}

.disclaimer,
.remember-box,
.trust-note,
.strength-summary {
  border: 1px solid rgba(60, 143, 132, 0.18);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 249, 0.66));
  color: #344250;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-tiny);
}

.trust-note {
  display: grid;
  gap: 0.18rem;
  max-width: 640px;
}

.trust-note strong,
.remember-box strong {
  color: var(--text);
}

.hero-actions,
.test-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.hero__actions .button {
  min-width: 10.8rem;
  gap: 0.7rem;
  min-height: 3.08rem;
  padding: 0.78rem 1.28rem;
}

.button {
  display: inline-flex;
  min-height: 2.78rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 790;
  line-height: 1.15;
  padding: 0.76rem 1.1rem;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled,
.button-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button-primary {
  background:
    linear-gradient(135deg, var(--blue), #2e7f90);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(47, 111, 159, 0.2);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 18px 36px rgba(47, 111, 159, 0.28);
}

.button-secondary {
  border-color: rgba(79, 101, 118, 0.25);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
}

.button-secondary:hover:not(:disabled) {
  border-color: rgba(47, 111, 159, 0.38);
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-dark);
}

.button-disabled {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--muted);
}

.text-button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 760;
  padding: 0.5rem 0.65rem;
  transition: background 180ms ease, border-color 180ms ease;
}

.text-button:hover {
  border-color: rgba(47, 111, 159, 0.16);
  background: rgba(47, 111, 159, 0.08);
}

.quick-facts {
  border-top: 1px solid rgba(20, 40, 60, 0.08);
  border-bottom: 1px solid rgba(20, 40, 60, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding-inline: max(1.25rem, calc((100vw - var(--max-width)) / 2));
  backdrop-filter: blur(14px);
}

.quick-facts__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.96rem 0;
}

.quick-fact {
  min-height: 4rem;
  border-right: 1px solid rgba(20, 40, 60, 0.08);
  padding: 0.45rem 1.25rem;
}

.quick-fact:first-child {
  padding-left: 0;
}

.quick-fact:last-child {
  border-right: 0;
  padding-right: 0;
}

.quick-fact strong,
.quick-fact span {
  display: block;
}

.quick-fact strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 820;
  line-height: 1.18;
}

.quick-fact span {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
}

.safety-note {
  background: rgba(248, 251, 253, 0.42);
  padding: 1.25rem max(1.25rem, calc((100vw - var(--max-width)) / 2)) 0;
}

.safety-note__inner {
  border: 1px solid rgba(60, 143, 132, 0.16);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-tiny);
  padding: 0.78rem 1rem;
}

.safety-note p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 640;
  line-height: 1.46;
}

.explanation {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
}

.section-heading {
  max-width: 740px;
  margin-bottom: 1.9rem;
}

.section-heading p {
  color: var(--muted);
}

.section-heading.compact {
  margin-bottom: 1rem;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dimension-card {
  position: relative;
  display: flex;
  min-height: 238px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  box-shadow: var(--shadow-subtle);
  padding: 1.28rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dimension-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--blue);
}

.dimension-card::after {
  position: absolute;
  right: -1.8rem;
  top: -1.6rem;
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(47, 111, 159, 0.12);
  border-radius: var(--radius);
  content: "";
  transform: rotate(18deg);
}

.dimension-card:hover {
  border-color: rgba(47, 111, 159, 0.22);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.dimension-card h3 {
  margin-bottom: 0.35rem;
}

.dimension-card p {
  margin-bottom: 0.85rem;
  color: var(--muted-strong);
  font-weight: 650;
}

.dimension-card small {
  display: block;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.dimension-code {
  display: inline-flex;
  width: fit-content;
  min-width: 3.2rem;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(47, 111, 159, 0.1);
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 840;
  margin-bottom: 1rem;
  padding: 0.34rem 0.58rem;
}

.dimension-info::before {
  background: var(--teal);
}

.dimension-info .dimension-code {
  background: rgba(60, 143, 132, 0.12);
  color: #246d65;
}

.dimension-choice::before {
  background: var(--purple);
}

.dimension-choice .dimension-code {
  background: rgba(118, 102, 166, 0.13);
  color: #5b4b8b;
}

.dimension-structure::before {
  background: var(--rose);
}

.dimension-structure .dimension-code {
  background: rgba(154, 107, 97, 0.12);
  color: #7c574e;
}

.test-shell,
.tie-shell,
.result-shell {
  background:
    linear-gradient(180deg, rgba(237, 244, 244, 0.58), rgba(248, 246, 240, 0.82));
}

.test-card,
.result-card {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68));
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  backdrop-filter: blur(18px);
}

.test-card::before,
.result-card::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--purple));
}

.test-topline,
.result-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.progress-shell {
  margin: 1.05rem 0 1.3rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 760;
  margin-bottom: 0.55rem;
}

.progress-track {
  height: 0.62rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  background: rgba(226, 233, 235, 0.9);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 320ms ease;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.32rem;
  margin-top: 0.72rem;
}

.progress-steps span {
  height: 0.35rem;
  border-radius: var(--radius);
  background: rgba(98, 112, 125, 0.17);
  transition: background 220ms ease, transform 220ms ease;
}

.progress-steps span.is-done {
  background: rgba(60, 143, 132, 0.42);
}

.progress-steps span.is-current {
  background: var(--blue);
  transform: translateY(-1px);
}

.question-card {
  min-width: 0;
  margin: 0 0 0.78rem;
  border: 1px solid rgba(124, 141, 156, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(249, 248, 244, 0.86));
  padding: 0.9rem;
}

.question-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.78rem;
  align-items: start;
  color: var(--text);
  font-size: 0.99rem;
  font-weight: 770;
  line-height: 1.42;
  padding: 0;
}

.question-number {
  display: inline-grid;
  width: 2.35rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(47, 111, 159, 0.18);
  border-radius: var(--radius);
  background: rgba(47, 111, 159, 0.08);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 840;
}

.question-text {
  padding-top: 0.12rem;
}

.scale-cues {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  margin: 0.68rem 0 0.36rem;
  text-transform: uppercase;
}

.likert-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(6.8rem, 1fr));
  gap: 0.42rem;
}

.answer-option {
  min-width: 0;
}

.answer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-option span {
  position: relative;
  display: flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124, 141, 156, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: #334252;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.16;
  padding: 0.55rem 0.72rem;
  text-align: center;
  white-space: normal;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.answer-option span::after {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  width: 0.42rem;
  height: 0.7rem;
  border-bottom: 2px solid transparent;
  border-right: 2px solid transparent;
  content: "";
  transform: translateY(-58%) rotate(38deg);
  transition: border-color 160ms ease;
}

.answer-option:hover span {
  border-color: rgba(47, 111, 159, 0.38);
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.answer-option input:focus-visible + span {
  outline: 3px solid rgba(15, 117, 188, 0.3);
  outline-offset: 2px;
}

.answer-option input:checked + span {
  border-color: rgba(47, 111, 159, 0.68);
  background: linear-gradient(135deg, rgba(47, 111, 159, 0.16), rgba(60, 143, 132, 0.1));
  box-shadow: inset 0 0 0 1px rgba(47, 111, 159, 0.18);
  color: var(--blue-dark);
}

.answer-option input:checked + span::after {
  border-color: var(--blue-dark);
}

#questionForm.is-entering {
  animation: questionEnter 240ms ease both;
}

.test-actions {
  justify-content: space-between;
  margin-top: 1.05rem;
}

.form-message {
  flex: 1;
  align-self: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  text-align: center;
}

.is-hidden {
  display: none;
}

.tie-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.tie-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  padding: 1rem;
}

.tie-card legend {
  color: var(--text);
  font-weight: 800;
  padding: 0;
}

.tie-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.tie-option {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(124, 141, 156, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  padding: 0.9rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.tie-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tie-option strong {
  color: var(--text);
}

.tie-option span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tie-option:has(input:checked) {
  border-color: rgba(60, 143, 132, 0.72);
  background: rgba(60, 143, 132, 0.1);
  box-shadow: inset 0 0 0 1px rgba(60, 143, 132, 0.18);
}

.tie-option:has(input:focus-visible) {
  outline: 3px solid rgba(15, 117, 188, 0.3);
  outline-offset: 2px;
}

.result-card {
  max-width: 1080px;
  animation: resultEnter 360ms ease both;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.36fr);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.45rem;
}

.result-main-copy {
  max-width: 760px;
}

.result-hero h2 {
  margin-bottom: 0.35rem;
  font-size: 2.55rem;
}

.result-nickname {
  margin-bottom: 0.9rem;
  color: var(--blue-dark);
  font-size: 1.2rem;
  font-weight: 800;
}

.result-description {
  margin: 0;
  color: #334252;
  font-size: 1.03rem;
}

.type-card {
  align-self: stretch;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(47, 111, 159, 0.12), rgba(255, 255, 255, 0.64));
  box-shadow: var(--shadow-tiny);
  padding: 1rem;
}

.type-card-label,
.summary-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.type-letters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.type-letters span {
  display: grid;
  min-height: 4.35rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.type-letters strong {
  color: var(--blue-dark);
  font-size: 1.45rem;
  line-height: 1;
}

.type-letters small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 740;
}

.result-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.remember-box {
  margin: 0;
}

.strength-summary {
  border-left-color: var(--purple);
}

.strength-summary strong {
  display: block;
  color: var(--text);
  line-height: 1.35;
}

.result-section {
  border-top: 1px solid var(--line);
  padding-top: 1.55rem;
  margin-top: 1.55rem;
}

.axis-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.axis-result {
  border: 1px solid rgba(124, 141, 156, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(249, 248, 244, 0.8));
  padding: 1rem;
}

.axis-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.82rem;
}

.axis-name {
  display: block;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 800;
  margin-bottom: 0.18rem;
  text-transform: uppercase;
}

.axis-result strong {
  display: block;
  line-height: 1.35;
}

.confidence-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(118, 102, 166, 0.22);
  border-radius: var(--radius);
  background: rgba(118, 102, 166, 0.09);
  color: #5d5181;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
}

.axis-meter {
  height: 0.68rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(230, 234, 237, 0.86);
}

.axis-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 420ms ease;
}

.axis-meter-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 820;
  margin-top: 0.38rem;
}

.axis-note {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.meaning-section p,
.examples-section p,
.share-section p {
  color: var(--muted);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fit-grid .result-section {
  border: 1px solid rgba(124, 141, 156, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  padding: 1.15rem;
}

.result-list {
  margin: 0;
  padding-left: 1.15rem;
}

.result-list li + li {
  margin-top: 0.42rem;
}

.example-list {
  list-style: none;
  margin: 1rem 0 1.2rem;
  padding: 0;
}

.example-list li {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.example-list li:hover {
  border-color: rgba(47, 111, 159, 0.24);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  margin-top: 1.55rem;
  padding-top: 1.25rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(124, 141, 156, 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.25rem max(1.25rem, calc((100vw - var(--max-width)) / 2));
}

.site-footer p {
  margin: 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes questionEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes resultEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1060px) {
  .hero {
    min-height: 88vh;
    background-position: 62% center;
    padding-top: 6.8rem;
    padding-bottom: 4.5rem;
  }

  .hero__copy,
  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    font-size: 4.75rem;
  }

  html[lang="ru"] .hero h1 {
    font-size: 4.45rem;
  }

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

  .likert-scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .answer-option span {
    justify-content: flex-start;
    text-align: left;
  }

  .answer-option span::after {
    right: 0.7rem;
  }
}

@media (min-width: 900px) and (max-height: 820px) {
  .hero {
    min-height: calc(100vh - var(--nav-height));
    padding-top: 3.65rem;
    padding-bottom: 2.55rem;
  }

  .hero h1 {
    font-size: 4.8rem;
    margin-bottom: 0.92rem;
  }

  html[lang="ru"] .hero h1 {
    font-size: 4.45rem;
  }

  .hero__subtitle {
    max-width: 580px;
    margin-bottom: 1.55rem;
    font-size: 1.27rem;
  }

  .hero__actions {
    margin-bottom: 0.8rem;
  }

  .hero__actions .button {
    min-height: 2.86rem;
    padding-top: 0.66rem;
    padding-bottom: 0.66rem;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    background-image:
      linear-gradient(180deg, rgba(244, 249, 252, 0.98), rgba(244, 249, 252, 0.9)),
      url("../assets/images/hero-personality-bg.png");
    background-position: 70% center;
    padding: 7rem 1.25rem 4rem;
  }

  .hero h1 {
    font-size: 3.85rem;
  }

  html[lang="ru"] .hero h1 {
    font-size: 3.5rem;
  }

  .hero__subtitle {
    max-width: 560px;
    margin-bottom: 1.55rem;
    font-size: 1.22rem;
  }

  .quick-facts__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-fact {
    border-bottom: 1px solid rgba(20, 40, 60, 0.08);
  }

  .quick-fact:nth-child(2n) {
    border-right: 0;
  }

  .quick-fact:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .quick-fact:first-child,
  .quick-fact:last-child {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-band {
    padding-top: 3.6rem;
    padding-bottom: 3.6rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  .result-hero,
  .result-summary-grid,
  .axis-list,
  .fit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .language-control,
  .language-control select {
    width: 100%;
  }

  .section-band {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .subtitle {
    font-size: 1.05rem;
  }

  .hero__actions,
  .hero-actions,
  .test-actions,
  .test-topline,
  .site-footer,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .text-button {
    width: 100%;
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  html[lang="ru"] .hero h1 {
    font-size: 2.72rem;
  }

  .hero__micro-disclaimer {
    font-size: 0.88rem;
  }

  .quick-facts {
    padding-inline: 1rem;
  }

  .quick-facts__inner {
    padding: 0.72rem 0;
  }

  .quick-fact {
    min-height: 3.72rem;
    padding: 0.5rem 0.85rem;
  }

  .dimension-grid,
  .tie-options {
    grid-template-columns: 1fr;
  }

  .dimension-card {
    min-height: 0;
  }

  .test-card,
  .result-card {
    padding: 1.1rem;
  }

  .question-title {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .question-number {
    width: fit-content;
    padding: 0 0.65rem;
  }

  .likert-scale {
    grid-template-columns: 1fr;
  }

  .answer-option span {
    min-height: 2.58rem;
    padding-left: 0.78rem;
  }

  .progress-steps {
    gap: 0.2rem;
  }

  .form-message {
    order: -1;
    text-align: left;
  }

  .axis-result-header {
    flex-direction: column;
  }

  .confidence-pill {
    width: fit-content;
  }
}

@media (max-width: 360px) {
  .quick-facts__inner {
    grid-template-columns: 1fr;
  }

  .quick-fact,
  .quick-fact:nth-child(2n),
  .quick-fact:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(20, 40, 60, 0.08);
  }

  .quick-fact:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
