:root {
  --ink: #121416;
  --night: #181a1f;
  --paper: #efe3c6;
  --ivory: #fff9ea;
  --muted: #62645f;
  --teal: #129083;
  --amber: #f0b74b;
  --red: #cf523d;
  --line: rgba(18, 20, 22, 0.16);
  --shadow: 10px 12px 0 rgba(18, 20, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(18, 20, 22, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(18, 20, 22, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Trebuchet MS", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 249, 234, 0.12);
  background: rgba(18, 20, 22, 0.92);
  color: var(--ivory);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.lang {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 249, 234, 0.4);
  background: var(--teal);
  font-size: 13px;
}

.nav {
  justify-content: center;
  gap: clamp(12px, 2.3vw, 30px);
  color: rgba(255, 249, 234, 0.76);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ivory);
}

.lang {
  gap: 6px;
}

.lang a,
.lang button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 249, 234, 0.28);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  padding: 0 10px;
}

.lang a.active,
.lang button.active {
  background: var(--amber);
  color: var(--ink);
}

.hero {
  display: grid;
  min-height: calc(100vh - 67px);
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-kicker {
  margin-bottom: 20px;
  color: var(--red);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
}

.lede {
  max-width: 660px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.button-soft {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 900;
}

.button {
  background: var(--teal);
  color: white;
}

.button-soft {
  background: var(--amber);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 20, 22, 0.2);
  border-radius: 8px;
  background: var(--night);
  box-shadow: 0 32px 80px rgba(18, 20, 22, 0.28);
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  opacity: 0.82;
}

.ko-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border: 1px solid rgba(255, 249, 234, 0.2);
  border-radius: 8px;
  background: rgba(18, 20, 22, 0.84);
  color: var(--ivory);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.ko-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.ko-line strong {
  color: var(--amber);
  font-size: 40px;
  line-height: 0.9;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-wide {
  width: 100%;
  padding: 78px clamp(18px, 5vw, 72px);
}

.band-dark {
  background: var(--night);
  color: var(--ivory);
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.grid-3,
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.card,
.tool-panel,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: var(--shadow);
}

.card,
.price-card {
  padding: 26px;
}

.card p,
.price-card li,
.muted {
  color: var(--muted);
  line-height: 1.65;
}

.number {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--red);
  font-weight: 900;
}

.tool-panel {
  padding: 26px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(18, 20, 22, 0.22);
  border-radius: 6px;
  background: #fffdf6;
  color: var(--ink);
  padding: 0 12px;
}

textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.result-box {
  margin-top: 18px;
  border-radius: 8px;
  background: var(--night);
  color: var(--ivory);
  padding: 22px;
}

.result-box strong {
  display: block;
  color: var(--amber);
  font-size: 34px;
}

.download-box {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: var(--shadow);
}

.ad-slot {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px dashed rgba(18, 20, 22, 0.28);
  background: rgba(255, 249, 234, 0.62);
  color: var(--muted);
  text-align: center;
}

.price {
  color: var(--teal);
  font-size: 40px;
  font-weight: 900;
}

.price-card.featured {
  background: var(--amber);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #0f1113;
  color: rgba(255, 249, 234, 0.74);
}

.footer strong {
  color: var(--ivory);
}

.puzzle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--muted);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
}

.damage-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.damage-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-radius: 6px;
  background: rgba(18, 20, 22, 0.06);
  padding: 12px 14px;
}

details.answer {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: var(--shadow);
  padding: 18px;
}

details.answer summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 900;
}

.route-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .grid-2,
  .grid-3,
  .price-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  h1 {
    font-size: 58px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .actions,
  .button-row {
    display: grid;
  }

  .button,
  .button-soft {
    width: 100%;
  }

  .footer {
    display: grid;
  }
}
