:root {
  --ink: #121a24;
  --paper: #f3f0e8;
  --line: rgba(18, 26, 36, .16);
  --muted: #67717c;
  --lime: #c9f65b;
  --orange: #ff8b61;
  --blue: #72a9ff;
  --lavender: #c5a8ff;
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: relative;
  z-index: 10;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: #fff;
  background: var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: .05em; }
.brand-mark { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.site-header nav { display: flex; gap: 32px; font-size: 13px; color: #c5ccd3; }
.site-header nav a:hover { color: var(--lime); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.online { font-size: 12px; color: #dfe5ea; white-space: nowrap; }
.online i { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201,246,91,.12); }
.language-switch { padding: 3px; display: flex; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.06); }
.language-switch button { min-width: 43px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; color: #c9d0d6; background: transparent; font: 750 11px/1 inherit; cursor: pointer; }
.language-switch button.active { color: var(--ink); background: var(--lime); }
.language-switch button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hero {
  min-height: 690px;
  padding: 88px max(24px, calc((100vw - 1180px) / 2)) 96px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 80px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.eyebrow, .card-kicker { margin: 0 0 22px; font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { margin: 0; font: 500 clamp(58px, 7.2vw, 104px)/.93 Georgia, "Noto Serif SC", serif; letter-spacing: -.045em; }
.hero h1 em { color: var(--lime); font-style: italic; }
.hero-lede { max-width: 570px; margin: 32px 0 0; color: #bac3cb; font-size: 17px; line-height: 1.85; }
.hero-actions { margin-top: 38px; display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 26px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; font-size: 13px; font-weight: 750; }
.button.primary { border-color: var(--lime); color: var(--ink); background: var(--lime); }
.button:hover { transform: translateY(-2px); }

.hero-map { position: relative; height: 500px; }
.hero-map::before, .hero-map::after { content: ""; position: absolute; inset: 50% auto auto 50%; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; transform: translate(-50%,-50%); }
.hero-map::before { width: 390px; height: 390px; }
.hero-map::after { width: 210px; height: 210px; }
.map-node { position: absolute; width: 190px; min-height: 124px; padding: 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; backdrop-filter: blur(12px); background: rgba(255,255,255,.07); transition: .25s ease; }
.map-node:hover { transform: translateY(-5px); border-color: currentColor; }
.map-node b { display: block; margin-bottom: 18px; font-size: 10px; letter-spacing: .18em; }
.map-node span { display: block; font: 600 22px Georgia, serif; }
.map-node small { display: block; margin-top: 5px; color: #bac3cb; }
.node-puzzle { top: 2px; left: 18%; color: var(--orange); }
.node-money { top: 108px; right: 0; color: var(--lime); }
.node-nonogram { bottom: 8px; right: 22%; color: var(--blue); }
.node-writer { bottom: 105px; left: 0; color: var(--lavender); }

.intro { padding: 110px 0 54px; display: grid; grid-template-columns: .7fr 1.2fr 1fr; gap: 40px; align-items: end; border-bottom: 1px solid var(--line); }
.intro p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.intro h2 { margin: 0; font: 500 clamp(36px,5vw,66px)/1 Georgia, "Noto Serif SC", serif; }
.intro > span { color: var(--muted); font-size: 14px; line-height: 1.7; }

.site-grid { padding: 30px 0 120px; display: grid; grid-template-columns: 1fr 1fr; }
.site-card { position: relative; min-height: 650px; padding: 44px 48px 42px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.site-card:nth-child(odd) { border-right: 1px solid var(--line); }
.card-number { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.card-number a { color: inherit; text-decoration: none; }
.card-number a:hover, .card-number a:focus-visible { color: var(--orange); outline: none; }
.card-icon { width: 118px; height: 118px; margin: 54px 0 38px; }
.icon-puzzle { position: relative; transform: rotate(-10deg); }
.icon-puzzle i { position: absolute; inset: 18px; border: 9px solid var(--orange); border-radius: 50%; }
.icon-puzzle i:nth-child(2) { inset: 34px; border-width: 7px; border-color: var(--ink); }
.icon-puzzle i:nth-child(3) { inset: 49px; border-width: 5px; border-color: var(--orange); }
.icon-money { display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); box-shadow: 16px 16px 0 var(--ink); }
.icon-money span { font: 700 58px Georgia, serif; }
.icon-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; transform: rotate(8deg); }
.icon-grid i { border: 2px solid var(--ink); background: transparent; }
.icon-grid i:nth-child(1), .icon-grid i:nth-child(3), .icon-grid i:nth-child(5), .icon-grid i:nth-child(7), .icon-grid i:nth-child(8) { background: var(--blue); }
.icon-writer { padding: 18px 12px; border: 2px solid var(--ink); border-radius: 8px; transform: rotate(-5deg); }
.icon-writer i { height: 5px; margin: 11px 0; display: block; border-radius: 5px; background: var(--ink); }
.icon-writer i:nth-child(2) { width: 75%; }
.icon-writer i:nth-child(3) { width: 88%; background: var(--lavender); }
.card-kicker { margin-bottom: 10px; color: var(--muted); }
.site-card h2 { margin: 0; font: 500 50px/1 Georgia, "Noto Serif SC", serif; }
.site-title-link { color: inherit; text-decoration: none; }
.site-title-link:hover, .site-title-link:focus-visible { color: var(--orange); outline: none; }
.card-summary { min-height: 78px; margin: 21px 0; color: #4f5964; font-size: 15px; line-height: 1.75; }
.site-card ul { margin: 0 0 35px; padding: 0; list-style: none; color: #38434e; font-size: 13px; line-height: 1.7; }
.site-card li { padding: 8px 0 8px 20px; border-top: 1px solid var(--line); }
.site-card li::before { content: "+"; margin-left: -20px; margin-right: 10px; font-weight: 800; }
.card-link { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; border-top: 2px solid var(--ink); font-size: 14px; font-weight: 800; }
.card-link:hover span { transform: translate(3px,-3px); }

.chooser { margin-bottom: 110px; padding: 68px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; border-radius: var(--radius); color: #fff; background: var(--ink); }
.chooser .eyebrow { color: var(--lime); }
.chooser h2 { margin: 0; font: 500 48px/1.08 Georgia, "Noto Serif SC", serif; }
.chooser-list a { padding: 21px 0; display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.16); }
.chooser-list span { color: #bbc4cc; font-size: 14px; }
.chooser-list b { white-space: nowrap; font-size: 13px; }
.chooser-list a:hover b { color: var(--lime); }

footer { min-height: 130px; padding: 32px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); font-size: 12px; }
footer div { display: flex; align-items: center; gap: 11px; }
footer p { text-align: center; color: var(--muted); }
footer > a { justify-self: end; font-weight: 750; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 56px; }
  .hero-map { height: 450px; max-width: 620px; width: 100%; margin: 0 auto; }
  .intro { grid-template-columns: 1fr; gap: 16px; }
  .site-card { padding: 40px 32px; }
  .chooser { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 650px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 66px; padding: 0 14px; }
  .header-actions { gap: 8px; }
  .online { display: none; }
  .language-switch button { min-width: 40px; padding: 0 8px; }
  .hero { min-height: 0; padding: 72px 18px 76px; }
  .hero h1 { font-size: clamp(54px, 18vw, 78px); }
  .hero-lede { font-size: 15px; }
  .hero-map { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-map::before, .hero-map::after { display: none; }
  .map-node { position: static; width: auto; min-height: 118px; }
  .intro { padding-top: 76px; }
  .site-grid { grid-template-columns: 1fr; padding-bottom: 80px; }
  .site-card { min-height: 0; padding: 42px 12px 52px; border-right: 0 !important; }
  .card-icon { margin-top: 42px; }
  .site-card h2 { font-size: 43px; }
  .card-summary { min-height: 0; }
  .chooser { width: calc(100% - 28px); margin-bottom: 70px; padding: 38px 24px; }
  .chooser h2 { font-size: 39px; }
  .chooser-list a { flex-direction: column; gap: 8px; }
  footer { grid-template-columns: 1fr; gap: 15px; padding: 30px 18px; }
  footer p { text-align: left; }
  footer > a { justify-self: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .map-node, .card-link span { transition: transform .2s ease, color .2s ease, border-color .2s ease; }
}
