.aps-wrap {
  max-width: 980px;
  margin: 24px auto;
  padding: 24px;
  background: linear-gradient(145deg, #f8fbff 0%, #eef3fb 100%);
  border: 1px solid #d0d8e8;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(29, 47, 90, 0.08);
}

.aps-wrap h2 {
  margin: 10px 0 14px;
  color: #1d2f5a;
}

.aps-page-head {
  display: grid;
  grid-template-columns: minmax(88px, 20%) 1fr minmax(180px, 40%);
  align-items: center;
  gap: 12px;
}

.aps-page-head__logo img,
.aps-step-head__logo img {
  width: min(120px, 100%);
  min-width: 72px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.aps-page-head__image img,
.aps-step-head__image img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: right center;
}

.aps-intro-text {
  margin: 14px 0;
  line-height: 1.65;
  color: #23396d;
}

.aps-wrap label {
  color: #1d2f5a;
  font-weight: 600;
}

.aps-wrap input[type="text"],
.aps-wrap input[type="email"],
.aps-wrap select {
  width: min(520px, 100%);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #b9c4de;
  background: #fff;
}

.aps-field-hint {
  display: block;
  margin-top: 8px;
  color: #43567f;
  font-size: 0.95rem;
  line-height: 1.45;
}

.aps-rgpd-short {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #43567f;
}

.aps-rgpd-full {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d7deee;
  font-size: 12px;
  line-height: 1.5;
  color: #4b5881;
}

.aps-btn {
  display: inline-block;
  background: #1d2f5a;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.aps-btn:hover,
.aps-btn:focus-visible {
  background: #2a3f78;
  transform: translateY(-1px);
}

.aps-screen {
  animation: aps-fade 0.25s ease;
}

.aps-start-image img,
.aps-end-image img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 12px;
}

.aps-end-text {
  margin: 18px 0;
  line-height: 1.85;
  color: #23396d;
  font-size: 1.95rem;
}

.aps-step-wrap {
  display: flex;
  flex-direction: column;
  min-height: 68vh;
}

.aps-step-head {
  display: grid;
  grid-template-columns: minmax(88px, 20%) 1fr minmax(180px, 40%);
  align-items: center;
  gap: 12px;
}

.aps-step-head__center {
  margin-left: 8px;
  color: #727ba2;
  font-weight: 700;
  font-size: 2.4rem;
}

.aps-step-title {
  width: 80%;
  margin: 18px auto 0;
  text-align: center;
  color: #1d2f5a;
  font-size: 2.2rem;
  line-height: 1.2;
}

.aps-step-question {
  width: 80%;
  margin: 12px auto 0;
  text-align: center;
  color: #1f2f58;
  font-size: 1.55rem;
  line-height: 1.45;
}

.aps-answers-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.aps-answer-card {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #b9c4de;
  background: #fff;
  color: #1d2f5a;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.aps-answer-card:hover {
  border-color: #8395c2;
  box-shadow: 0 8px 18px rgba(29, 47, 90, 0.12);
  transform: translateY(-1px);
}

.aps-answer-card:focus-visible {
  outline: 3px solid #8aa4df;
  outline-offset: 2px;
}

.aps-answer-card.is-selected {
  border-color: #1d2f5a;
  background: #f0f4ff;
  box-shadow: 0 0 0 1px #1d2f5a inset;
}

.aps-answer-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.aps-step-actions {
  margin-top: 18px;
  text-align: center;
}

.aps-step-note {
  margin-top: auto;
  padding-top: 20px;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #43567f;
}

.aps-result {
  padding: 18px;
  border-radius: 12px;
  background: #edf9f4;
  border: 1px solid #b8e3cf;
  color: #1b4332;
}

.aps-profile-sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aps-profile-head {
  display: grid;
  grid-template-columns: 20% 70%;
  gap: 4%;
  align-items: center;
}

.aps-profile-head__logo img {
  width: min(130px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.aps-profile-head__title {
  font-size: 1.25rem;
  font-weight: 800;
}

.aps-profile-card {
  border: 1px solid #d0d8e8;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.aps-profile-card--title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
}

.aps-profile-main {
  display: grid;
  grid-template-columns: 45% 45%;
  gap: 10%;
  align-items: start;
}

.aps-profile-main__photo img {
  width: 100%;
  border-radius: 12px;
}

.aps-profile-main__radar svg {
  width: 100%;
  height: auto;
}

.aps-profile-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.aps-profile-card--small {
  font-size: 0.92rem;
  color: #4b5881;
}

.aps-profile-download {
  text-align: center;
}

@keyframes aps-fade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .aps-wrap {
    margin: 14px;
    padding: 16px;
  }

  .aps-page-head,
  .aps-step-head {
    grid-template-columns: 20% 1fr 40%;
    gap: 8px;
  }

  .aps-step-head__center {
    font-size: 1.8rem;
  }

  .aps-step-title {
    width: 100%;
    font-size: 1.7rem;
  }

  .aps-step-question {
    width: 100%;
    font-size: 1.25rem;
  }

  .aps-answers-grid {
    grid-template-columns: 1fr;
  }

  .aps-answer-card {
    min-height: 96px;
  }

  .aps-step-note {
    font-size: 1.05rem;
  }

  .aps-end-text {
    font-size: 1.55rem;
    line-height: 1.75;
  }

  .aps-profile-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .aps-profile-main {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .aps-profile-duo {
    grid-template-columns: 1fr;
  }
}
