:root {
  --bg: #fff;
  --surface: #fff;
  --ink: #101b2d;
  --muted: #5a6574;
  --accent: #245bd7;
  --accent-ink: #fff;
  --line: #d9dfe7;
  --soft: #f3f6fa;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--sans);
  --radius: 3px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 3px; }

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 28px; font-weight: 760; letter-spacing: -0.04em; }
.brand-mark { color: var(--accent); font-size: 32px; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 620; }
.site-nav a { padding: 28px 0 24px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent); border-color: var(--accent); }

.hero { max-width: var(--max); min-height: 470px; margin: 0 auto; display: grid; grid-template-columns: 1.02fr 1.12fr; }
.hero-copy { padding: 66px 42px 62px 34px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin: 0 0 22px; max-width: 650px; font-family: var(--display); font-size: clamp(48px, 5vw, 76px); line-height: .95; letter-spacing: -0.055em; }
.hero p { margin: 0 0 30px; max-width: 590px; color: var(--muted); font-size: 20px; line-height: 1.45; }
.hero-media { min-height: 470px; overflow: hidden; background: var(--soft); }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.button { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; gap: 12px; min-height: 48px; padding: 0 22px; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius); font-weight: 720; }
.button::after { content: "→"; font-size: 20px; font-weight: 400; }
.button:hover { filter: brightness(.94); }

.section-band { max-width: var(--max); margin: 0 auto; padding: 38px 34px 48px; border-top: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.section-item { min-height: 260px; padding: 0 34px 10px; border-left: 1px solid var(--line); }
.section-item:first-child { padding-left: 0; border-left: 0; }
.section-item:last-child { padding-right: 0; }
.section-item h2 { margin: 0 0 14px; font-family: var(--display); font-size: 29px; line-height: 1.08; letter-spacing: -.035em; }
.section-item h3 { margin: 26px 0 8px; font-family: var(--display); font-size: 20px; }
.section-item p { margin: 0; color: var(--muted); max-width: 32ch; }
.section-link { display: inline-block; margin-top: 24px; color: var(--accent); font-weight: 700; border-bottom: 1px solid currentColor; }
.section-art { height: 126px; margin: 22px 0 4px; background: var(--soft); overflow: hidden; }
.section-art img { width: 100%; height: 100%; object-fit: cover; }

.site-footer { max-width: var(--max); margin: 0 auto; padding: 30px 34px 42px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }

.shell { min-height: 100vh; padding: 46px 24px; background: var(--soft); }
.panel { max-width: 920px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); padding: 46px; box-shadow: 0 18px 50px rgba(19,30,49,.08); }
.panel.compact { max-width: 760px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.panel h1 { margin: 0 0 8px; font-family: var(--display); font-size: 42px; line-height: 1.05; letter-spacing: -.045em; }
.panel h2 { margin: 36px 0 14px; font-family: var(--display); font-size: 26px; }
.panel p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 680; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #bfc8d4; border-radius: var(--radius); font-weight: 430; }
.field textarea { min-height: 140px; resize: vertical; }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 18px; }
.form-actions button { min-width: 164px; min-height: 46px; padding: 0 22px; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent-ink); background: var(--accent); font-weight: 720; }
.notice { margin: 24px 0; padding: 14px 16px; background: var(--soft); border-left: 3px solid var(--accent); color: var(--muted); }
.error { border-color: #a93636; background: #fff2f1; color: #842626; }
.code { overflow: auto; padding: 20px; background: #0f1b2d; color: #dbe7f7; border-radius: var(--radius); font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.endpoint-list { margin: 22px 0; border-top: 1px solid var(--line); }
.endpoint { display: grid; grid-template-columns: 64px 1fr 1.5fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.method { color: var(--accent); font-weight: 800; }
.article { max-width: 1160px; margin: 0 auto; padding: 58px 34px 72px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr); gap: 72px; }
.article h1 { font-family: var(--display); font-size: clamp(44px, 5vw, 70px); line-height: 1; letter-spacing: -.05em; margin: 18px 0 22px; }
.article-body { color: var(--muted); font-family: var(--serif); font-size: 19px; }
.article-side { border-top: 1px solid var(--line); padding-top: 24px; }
.article-side h2 { font-family: var(--display); font-size: 28px; }

.theme-fineoak { --bg:#f4f0e7; --surface:#f8f4eb; --ink:#16281f; --muted:#526057; --accent:#274c37; --accent-ink:#fff; --line:#b9b6aa; --soft:#e9e4d8; --display:Georgia,"Times New Roman",serif; --radius:0; }
.theme-fineoak .brand { font-family: var(--display); font-weight: 500; letter-spacing:-.03em; }
.theme-fineoak .brand-mark { font-size:27px; }
.theme-fineoak .hero { position:relative; grid-template-columns: 1fr; min-height:540px; }
.theme-fineoak .hero-copy { position:relative; z-index:2; max-width:670px; padding:78px 34px; }
.theme-fineoak .hero-media { position:absolute; inset:0; }
.theme-fineoak .hero-media::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(244,240,231,.99) 0%,rgba(244,240,231,.83) 35%,rgba(244,240,231,0) 68%); }
.theme-fineoak .hero h1 { font-weight:500; }
.theme-fineoak .button { color:var(--accent); background:transparent; padding:0 0 4px; min-height:auto; border-width:0 0 1px; }

.theme-delivery { --bg:#fff; --surface:#fff; --ink:#071a33; --muted:#526278; --accent:#ff4b0b; --accent-ink:#fff; --line:#cbd5df; --soft:#f3f6f9; --display:"Arial Narrow","Roboto Condensed",Impact,sans-serif; --radius:1px; }
.theme-delivery .brand { text-transform:uppercase; font-family:var(--display); font-size:34px; letter-spacing:-.02em; }
.theme-delivery .brand em { color:var(--accent); font-style:normal; }
.theme-delivery .hero { position:relative; grid-template-columns:1fr; min-height:500px; }
.theme-delivery .hero-copy { position:relative; z-index:2; width:58%; padding:62px 34px; }
.theme-delivery .hero-media { position:absolute; inset:0; }
.theme-delivery .hero-media::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#fff 3%,rgba(255,255,255,.97) 28%,rgba(255,255,255,.2) 63%); }
.theme-delivery .section-item h2, .theme-delivery .panel h1 { text-transform:none; }

.theme-robotics { --bg:#fff; --surface:#fff; --ink:#15161a; --muted:#59606a; --accent:#8b1636; --accent-ink:#fff; --line:#cdd1d7; --soft:#f4f5f6; --display:Georgia,"Times New Roman",serif; --radius:0; }
.theme-robotics .brand { font-family:var(--sans); font-weight:730; letter-spacing:-.04em; }
.theme-robotics .brand strong { color:var(--accent); }
.theme-robotics .brand small { display:block; color:var(--muted); font-family:var(--serif); font-size:12px; font-weight:400; letter-spacing:0; }
.theme-robotics .hero h1 { font-weight:500; }

.theme-365i { --bg:#f1f5fa; --surface:#fff; --ink:#081a3a; --muted:#60708a; --accent:#1769ed; --accent-ink:#fff; --line:#d6dee9; --soft:#eaf0f8; --display:var(--sans); --radius:5px; }
.theme-365i .hero-media { background:radial-gradient(circle at center,#e8f0fa 0,#f1f5fa 72%); display:flex; align-items:center; justify-content:center; }
.theme-365i .hero-media img { object-fit:contain; max-width:86%; max-height:86%; filter:drop-shadow(0 25px 28px rgba(39,79,144,.16)); }
.theme-365i .brand { font-size:35px; font-weight:820; }
.theme-365i .brand em { color:var(--accent); font-style:normal; }

.theme-n365 { --bg:#fff; --surface:#fff; --ink:#071a38; --muted:#5b6a80; --accent:#18c7da; --accent-ink:#041a2a; --line:#d4dde7; --soft:#f1f6f9; --display:var(--sans); --radius:2px; }
.theme-n365 .site-header, .theme-n365 .hero { color:#f8fbff; background:#08213c; border-color:#28445f; }
.theme-n365 .site-nav a:hover { color:#55e1e9; }
.theme-n365 .hero p { color:#cad8e8; }
.theme-n365 .hero-media { background:#08213c; display:flex; align-items:center; }
.theme-n365 .hero-media img { object-fit:contain; filter:drop-shadow(0 8px 22px rgba(30,218,224,.14)); }
.theme-n365 .brand { font-size:35px; }
.theme-n365 .brand strong { color:#38dce3; }

@media (max-width: 820px) {
  .site-header { min-height:72px; padding:0 20px; }
  .site-nav { display:none; }
  .brand { font-size:24px; }
  .hero { grid-template-columns:1fr; min-height:auto; }
  .hero-copy, .theme-fineoak .hero-copy, .theme-delivery .hero-copy { width:auto; padding:48px 20px 36px; }
  .hero h1 { font-size:46px; }
  .hero p { font-size:17px; }
  .hero-media { min-height:270px; }
  .theme-fineoak .hero, .theme-delivery .hero { display:flex; flex-direction:column; }
  .theme-fineoak .hero-media, .theme-delivery .hero-media { position:relative; inset:auto; order:2; min-height:270px; }
  .theme-fineoak .hero-media::after, .theme-delivery .hero-media::after { display:none; }
  .section-band { padding:30px 20px; }
  .section-grid { grid-template-columns:1fr; }
  .section-item, .section-item:first-child, .section-item:last-child { min-height:auto; padding:28px 0; border-left:0; border-top:1px solid var(--line); }
  .section-item:first-child { border-top:0; }
  .site-footer { padding:26px 20px; align-items:flex-start; gap:18px; flex-direction:column; }
  .shell { padding:18px 12px; }
  .panel { padding:28px 20px; }
  .panel h1 { font-size:35px; }
  .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .article { grid-template-columns:1fr; gap:40px; padding:40px 20px; }
  .endpoint { grid-template-columns:54px 1fr; }
  .endpoint span:last-child { grid-column:2; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }
