:root {
  --brand: #194c4f;
  --brand-deep: #12383a;
  --brand-soft: #2a6a6e;
  --cream: #f5f0e6;
  --cream-deep: #ebe4d6;
  --surface: #fffcf7;
  --ink: #194c4f;
  --muted: #5f7375;
  --line: rgba(25, 76, 79, 0.12);
  --danger: #b42318;
  --shadow: 0 4px 16px rgba(25, 76, 79, 0.05);
  --radius: 20px;
  --radius-sm: 14px;
  --font-ar: "Cairo", sans-serif;
  --font-en: "Syne", sans-serif;
  --pad: clamp(1.5rem, 4.8vw, 2.4rem);
  --shell: min(700px, calc(100% - clamp(1.25rem, 5vw, 2.5rem)));
  --touch: 44px;
  --space-xs: 0.65rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.15rem;
  --space-xl: 2.75rem;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-ar);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(25, 76, 79, 0.04), transparent 28%),
    linear-gradient(165deg, #faf7f1 0%, var(--cream) 46%, var(--cream-deep) 100%);
  overflow-x: hidden;
  line-height: 1.65;
  min-height: 100dvh;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.ambiance {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 76, 79, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 76, 79, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.7;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite alternate;
}

.orb-a {
  width: min(460px, 78vw);
  height: min(460px, 78vw);
  top: -12%;
  left: -14%;
  background: rgba(25, 76, 79, 0.18);
}

.orb-b {
  width: min(380px, 70vw);
  height: min(380px, 70vw);
  right: -16%;
  bottom: 4%;
  background: rgba(42, 106, 110, 0.16);
  animation-delay: -5s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, 20px, 0) scale(1.06); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--safe-t);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  background: rgba(245, 240, 230, 0.86);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1.05rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  flex: 0 0 auto;
  width: clamp(50px, 11vw, 64px);
  height: auto;
}

.brand-name {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(0.92rem, 2.6vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brand);
  white-space: nowrap;
}

.brand-sub {
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-wrap {
  flex: 1 1 auto;
  max-width: 250px;
  min-width: 118px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  background: rgba(25, 76, 79, 0.1);
  border-radius: 999px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-soft));
  border-radius: inherit;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-dots {
  display: none;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.step-dots span {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(25, 76, 79, 0.12);
  transition: background 0.25s ease, transform 0.25s ease;
}

.step-dots span.active {
  background: var(--brand-soft);
  transform: scaleY(1.35);
}

.step-dots span.done {
  background: var(--brand);
}

.shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: clamp(1.35rem, 4vw, 2.4rem) auto calc(2.4rem + var(--safe-b));
}

.campaign-chip,
.resume-banner {
  margin-bottom: 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(25, 76, 79, 0.12);
}

.campaign-chip {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  background: rgba(25, 76, 79, 0.08);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
}

.campaign-chip[hidden],
.resume-banner[hidden] {
  display: none !important;
}

.resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 252, 247, 0.95);
  box-shadow: none;
}

.resume-banner > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.resume-banner strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.3;
}

.resume-banner p {
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.resume-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.btn-sm {
  min-height: 28px;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 7px;
  white-space: nowrap;
}

.question-stage {
  display: grid;
  gap: var(--space-lg);
}

.single-question {
  min-height: auto;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.choice-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-field legend {
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--brand-deep);
  font-size: 0.98rem;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.choice {
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: grid;
  place-items: center;
  min-height: var(--touch);
  border: 1px solid rgba(25, 76, 79, 0.14);
  border-radius: 14px;
  background: #fffcf7;
  color: var(--brand);
  font-weight: 700;
  transition: 0.2s ease;
}

.choice input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--cream);
  box-shadow: none;
}

.trainer-list {
  display: grid;
  gap: 0.55rem;
}

.trainer-option {
  cursor: pointer;
}

.trainer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trainer-option span {
  display: block;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(25, 76, 79, 0.14);
  border-radius: 12px;
  background: #fffcf7;
  color: var(--brand-deep);
  transition: 0.2s ease;
}

.trainer-option strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.trainer-option input:checked + span {
  border-color: var(--brand);
  background: rgba(25, 76, 79, 0.08);
}

.file-upload {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-ui {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(25, 76, 79, 0.28);
  border-radius: 12px;
  background: rgba(25, 76, 79, 0.03);
  text-align: center;
  overflow: hidden;
}

.file-upload-ui strong {
  color: var(--brand);
  font-size: 0.9rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-ui small {
  color: var(--muted);
  font-size: 0.75rem;
}

.level-badge {
  display: inline-flex;
  margin: 0 auto 1rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(25, 76, 79, 0.1);
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.level-badge[data-level="beginner"] {
  background: rgba(25, 76, 79, 0.08);
}

.level-badge[data-level="intermediate"] {
  background: rgba(42, 106, 110, 0.16);
}

.level-badge[data-level="ready"] {
  background: rgba(25, 76, 79, 0.18);
}

.encourage {
  margin: 0 0 var(--space-xl);
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.98rem;
}

.success-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
}

.success-actions .btn {
  min-width: min(100%, 220px);
  text-decoration: none;
  text-align: center;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: var(--pad);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 252, 247, 0.92));
  border: 1px solid rgba(25, 76, 79, 0.1);
  border-radius: var(--radius);
  box-shadow: none;
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  max-width: 100%;
  min-width: 0;
}

.contact-form,
.field,
.score-preview {
  max-width: 100%;
  min-width: 0;
}

.panel::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.7;
}

.panel[hidden] {
  display: none !important;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel-intro {
  min-height: min(68vh, 620px);
  display: grid;
  align-items: center;
}

.intro-stage {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 var(--space-xl);
  animation: brandIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-logo {
  width: min(200px, 52vw);
  height: auto;
  filter: none;
}

@keyframes brandIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand-soft);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-intro .eyebrow,
.panel-intro h1,
.panel-intro .lead {
  animation: rise 0.65s ease both;
}

.panel-intro h1 {
  animation-delay: 0.08s;
}

.panel-intro .lead {
  animation-delay: 0.14s;
}

.panel-intro .cta-row {
  animation: rise 0.65s ease both;
  animation-delay: 0.2s;
}

h1,
h2 {
  margin: 0 0 var(--space-md);
  line-height: 1.35;
  font-weight: 800;
  color: var(--brand);
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.45rem, 5vw, 2.15rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.12rem, 3.6vw, 1.35rem);
}

.lead {
  margin: 0 0 var(--space-xl);
  color: var(--muted);
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  line-height: 1.95;
}

.intro-note {
  margin: var(--space-lg) 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.axis {
  display: grid;
  gap: var(--space-lg);
}

.axis-head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: 0;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}

.axis-num {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  color: var(--cream);
  font-family: var(--font-en);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.axis-label {
  margin: 0 0 0.3rem;
  color: var(--brand-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.question {
  margin: 0;
  padding: 1.4rem 1.25rem 1.45rem;
  border: 1px solid rgba(25, 76, 79, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(25, 76, 79, 0.025);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.question.is-answered {
  border-color: rgba(25, 76, 79, 0.16);
  background: rgba(25, 76, 79, 0.04);
}

.question:focus-within {
  border-color: rgba(25, 76, 79, 0.2);
  background: rgba(25, 76, 79, 0.045);
  box-shadow: none;
}

.question legend {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0;
  margin-bottom: var(--space-lg);
  font-size: clamp(0.96rem, 3.1vw, 1.05rem);
  font-weight: 700;
  line-height: 1.75;
  color: var(--brand-deep);
}

.q-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: 0.15rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(25, 76, 79, 0.08);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
}

.question.is-answered .q-num {
  background: var(--brand);
  color: var(--cream);
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 0.75rem);
}

.scale label {
  cursor: pointer;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

.scale input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scale-btn {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.3rem;
  min-height: var(--touch);
  padding: 0.55rem 0.25rem;
  border: 1px solid rgba(25, 76, 79, 0.12);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  transition: 0.2s ease;
  user-select: none;
}

.scale-btn strong {
  font-size: clamp(1rem, 3.2vw, 1.12rem);
  font-weight: 800;
  line-height: 1;
  color: inherit;
}

.scale-btn em {
  font-style: normal;
  font-size: clamp(0.58rem, 2.1vw, 0.68rem);
  font-weight: 700;
  line-height: 1.2;
  opacity: 0.9;
}

.scale label:hover .scale-btn,
.scale label:focus-within .scale-btn {
  border-color: rgba(25, 76, 79, 0.35);
  color: var(--brand);
  transform: none;
}

.scale input:checked + .scale-btn {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--cream);
  box-shadow: none;
  transform: none;
}

.cta-row,
.nav-bar {
  display: flex;
  gap: 0.9rem;
  margin-top: var(--space-xl);
}

.panel-intro .cta-row {
  justify-content: center;
  margin-top: var(--space-lg);
}

.nav-bar {
  position: sticky;
  bottom: calc(0.75rem + var(--safe-b));
  z-index: 10;
  padding: 1rem var(--pad) calc(1rem + var(--safe-b) * 0.2);
  margin-inline: calc(var(--pad) * -1);
  margin-top: var(--space-xl);
  margin-bottom: calc(var(--pad) * -0.55);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.2), rgba(255, 252, 247, 0.98) 32%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-deep));
  color: var(--cream);
  box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: none;
}

.btn-primary:active:not(:disabled) {
  transform: none;
  filter: brightness(0.98);
}

.btn-arrow {
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(-3px);
}

.btn-ghost {
  flex: 0 0 auto;
  background: transparent;
  color: var(--brand);
  border: 1px solid rgba(25, 76, 79, 0.16);
}

.btn-ghost:hover {
  border-color: rgba(25, 76, 79, 0.35);
  background: rgba(25, 76, 79, 0.04);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: var(--space-md);
}

.mini-logo {
  width: 42px;
  height: auto;
  opacity: 0.95;
}

.contact-form {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.field {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.field > span {
  font-weight: 700;
  color: var(--brand-deep);
  font-size: 0.98rem;
}

.field small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.field input {
  width: 100%;
  min-height: var(--touch);
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(25, 76, 79, 0.14);
  border-radius: 12px;
  background: #fffcf7;
  color: var(--brand-deep);
  font-size: 16px;
  outline: none;
  transition: 0.2s ease;
}

.field input:focus {
  border-color: rgba(25, 76, 79, 0.45);
  box-shadow: 0 0 0 3px rgba(25, 76, 79, 0.08);
}

.phone-wrap {
  display: flex;
  align-items: stretch;
  direction: ltr;
  min-height: var(--touch);
  border: 1px solid rgba(25, 76, 79, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: #fffcf7;
  transition: 0.2s ease;
}

.phone-wrap:focus-within {
  border-color: rgba(25, 76, 79, 0.45);
  box-shadow: 0 0 0 3px rgba(25, 76, 79, 0.08);
}

.phone-wrap.is-invalid {
  border-color: rgba(180, 35, 24, 0.45);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.06);
}

.phone-prefix {
  display: grid;
  place-items: center;
  padding: 0 1rem;
  background: rgba(25, 76, 79, 0.06);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
  border-right: 1px solid rgba(25, 76, 79, 0.1);
  white-space: nowrap;
}

.phone-wrap input {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  min-width: 0;
  text-align: left;
  letter-spacing: 0.03em;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 600;
}

.form-error {
  margin: var(--space-md) 0 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  font-weight: 600;
  font-size: 0.92rem;
}

.score-preview,
.score-final {
  margin: 0;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(25, 76, 79, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(25, 76, 79, 0.05);
  color: var(--brand-deep);
}

.score-final {
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 800;
  color: var(--brand);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.panel-success {
  text-align: center;
  padding-block: calc(var(--pad) + 0.35rem);
}

.success-logo {
  width: min(110px, 34vw);
  height: auto;
  margin: 0 auto var(--space-lg);
  opacity: 0.95;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--cream);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: none;
  animation: pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.65);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.panel-success .cta-row {
  justify-content: center;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.5rem 1rem calc(1.75rem + var(--safe-b));
}

.footer-logo {
  width: 28px;
  height: auto;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .topbar-inner {
    align-items: flex-start;
  }

  .progress-wrap {
    max-width: 190px;
  }

  .step-dots {
    display: flex;
  }

  .nav-bar {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .btn,
  .btn-ghost,
  .btn-primary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --touch: 42px;
    --radius: 16px;
    --pad: 1.35rem;
    --space-sm: 0.95rem;
    --space-md: 1.35rem;
    --space-lg: 1.75rem;
    --space-xl: 2.2rem;
    --shell: calc(100% - 1.35rem);
  }

  .resume-banner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    padding: 0.4rem 0.55rem;
  }

  .resume-actions {
    width: auto;
    gap: 0.3rem;
  }

  .resume-actions .btn {
    flex: 0 0 auto;
    width: auto;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.95rem 0;
  }

  .progress-wrap {
    max-width: none;
    min-width: 0;
  }

  .brand-logo {
    width: 46px;
  }

  .hero-logo {
    width: min(150px, 48vw);
  }

  .panel-intro {
    min-height: auto;
  }

  .axis {
    gap: var(--space-lg);
  }

  .axis-head {
    gap: 0.9rem;
  }

  .axis-num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 0.85rem;
  }

  .question {
    padding: 1.25rem 1.05rem 1.35rem;
  }

  .scale {
    gap: 0.45rem;
  }

  .scale-btn {
    border-radius: 10px;
    padding: 0.4rem 0.15rem;
    min-height: 44px;
  }

  .nav-bar {
    margin-inline: calc(var(--pad) * -1);
    padding: 1rem var(--pad) calc(1.05rem + var(--safe-b));
  }

  .contact-form {
    gap: var(--space-lg);
  }

  .choice-row {
    gap: 0.75rem;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 360px) {
  :root {
    --touch: 40px;
    --pad: 1.15rem;
    --shell: calc(100% - 1.1rem);
    --space-md: 1.2rem;
    --space-lg: 1.55rem;
  }

  .brand-sub {
    display: none;
  }

  .hero-logo {
    width: min(132px, 54vw);
  }

  .axis-head {
    gap: 0.75rem;
  }

  .axis-num {
    width: 40px;
    height: 40px;
  }

  .scale {
    gap: 0.35rem;
  }

  .scale-btn {
    min-height: 42px;
  }

  .scale-btn strong {
    font-size: 0.95rem;
  }

  .scale-btn em {
    font-size: 0.52rem;
  }

  .phone-prefix {
    padding: 0 0.7rem;
    font-size: 0.85rem;
  }

  .question {
    padding: 1.1rem 0.9rem 1.2rem;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .shell {
    margin-top: 0.7rem;
  }

  .panel-intro {
    min-height: auto;
  }

  .hero-logo {
    width: min(120px, 28vw);
  }

  .nav-bar {
    position: static;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
