.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(180deg, rgba(255, 246, 222, 0.92), rgba(235, 207, 159, 0.84));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122, 84, 36, 0.34);
  box-shadow: 0 8px 24px rgba(54, 32, 14, 0.06);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 227, 152, 0.22), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #8d251d 0%, #5f1712 100%);
  border: 1.5px solid rgba(215, 165, 68, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 22px rgba(54, 32, 14, 0.18);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #f2d184;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.76);
  border: 1px solid rgba(122, 84, 36, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 10px 22px rgba(54, 32, 14, 0.06);
}

.nav a {
  color: var(--muted);
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  transform: translateY(-1px);
}

.nav a.is-active {
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.98), rgba(240, 223, 188, 0.96));
  color: var(--primary-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 20px rgba(54, 32, 14, 0.1);
  border: 1px solid rgba(196, 154, 68, 0.52);
}

.page-back-row {
  padding-top: 0;
  margin-top: -26px;
  margin-bottom: -8px;
}

.page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(203, 187, 167, 0.75);
  background: rgba(255, 253, 249, 0.88);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.page-back-btn::before {
  content: "←";
  font-size: 0.95rem;
  line-height: 1;
}

.page-back-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: #fff;
  color: var(--text);
}

.hero-card,
.content-card,
.info-card {
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.98), rgba(242, 223, 181, 0.94));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.hero-card,
.content-card {
  padding: 21px;
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 16px;
  width: 150px;
  height: 150px;
  background: url("/assets/brand-compass.svg") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--map-red), var(--gold), transparent);
  opacity: 0.72;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.info-card {
  padding: 22px;
}

.hero-card h1 {
  font-size: clamp(1.72rem, 3.5vw, 2.66rem);
  line-height: 1.08;
  margin-bottom: 12px;
}

.hero-card p,
.content-card p,
.info-card p {
  color: var(--text-soft);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background:
    linear-gradient(180deg, rgba(255, 210, 120, 0.16), rgba(255, 255, 255, 0)),
    var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(141, 37, 29, 0.24);
  border-color: rgba(215, 165, 68, 0.45);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 248, 232, 0.96);
  color: var(--text);
  border-color: rgba(122, 84, 36, 0.28);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: #fff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(95, 23, 18, 0.98), rgba(165, 42, 34, 0.94));
  color: #fff6df;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(141, 37, 29, 0.16);
}

.section-title {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.12;
}

.section-title::after {
  content: "";
  display: block;
  width: 112px;
  height: 4px;
  margin-top: 11px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--map-red), var(--gold), transparent);
}

.card-link {
  color: var(--primary-dark);
  font-weight: 700;
}

.card-link:hover {
  color: var(--primary);
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title-row h2,
.card-title-row h3 {
  margin: 0;
}

.icon-token {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--map-ink);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 249, 232, 0.98) 0%, rgba(245, 220, 158, 0.86) 46%, rgba(183, 125, 42, 0.38) 100%);
  border: 1.5px solid rgba(122, 84, 36, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -9px 14px rgba(122, 84, 36, 0.14),
    0 12px 22px rgba(54, 32, 14, 0.14);
}

.icon-token::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 1px solid rgba(95, 23, 18, 0.18);
  pointer-events: none;
}

.icon-token svg {
  position: relative;
  z-index: 1;
  width: 19px;
  height: 19px;
  fill: currentColor;
  filter: drop-shadow(0 1px 0 rgba(255, 248, 232, 0.56));
}

.icon-token.is-teal {
  color: var(--sea-dark);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 249, 232, 0.98) 0%, rgba(211, 221, 196, 0.84) 48%, rgba(49, 112, 118, 0.36) 100%);
}

.icon-token.is-sand {
  color: var(--accent-dark);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 249, 232, 1) 0%, rgba(247, 220, 144, 0.9) 46%, rgba(154, 104, 39, 0.38) 100%);
}

.icon-token.is-bronze {
  color: var(--primary-dark);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 245, 224, 1) 0%, rgba(233, 179, 105, 0.82) 47%, rgba(141, 37, 29, 0.36) 100%);
}

.icon-token.is-rose {
  color: var(--map-red);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 247, 230, 1) 0%, rgba(235, 197, 161, 0.86) 48%, rgba(154, 85, 71, 0.32) 100%);
}

.icon-token.is-olive {
  color: #4f6039;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 248, 232, 1) 0%, rgba(221, 218, 159, 0.86) 48%, rgba(86, 114, 69, 0.32) 100%);
}

.icon-token.is-navy {
  color: #31415e;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 248, 232, 1) 0%, rgba(203, 207, 186, 0.86) 48%, rgba(47, 66, 100, 0.32) 100%);
}
.meta-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 95, 122, 0.08);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.personal-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 242, 234, 0.96));
  border: 1px solid rgba(203, 187, 167, 0.48);
  box-shadow: var(--shadow-sm);
}

.simple-list,
.trust-list {
  padding-left: 20px;
}

.simple-list li,
.trust-list li {
  margin-bottom: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.hero-grid > .hero-card,
.hero-grid > .content-card,
.hero-grid > .hero-side {
  height: 100%;
}

.hero-grid > .hero-card {
  display: flex;
  flex-direction: column;
}

.hero-grid > .hero-card > .button-row {
  margin-top: auto;
  padding-top: 18px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-lead {
  max-width: 760px;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.cta-panel {
  text-align: left;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
}

.content-block {
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.content-block h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.content-block p {
  margin-bottom: 14px;
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
}

.bullet-list li {
  margin-bottom: 8px;
}

.mistakes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mistake-card {
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.mistake-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.site-footer {
  border-top: 1px solid rgba(203, 187, 167, 0.5);
  padding: 28px 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
  }

  .nav {
    flex-wrap: wrap;
    width: 100%;
    justify-content: stretch;
    gap: 6px;
    padding: 6px;
    border-radius: 28px;
  }

  .brand {
    min-height: 38px;
    padding: 7px 13px;
  }

  .nav a {
    flex: 1 1 calc(50% - 6px);
    min-height: 42px;
    justify-content: center;
    text-align: center;
    padding: 8px 10px;
  }

  .hero-card,
  .content-card,
  .info-card {
    padding: 18px;
  }

  .page-back-row {
    margin-top: -28px;
    margin-bottom: -10px;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    gap: 8px;
    padding: 8px 0;
  }

  .brand {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 1.18rem;
  }

  .nav {
    gap: 5px;
    padding: 5px;
    border-radius: 24px;
  }

  .nav a {
    flex-basis: calc(50% - 5px);
    min-height: 40px;
    padding: 7px 9px;
    font-size: 0.98rem;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .scenario-grid,
  .steps-grid,
  .content-grid,
  .mistakes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-shell {
  display: block !important;
  height: auto !important;
  min-height: auto !important;
}

.chat-messages {
  min-height: auto !important;
  height: auto !important;
  margin-bottom: 1rem !important;
}

.chat-tools {
  margin: 0 0 1rem 0 !important;
}

.chat-form {
  margin-top: 0 !important;
}
