*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-warm);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link-default);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.en {
  font-family: var(--font-en);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section--cool {
  background: var(--bg-cool);
}

.section--deep {
  background: linear-gradient(160deg, var(--bg-deep) 0%, var(--brand-primary) 100%);
  color: var(--white);
}

.section--light {
  background: var(--bg-light);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}

.section-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-teal));
  border-radius: 2px;
}

.section--deep .section-kicker {
  color: var(--accent-gold);
}

.section--deep .section-kicker::before {
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
}

.section-title {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.01em;
  max-width: none;
  text-wrap: pretty;
}

.section-title--wide {
  max-width: none;
}

.nowrap {
  white-space: nowrap;
}

.title-dot {
  margin: 0 0.15em;
  color: var(--accent-gold);
  font-weight: 500;
}

.section--deep .section-title {
  color: var(--white);
}

.section-desc {
  margin-top: 10px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.section--deep .section-desc {
  color: rgba(255, 255, 255, 0.82);
}

.section-head {
  margin-bottom: 18px;
}

.section-head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head--row > .btn {
  flex-shrink: 0;
  align-self: center;
}

.em {
  color: var(--accent-orange);
  font-weight: 600;
}

.trust-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.compliance-box {
  margin-top: 32px;
  padding: 20px 22px;
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-left: 3px solid var(--semantic-error);
  border-radius: var(--radius-sm);
  background: rgba(192, 57, 43, 0.04);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.placeholder-media {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(44, 110, 122, 0.06), rgba(200, 169, 81, 0.08)),
    var(--bg-cool);
  color: var(--text-muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.placeholder-media strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-secondary);
  font-size: 14px;
}

.diagram-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 216, 219, 0.7);
  background: var(--bg-warm);
  box-shadow: var(--shadow-soft);
}

.diagram-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-frame__cap {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
  }
}
