/* Men's test — extends site gold theme (soft-panel + test-* from components.css) */

.men-erection-test-page {
  --men-header-offset: 78px;
  --men-touch-min: 48px;
  overflow-x: clip;
}

.men-erection-test-page .site-header {
  padding-top: env(safe-area-inset-top, 0);
}

.men-erection-test-page .site-shell {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.men-test-section {
  padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0));
}

.men-test-section .container {
  padding-left: max(1rem, env(safe-area-inset-left, 0));
  padding-right: max(1rem, env(safe-area-inset-right, 0));
}

.men-test-soft {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.men-test-soft.men-test-stage--quiz {
  padding-bottom: clamp(1.25rem, 4vw, 2rem);
}

.men-test-intro__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: var(--gold-pale);
  margin: 0 0 1rem;
  text-align: center;
}

.men-test-did-you-know {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(212, 175, 55, 0.05);
}

.men-test-did-you-know__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.45rem;
}

.men-test-did-you-know p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.men-test-focus-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--gold-pale);
  margin: 1.5rem 0 1rem;
}

.men-test-medical {
  margin-top: 1.5rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(0, 0, 0, 0.2);
}

.men-test-medical h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gold-pale);
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.men-test-medical ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.men-test-soft .men-test-intro p,
.men-test-soft .men-test-map p,
.men-test-soft .men-test-focus p,
.men-test-soft .men-test-program p,
.men-test-soft .men-test-disclaimer,
.men-test-soft .men-test-lead p {
  color: var(--text-muted);
}

.men-test-soft .men-test-intro strong,
.men-test-soft .men-test-focus strong,
.men-test-soft .men-test-program strong {
  color: var(--gold-pale);
}

.men-test-soft .men-test-map h2,
.men-test-soft .men-test-focus h3,
.men-test-soft .men-test-program h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gold-pale);
}

.men-test-progress-wrap {
  position: sticky;
  z-index: 20;
  top: calc(var(--men-header-offset) + env(safe-area-inset-top, 0));
  margin: 0 0 1.25rem;
  padding: 0.35rem 0 0.5rem;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.92) 65%,
    rgba(10, 10, 10, 0)
  );
}

.men-test-progress__label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.men-test-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.men-test-block-intro__text p {
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.men-test-actions--nav {
  margin-top: 1.5rem;
}

.men-test-soft .test-option__text {
  flex: 1;
  line-height: 1.4;
}

.men-test-soft .test-option:not(:has(.test-option__letter)) {
  padding-left: 1rem;
}

.men-test-result-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.men-test-result-card {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(212, 175, 55, 0.04);
}

.men-test-result-card__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--gold-pale);
  margin: 0 0 0.35rem;
}

.men-test-result-card__level {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.men-test-result-card p {
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 0.65rem;
}

.men-test-result-card__rec {
  margin-top: 0.5rem;
}

.men-test-markers {
  margin: 1.75rem 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.men-test-markers h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gold-pale);
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.men-test-markers ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.men-test-consult {
  margin: 1.25rem 0 0;
  text-align: center;
}

.men-test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.men-test-actions .btn {
  min-height: var(--men-touch-min);
  touch-action: manipulation;
}

.men-test-actions--dock {
  position: fixed;
  z-index: 90;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.75rem max(1rem, env(safe-area-inset-right, 0)) calc(0.75rem + env(safe-area-inset-bottom, 0)) max(1rem, env(safe-area-inset-left, 0));
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.men-test-actions--dock .btn {
  flex: 1 1 auto;
  justify-content: center;
}

.men-test-actions--dock .btn--primary {
  flex: 1.4 1 auto;
}

.men-test-factor {
  margin-bottom: 1.15rem;
}

.men-test-factor__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: clamp(0.82rem, 2.6vw, 0.92rem);
  margin-bottom: 0.35rem;
  color: var(--gold-pale);
}

.men-test-factor__head span:first-child {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.men-test-factor__head span:last-child {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--gold);
}

.men-test-factor__bar {
  height: 8px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.men-test-factor__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-warm), var(--gold-bright));
  border-radius: 999px;
  transition: width 0.6s ease;
}

.men-test-factor__level {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.men-test-focus {
  margin: 1.75rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.06);
  border-radius: 0;
}

.men-test-reflect {
  font-style: italic;
  color: var(--gold);
}

.men-test-program {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.men-test-program ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.2rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.men-test-disclaimer {
  font-size: 0.82rem;
  line-height: 1.55;
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
}

.men-test-contacts {
  margin-top: 1.5rem;
}

.men-test-contacts h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gold-pale);
}

.men-test-contacts p {
  color: var(--text-muted);
}

.men-test-soft .men-test-contacts .social-row--contacts {
  margin-top: 1rem;
}

.men-test-contacts__phone {
  margin-top: 1rem;
  color: var(--text-muted);
}

.men-test-contacts__phone a {
  color: var(--gold-pale);
}

.men-test-contacts__more {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.men-test-program .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 599px) {
  .men-erection-test-page {
    --men-header-offset: 64px;
  }

  .men-test-soft {
    padding: 1rem 0.9rem;
  }

  .men-test-actions:not(.men-test-actions--dock) {
    flex-direction: column;
  }

  .men-test-actions:not(.men-test-actions--dock) .btn {
    width: 100%;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .page-hero {
    padding-top: 5rem;
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 600px) {
  .men-test-actions--dock {
    position: static;
    margin-top: 1.5rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .men-test-soft.men-test-stage--quiz {
    padding-bottom: clamp(1.25rem, 4vw, 2rem);
  }
}

@media (min-width: 1025px) {
  .men-test-program .btn {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .men-test-factor__fill,
  .test-progress__bar {
    transition: none;
  }
}
