:root {
  --bg: #f7f5f0;
  --ink: #17201b;
  --muted: #66716a;
  --line: #d9ddd5;
  --panel: #ffffff;
  --accent: #126c57;
  --accent-dark: #0d4438;
  --warm: #d48945;
  --blue: #2d5b87;
  --shadow: 0 24px 70px rgba(28, 40, 33, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 72px;
  align-items: center;
  min-height: 100vh;
  padding: 72px 0;
}

.brand-name {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

h1,
p,
ul {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
}

.intro-text {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.offer-list {
  display: grid;
  gap: 12px;
  max-width: 660px;
  margin-bottom: 34px;
  padding-left: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.offer-list li {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration-color: rgba(18, 108, 87, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.contact-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(18, 108, 87, 0.24);
  outline-offset: 4px;
}

.system-visual {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 32, 27, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 32, 27, 0.05) 1px, transparent 1px),
    var(--panel);
  background-size: 42px 42px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.architecture-svg {
  display: block;
  width: 100%;
  height: 440px;
}

.diagram-node rect {
  fill: none;
  stroke: var(--line);
  filter: drop-shadow(0 16px 20px rgba(24, 34, 28, 0.1));
}

.diagram-node .icon {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.node-a rect,
.node-b rect,
.node-c rect {
  fill: white;
}

.node-a rect {
  stroke: rgba(18, 108, 87, 0.3);
}

.node-a .icon {
  stroke: var(--accent-dark);
}

.node-b rect {
  stroke: rgba(212, 137, 69, 0.4);
}

.node-b .icon {
  stroke: #8a5728;
}

.node-c rect {
  stroke: rgba(45, 91, 135, 0.35);
}

.node-c .icon {
  stroke: var(--blue);
}

.node-d rect {
  fill: var(--accent-dark);
  stroke: var(--accent-dark);
}

.node-d .icon {
  stroke: white;
}

.connector {
  fill: none;
  stroke: rgba(18, 108, 87, 0.36);
  stroke-linecap: round;
  stroke-width: 2;
}

.connector-b {
  stroke: rgba(45, 91, 135, 0.28);
}

.connector-c {
  stroke: rgba(212, 137, 69, 0.34);
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: -42px auto 0;
  padding: 0 0 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 4px;
}

.site-footer a {
  color: inherit;
  text-decoration-color: rgba(102, 113, 106, 0.38);
  text-underline-offset: 4px;
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
    padding: 44px 0 64px;
  }

  h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .system-visual {
    min-height: 360px;
  }

  .site-footer {
    margin-top: -28px;
  }
}

@media (max-width: 520px) {
  .page,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .contact-link {
    overflow-wrap: anywhere;
  }

  .system-visual {
    min-height: 320px;
  }

  .architecture-svg {
    height: 320px;
  }
}
