.markets-page--advisor .container {
  --container-max: 1180px;
}

.markets-guide,
.markets-common {
  margin-top: 14px;
  padding: 24px 22px;
  border: 1px solid rgba(138, 168, 205, 0.2);
  border-radius: 0;
}

.markets-guide-kicker {
  margin: 0 0 10px;
  color: #f2c46d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.advisor-quiz {
  width: 100%;
}

.advisor-quiz-card {
  min-height: 430px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0;
  background: rgba(10, 18, 33, 0.78);
  color: #f8fafc;
}

.advisor-question {
  display: none;
}

.advisor-question.is-active {
  display: block;
}

.advisor-question-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.advisor-question-head h2 {
  flex: 1 1 auto;
}

.advisor-question-count {
  flex: 0 0 auto;
  padding-top: 0.2rem;
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
}

.advisor-question h2,
.advisor-result-screen h2,
.markets-common h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.26;
}

.advisor-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.advisor-answer-grid button {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 12px 48px 12px 14px;
  border: 1px solid rgba(56, 189, 248, 0.48);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.88));
  color: #f1f5f9;
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.08);
}

.advisor-answer-grid button::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.48);
  border-radius: 0;
  color: #7dd3fc;
  font-size: 0.84rem;
  line-height: 1;
  transform: translateY(-50%);
}

.advisor-answer-grid button:hover,
.advisor-answer-grid button.is-selected {
  border-color: rgba(125, 211, 252, 0.9);
  background: #eff6ff;
  color: #0f172a;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.16);
}

.advisor-answer-grid button:hover::after,
.advisor-answer-grid button.is-selected::after {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.markets-quick-start {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 18px 20px;
  border-color: rgba(125, 211, 252, 0.2);
  background: rgba(10, 18, 33, 0.58);
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.markets-quick-start span {
  color: rgba(226, 232, 240, 0.82);
  font-weight: 300;
}

.markets-quick-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.markets-quick-start a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 0;
  color: #bfdbfe;
  font-weight: 300;
  text-decoration: none;
}

.markets-quick-start a:hover,
.markets-quick-start a:focus-visible {
  border-color: rgba(125, 211, 252, 0.74);
  background: rgba(14, 165, 233, 0.14);
  color: #ffffff;
}

.advisor-step-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.advisor-step-actions .btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.advisor-step-actions .btn:hover,
.advisor-step-actions .btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.62);
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.24);
}

.advisor-step-actions .advisor-icon-btn,
.advisor-result-actions .advisor-icon-btn {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.advisor-icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advisor-result-screen[hidden] {
  display: none;
}

.advisor-result-main {
  margin: 10px 0 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 1rem;
  line-height: 1.68;
}

.advisor-result-section-label {
  margin: 0 0 10px;
  color: #f2c46d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.advisor-result-section-label--spaced {
  margin-top: 24px;
}

.advisor-result-brief {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(242, 196, 109, 0.22);
  border-left: 3px solid #f2c46d;
  border-radius: 0;
  background: rgba(242, 196, 109, 0.06);
}

.advisor-result-brief p {
  display: grid;
  gap: 5px;
  margin: 0;
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.96rem;
  line-height: 1.68;
}

.advisor-result-brief p strong {
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.advisor-result-brief p span {
  color: rgba(226, 232, 240, 0.86);
}

.advisor-result-path {
  display: block;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(186, 230, 253, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
}

.advisor-result-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  counter-reset: advisor-operation;
}

.advisor-result-product {
  position: relative;
  min-height: 150px;
  padding: 42px 14px 14px;
  border: 1px solid rgba(59, 130, 246, 0.42);
  border-radius: 0;
  background: rgba(59, 130, 246, 0.08);
  color: #dbeafe;
  counter-increment: advisor-operation;
}

.advisor-result-product-index {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-grid;
  width: 28px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.42);
  background: rgba(14, 165, 233, 0.14);
  color: #bae6fd;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.advisor-result-product strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
}

.advisor-result-product span {
  display: block;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.88rem;
  line-height: 1.55;
}

.advisor-result-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.advisor-result-guides article {
  padding: 16px;
  border: 1px solid rgba(242, 196, 109, 0.28);
  border-radius: 0;
  background: rgba(242, 196, 109, 0.05);
}

.advisor-result-guides strong,
.advisor-result-guides span {
  display: block;
}

.advisor-result-guides strong {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
}

.advisor-result-guides span {
  margin-top: 8px;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.88rem;
  line-height: 1.6;
}

.advisor-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.advisor-result-actions .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 0;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.advisor-result-actions .btn:hover,
.advisor-result-actions .btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.62);
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.24);
}

.advisor-result-actions .btn.primary {
  margin-left: auto;
  border-color: rgba(14, 165, 233, 0.7);
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.28);
}

.advisor-result-actions .btn.primary:hover,
.advisor-result-actions .btn.primary:focus-visible {
  border-color: rgba(56, 189, 248, 0.88);
  background: #0369a1;
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.34);
}

.markets-common-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.markets-common-grid article {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
}

.markets-common-grid strong,
.markets-common-grid span {
  display: block;
}

.markets-common-grid strong {
  color: #f8fafc;
  font-size: 0.94rem;
  font-weight: 800;
}

.markets-common-grid span {
  margin-top: 8px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.84rem;
  line-height: 1.55;
}

@keyframes advisor-result-card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1060px) {
  .advisor-result-products,
  .advisor-result-guides,
  .markets-common-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .markets-guide,
  .markets-common {
    padding: 22px 16px;
  }

  .advisor-answer-grid,
  .advisor-result-products,
  .advisor-result-guides,
  .markets-common-grid {
    grid-template-columns: 1fr;
  }

  .advisor-result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .advisor-result-actions .btn,
  .advisor-result-actions .btn.primary {
    width: 100%;
    margin-left: 0;
  }
}
