:root {
  --bg: #070707;
  --bg-soft: #111111;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: #f5f1eb;
  --panel-dark: #121212;
  --text: #fefefe;
  --text-dark: #111111;
  --muted: rgba(255, 255, 255, 0.68);
  --muted-dark: #6f6a64;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ca262b;
  --accent-bright: #ef3e44;
  --accent-soft: #272727;
  --light-button: #f2efe9;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(202, 38, 43, 0.22), transparent 26%),
    radial-gradient(circle at 85% 24%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #090909 0%, #070707 100%);
}

button,
input,
select,
textarea,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 7, 7, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner,
.page-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.hero-actions,
.survey-header-top,
.survey-header,
.progress-meta,
.summary-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.lang-button {
  min-width: 48px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lang-button:hover {
  transform: translateY(-1px);
  color: white;
}

.lang-button.is-active {
  background: #f5f1eb;
  color: #111111;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
}

.meta-label,
.eyebrow,
.section-label,
.progress-meta span {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-shell {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 28px 0 20px;
}

.site-footer {
  padding: 0 0 28px;
}

.site-footer-inner {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.site-footer-inner a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
  text-underline-offset: 4px;
}

.sidebar,
.survey-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.sidebar {
  position: relative;
  overflow: hidden;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, #131313 0%, #0a0a0a 100%);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 38, 43, 0.18), transparent 65%);
  pointer-events: none;
}

.eyebrow,
.section-label,
.meta-label {
  color: rgba(255, 255, 255, 0.55);
}

.sidebar h1,
.survey-header h2,
.question-block h3,
.summary-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.sidebar h1 {
  margin-top: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.98;
  max-width: none;
  width: 100%;
}

.red-dot {
  color: var(--accent);
}

.sidebar-copy {
  margin-top: 18px;
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 24px;
  flex-wrap: wrap;
}

.button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

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

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-secondary,
.button-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.button-light {
  background: var(--light-button);
  color: var(--text-dark);
  font-weight: 700;
}

.survey-panel {
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    #101010;
}

.survey-header {
  display: grid;
  gap: 12px;
}

.survey-header-title {
  min-width: 0;
}

.survey-header-top {
  justify-content: flex-start;
  align-items: center;
}

.button-header-nav {
  min-height: 42px;
  min-width: 42px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.2rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.survey-header h2 {
  font-size: clamp(1.45rem, 1.9vw, 2.1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-block {
  min-width: 190px;
  flex: 1;
}

.progress-meta {
  display: none;
}

.progress-block span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
}

.progress-track {
  margin-top: 10px;
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #ff6a6f);
  border-radius: inherit;
  transition: width 220ms ease;
}

.question-card,
.summary-card {
  border-radius: var(--radius-lg);
}

.question-block h3,
.summary-card h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.question-description {
  color: var(--muted);
  line-height: 1.7;
}

.question-card {
  padding: 24px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dark);
  scroll-margin-top: 104px;
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.question-card.is-targeted {
  border-color: rgba(202, 38, 43, 0.36);
  box-shadow: 0 0 0 4px rgba(202, 38, 43, 0.12), 0 28px 60px rgba(202, 38, 43, 0.14);
  animation: targetPulse 1.2s ease;
}

.question-block {
  display: grid;
  gap: 18px;
}

.button-inline-cta {
  margin-top: 10px;
  justify-self: center;
  min-height: 60px;
  min-width: min(100%, 360px);
  padding: 0 34px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 36px rgba(202, 38, 43, 0.22);
}

.button-inline-cta:hover {
  box-shadow: 0 24px 42px rgba(202, 38, 43, 0.28);
}

.button-featured-link {
  min-height: 60px;
  min-width: min(100%, 360px);
  justify-self: center;
  padding: 0 34px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-color: rgba(202, 38, 43, 0.4);
  box-shadow: 0 18px 36px rgba(202, 38, 43, 0.18);
}

.button-featured-link:hover {
  box-shadow: 0 24px 42px rgba(202, 38, 43, 0.24);
}

.question-description-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 700;
  color: var(--text-dark);
}

.question-description {
  margin: 0;
  color: var(--muted-dark);
}

.field-group,
.option-list,
.summary-list {
  display: grid;
  gap: 12px;
}

.field-wrap {
  display: grid;
  gap: 5px;
}

.field-error {
  min-height: 18px;
  font-size: 0.82rem;
  color: var(--accent);
}

.field-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.text-input,
.select-input,
.textarea-input,
.option-card {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: #fffdf8;
}

.text-input,
.select-input {
  min-height: 56px;
  padding: 0 16px;
}

.text-input.is-invalid {
  border-color: rgba(202, 38, 43, 0.7);
  box-shadow: 0 0 0 3px rgba(202, 38, 43, 0.12);
}

.textarea-input {
  min-height: 140px;
  resize: vertical;
  padding: 16px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(202, 38, 43, 0.35);
  box-shadow: 0 18px 30px rgba(17, 17, 17, 0.06);
}

.option-card-static {
  cursor: default;
}

.option-card-static:hover {
  transform: none;
  border-color: rgba(17, 17, 17, 0.1);
  box-shadow: none;
}

.option-card input {
  margin: 0;
  accent-color: var(--accent);
}

.option-copy strong,
.summary-row strong {
  display: block;
  color: var(--text-dark);
}

.option-copy span,
.summary-row span:last-child {
  color: var(--muted-dark);
  line-height: 1.6;
}

.summary-card {
  padding: 22px;
  background: #fff8f4;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  justify-content: center;
}

.summary-row {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: #fffdf8;
}

.summary-card .question-description {
  margin-top: 14px;
  font-size: 0.95rem;
  text-align: center;
}

.summary-card .question-description a {
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes targetPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(202, 38, 43, 0.18);
  }
  40% {
    transform: translateY(-2px);
    box-shadow: 0 0 0 8px rgba(202, 38, 43, 0.12), 0 32px 64px rgba(202, 38, 43, 0.16);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 4px rgba(202, 38, 43, 0.12), 0 28px 60px rgba(202, 38, 43, 0.14);
  }
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    align-items: center;
  }

  .topbar-actions {
    width: auto;
    flex-direction: row;
    align-items: center;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .lang-button {
    flex: 1;
  }

  .topbar-inner,
  .page-shell,
  .site-footer-inner {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .sidebar,
  .survey-panel {
    padding: 18px;
  }

  .survey-header,
  .survey-header-top,
  .progress-meta,
  .summary-row,
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .survey-header h2 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .button {
    width: 100%;
  }

  .progress-block {
    min-width: 100%;
  }

  .sidebar h1 {
    max-width: none;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
