:root {
  --blue: #123dd7;
  --blue-dark: #09257f;
  --blue-soft: #e9efff;
  --lime: #c9f238;
  --lime-dark: #a6d312;
  --ink: #10204a;
  --muted: #64708d;
  --paper: #f7f8fc;
  --white: #ffffff;
  --line: #dfe4f0;
  --orange: #ff7b44;
  --shadow: 0 20px 60px rgba(14, 34, 91, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  color: var(--white);
  background: var(--blue-dark);
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  width: min(calc(100% - 40px), var(--max-width));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: clamp(128px, 14vw, 176px);
  height: auto;
  display: block;
}

.header-badge {
  padding: 8px 14px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
}

main {
  min-height: calc(100vh - 286px);
}

.hero {
  position: relative;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 650px;
  margin: 8px auto 56px;
  padding: 76px 64px 48px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: 1fr auto;
  gap: 42px 34px;
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  left: -110px;
  bottom: -210px;
  width: 560px;
  height: 330px;
  background: var(--blue-dark);
  border-radius: 50%;
  opacity: 0.32;
  transform: rotate(10deg);
}

.hero-copy,
.hero-visual,
.privacy-note {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 27px;
  height: 3px;
  background: currentColor;
  border-radius: 99px;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(46px, 5.8vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 600px;
  margin: 28px 0 32px;
  color: #e6ebff;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button:focus-visible,
.icon-button:focus-visible,
.text-button:focus-visible,
.answer-card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.button-primary {
  color: var(--blue-dark);
  background: var(--lime);
  box-shadow: 0 8px 24px rgba(201, 242, 56, 0.18);
}

.button-primary:hover:not(:disabled),
.button-lime:hover:not(:disabled) {
  background: #d8ff4e;
  box-shadow: 0 12px 28px rgba(201, 242, 56, 0.24);
}

.button-primary:disabled {
  cursor: not-allowed;
  color: #9aa3b9;
  background: #e7eaf0;
  box-shadow: none;
}

.button-secondary {
  color: var(--blue);
  background: var(--white);
  border-color: var(--line);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--blue);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

.button-lime {
  color: var(--blue-dark);
  background: var(--lime);
}

.button-large {
  min-height: 58px;
  padding: 16px 24px;
}

.trust-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #e1e7ff;
  font-size: 12px;
  font-weight: 700;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row i {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  background: var(--lime);
  border-radius: 50%;
  font-style: normal;
  font-size: 11px;
}

.hero-visual {
  min-height: 440px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 15px 0 30px 18px;
  background: radial-gradient(circle at 60% 45%, #ffffff 0 2px, transparent 3px) 0 0 / 31px 31px;
  opacity: 0.13;
}

.orbit {
  position: absolute;
  top: 48%;
  left: 54%;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 360px;
  height: 360px;
}

.orbit-two {
  width: 250px;
  height: 250px;
}

.sport-ball {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 24px 50px rgba(2, 13, 57, 0.3);
}

.ball-main {
  top: 50%;
  left: 53%;
  width: 190px;
  height: 190px;
  background: var(--white);
  font-size: 105px;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.ball-small {
  width: 82px;
  height: 82px;
  background: var(--lime);
  font-size: 39px;
}

.ball-top {
  top: 13px;
  right: 17px;
  transform: rotate(8deg);
}

.ball-bottom {
  right: 0;
  bottom: 8px;
  transform: rotate(-7deg);
}

.result-preview {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 255px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(4, 17, 70, 0.28);
  transform: rotate(-2deg);
}

.preview-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--lime);
  border-radius: 12px;
}

.result-preview small,
.result-preview strong {
  display: block;
}

.result-preview small {
  color: var(--muted);
  font-size: 11px;
}

.result-preview strong {
  margin-top: 2px;
  font-size: 13px;
}

.privacy-note {
  grid-column: 1 / -1;
  padding-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #dbe3ff;
  font-size: 12px;
}

.privacy-note p {
  max-width: 760px;
  margin: 0;
}

.privacy-note strong {
  color: var(--white);
}

/* Quiz */
.quiz-section {
  width: min(calc(100% - 40px), 860px);
  margin: 20px auto 80px;
  padding: 42px 56px 48px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.quiz-topbar {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 24px;
}

.progress-info {
  flex: 1;
}

.progress-labels {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.progress-labels strong {
  color: var(--blue);
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: #e9edf6;
  border-radius: 99px;
}

.progress-bar {
  width: 5%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #476cff);
  border-radius: inherit;
  transition: width 260ms ease;
}

.question-wrap {
  min-height: 490px;
  padding-top: 54px;
}

.question-category {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.question-wrap h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.question-help {
  margin: 12px 0 30px;
  color: var(--muted);
  font-size: 14px;
}

.answer-list {
  display: grid;
  gap: 12px;
}

.answer-card {
  width: 100%;
  min-height: 72px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 38px 1fr 24px;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  text-align: left;
  transition: border 160ms ease, background 160ms ease, transform 160ms ease;
}

.answer-card:hover {
  border-color: #94a8f0;
  transform: translateY(-1px);
}

.answer-card.selected {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.answer-emoji {
  font-size: 25px;
  text-align: center;
}

.answer-label {
  font-weight: 700;
}

.answer-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: transparent;
  border: 2px solid #b7c0d2;
  border-radius: 50%;
  font-size: 12px;
}

.answer-card.selected .answer-check {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.quiz-navigation {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}

/* Results */
.results-section {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 16px auto 72px;
}

.results-header {
  padding: 64px 30px 58px;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow);
}

.eyebrow-centered {
  justify-content: center;
}

.profile-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: var(--lime);
  border: 8px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  font-size: 42px;
  background-clip: padding-box;
}

.results-kicker {
  margin: 0 0 4px;
  color: #cbd6ff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.results-header h1 {
  margin: 0;
  font-size: clamp(45px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.profile-description {
  max-width: 680px;
  margin: 18px auto 23px;
  color: #e1e7ff;
  font-size: 17px;
}

.strength-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.strength-chip {
  padding: 8px 13px;
  color: var(--blue-dark);
  background: var(--lime);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}

.ranking-heading {
  margin: 64px 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.ranking-heading > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-number {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.ranking-heading h2,
.next-step h2 {
  margin: 0;
  font-size: clamp(27px, 3.8vw, 39px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.ranking-heading p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.sport-result {
  position: relative;
  min-height: 340px;
  padding: 26px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(25, 39, 87, 0.06);
}

.sport-result:first-child {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-8px);
}

.sport-result::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  background: var(--blue-soft);
  border-radius: 50%;
  opacity: 0.6;
}

.sport-result:first-child::after {
  background: var(--lime);
  opacity: 0.12;
}

.result-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rank-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sport-result:first-child .rank-number {
  color: #cbd6ff;
}

.sport-emoji {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  border-radius: 13px;
  font-size: 27px;
}

.sport-result:first-child .sport-emoji {
  background: var(--lime);
}

.sport-result h3 {
  margin: 35px 0 6px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.affinity {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.affinity strong {
  color: var(--blue);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sport-result:first-child .affinity strong {
  color: var(--lime);
}

.affinity span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sport-result:first-child .affinity span {
  color: #cbd6ff;
}

.sport-explanation {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.sport-result:first-child .sport-explanation {
  color: #e2e8ff;
}

.affinity-bar {
  height: 5px;
  margin-top: 18px;
  overflow: hidden;
  background: #e5e9f2;
  border-radius: 99px;
}

.affinity-bar div {
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.sport-result:first-child .affinity-bar {
  background: rgba(255, 255, 255, 0.2);
}

.sport-result:first-child .affinity-bar div {
  background: var(--lime);
}

.next-step {
  margin-top: 54px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
  background: var(--blue-dark);
  border-radius: var(--radius-xl);
}

.next-step .section-number {
  color: var(--lime);
}

.next-step h2 {
  margin-top: 8px;
}

.next-step p {
  max-width: 650px;
  margin: 13px 0 0;
  color: #cbd6ff;
}

.next-step .button {
  flex: 0 0 auto;
}

.result-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.text-button {
  min-height: 50px;
  padding: 10px 16px;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.action-feedback {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 36px 0 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.footer-brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
}

.footer-logo {
  width: 112px;
  height: auto;
  display: block;
}

.site-footer > p {
  margin: 0;
}

.footer-privacy {
  text-align: right;
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 1000;
  padding: 16px;
  color: var(--white);
  background: #b42318;
  border-radius: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 58px 42px 38px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .orbit,
  .ball-main {
    left: 50%;
  }

  .privacy-note {
    grid-column: auto;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .sport-result,
  .sport-result:first-child {
    min-height: auto;
    transform: none;
  }

  .sport-result h3 {
    margin-top: 20px;
  }

  .next-step {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-privacy {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(calc(100% - 28px), var(--max-width));
    height: 72px;
  }

  .header-badge {
    font-size: 11px;
  }

  .brand-logo {
    width: 126px;
  }

  .hero {
    width: calc(100% - 20px);
    margin: 3px auto 38px;
    padding: 42px 22px 28px;
    gap: 22px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-intro {
    margin: 22px 0 26px;
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .trust-row {
    gap: 10px 14px;
  }

  .hero-visual {
    min-height: 315px;
  }

  .orbit-one {
    width: 280px;
    height: 280px;
  }

  .orbit-two {
    width: 190px;
    height: 190px;
  }

  .ball-main {
    width: 145px;
    height: 145px;
    font-size: 80px;
  }

  .ball-small {
    width: 66px;
    height: 66px;
    font-size: 31px;
  }

  .result-preview {
    width: 220px;
  }

  .privacy-note {
    margin-top: 16px;
  }

  .quiz-section {
    width: calc(100% - 20px);
    margin: 3px auto 46px;
    padding: 24px 18px 24px;
    border-radius: 24px;
  }

  .quiz-topbar {
    gap: 13px;
  }

  .question-wrap {
    min-height: 500px;
    padding-top: 38px;
  }

  .question-wrap h2 {
    font-size: 29px;
  }

  .answer-card {
    min-height: 68px;
    padding: 12px;
    grid-template-columns: 32px 1fr 22px;
    gap: 10px;
  }

  .answer-emoji {
    font-size: 22px;
  }

  .answer-label {
    font-size: 14px;
  }

  .quiz-navigation .button {
    flex: 1;
    padding-inline: 12px;
    font-size: 14px;
  }

  .results-section {
    width: calc(100% - 20px);
    margin-top: 3px;
  }

  .results-header {
    padding: 46px 20px 42px;
    border-radius: 24px;
  }

  .ranking-heading {
    margin-top: 44px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .ranking-heading > div {
    align-items: flex-start;
  }

  .sport-result {
    padding: 22px;
  }

  .next-step {
    margin-top: 36px;
    padding: 30px 24px;
    border-radius: 24px;
  }

  .next-step .button,
  .result-actions .button,
  .result-actions .text-button {
    width: 100%;
  }

  .site-footer {
    width: calc(100% - 30px);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
