:root {
  --paper: #f6f4ee;
  --tile: #fffcf6;
  --ink: #19241f;
  --muted: #555e55;
  --line: #c9cec1;
  --green: #285746;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Instrument Serif", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.wrap { width: min(100% - 48px, 1080px); margin-inline: auto; }
.header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 8px; }
.language { border: 1px solid var(--line); background: transparent; padding: 6px 10px; color: var(--ink); font: 600 13px var(--sans); cursor: pointer; }
.language:hover { border-color: var(--green); }
main.wrap { padding-block: clamp(38px, 6vw, 72px); }
h1 { margin: 0; font: 600 clamp(37px, 6vw, 65px)/1.13 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.intro { max-width: 640px; margin: 16px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 18px); }
.devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.device { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--tile); text-decoration: none; transition: border-color 140ms ease; }
.device:hover { border-color: var(--green); }
.device-image { height: clamp(190px, 24vw, 285px); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 27px; background: #e8e7de; }
.passport .device-image, .device-image.passport { background: #dfe9e1; }
.device-image img { display: block; height: 100%; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 9px 9px #202e282c); }
.device-copy { flex: 1; display: flex; flex-direction: column; padding: 23px 25px; }
.device-copy h2 { margin: 0; font-size: clamp(20px, 2.7vw, 25px); line-height: 1.3; }
.device-copy p { margin: 8px 0 18px; color: var(--muted); }
.device-action { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; color: var(--green); font-weight: 700; }
.device:hover .device-action { text-decoration: underline; text-underline-offset: 4px; }
.product { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(24px, 5vw, 76px); align-items: center; }
.product .device-image { height: clamp(270px, 37vw, 426px); border-radius: 14px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.action { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; font-weight: 600; text-decoration: none; }
.action:hover { border-color: var(--green); }
.action.primary { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 660px) {
  .wrap { width: calc(100% - 36px); }
  .devices, .product { grid-template-columns: minmax(0, 1fr); }
  .devices { gap: 16px; margin-top: 26px; }
  .device-copy { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .device { transition: none; }
}
