:root {
  --ink: #18211f;
  --muted: #5f6d68;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --line: #d8ded7;
  --pine: #184d43;
  --copper: #b56b3f;
  --mint: #dcebe4;
  --steel: #2f5264;
  --focus: #1d65ff;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 244, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(46px, 7vw, 96px) clamp(20px, 5vw, 72px) clamp(34px, 6vw, 72px);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(46px, 8.3vw, 92px);
}

h2 {
  font-size: clamp(32px, 4.8vw, 58px);
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-text {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--pine);
  border-radius: 4px;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--pine);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--pine);
}

.route-panel {
  position: relative;
  min-height: 500px;
  border-left: 1px solid var(--line);
}

.node {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: 9px 9px 0 var(--mint);
  font-weight: 760;
  z-index: 2;
}

.node-main {
  inset: 42px auto auto 46px;
  width: min(280px, calc(100% - 70px));
  min-height: 118px;
}

.node-label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.05;
}

.node-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.node.small {
  min-width: 136px;
  min-height: 62px;
  color: white;
  box-shadow: none;
}

.lotto {
  right: 18px;
  top: 210px;
  background: var(--copper);
}

.lkpsus {
  left: 80px;
  bottom: 94px;
  background: var(--steel);
}

.devops {
  right: 50px;
  bottom: 22px;
  background: var(--pine);
}

.route-line {
  position: absolute;
  height: 2px;
  background: var(--ink);
  transform-origin: left center;
  z-index: 1;
}

.route-line.one {
  width: 200px;
  left: 210px;
  top: 178px;
  transform: rotate(18deg);
}

.route-line.two {
  width: 170px;
  left: 126px;
  top: 168px;
  transform: rotate(75deg);
}

.route-line.three {
  width: 238px;
  left: 152px;
  bottom: 99px;
  transform: rotate(-12deg);
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.proof div {
  min-height: 112px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

.proof div:last-child {
  border-right: 0;
}

.proof strong,
.proof span {
  display: block;
}

.proof strong {
  margin-bottom: 10px;
  color: var(--pine);
  font-size: 13px;
  text-transform: uppercase;
}

.proof span {
  font-weight: 720;
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.section-intro {
  max-width: 620px;
}

.section-intro.narrow {
  max-width: 760px;
  margin-bottom: 32px;
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-list article {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.service-list p,
.work-card p,
.contact-band p,
.legal-page p {
  margin: 0;
  color: var(--muted);
}

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

.work-card {
  min-height: 252px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.work-tag {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.hosted-strip .section-intro p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
}

.hosted-strip {
  padding: clamp(54px, 8vw, 92px) clamp(20px, 5vw, 72px);
  background: var(--paper);
}

.hosted-strip .section-intro {
  margin-bottom: 28px;
}

.hosted-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.hosted-table th,
.hosted-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.hosted-table th {
  color: var(--pine);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.hosted-table tr:last-child td {
  border-bottom: 0;
}

.service-icon-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--pine);
  border-radius: 6px;
  background: var(--mint);
  color: var(--pine);
  text-decoration: none;
}

.service-icon-link:hover {
  background: var(--pine);
  color: white;
}

.service-icon-link img {
  width: 21px;
  height: 21px;
  display: block;
  filter: brightness(0) saturate(100%) invert(23%) sepia(24%) saturate(1063%) hue-rotate(123deg) brightness(91%) contrast(89%);
}

.service-icon-link:hover img {
  filter: brightness(0) invert(1);
}

.hosted-name {
  display: block;
  font-weight: 820;
}

.hosted-table td:last-child {
  color: var(--muted);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(54px, 8vw, 92px) clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: white;
}

.contact-band p {
  max-width: 620px;
  margin-top: 18px;
  color: #d5ddd9;
}

.email-link {
  display: inline-block;
  margin-top: 26px;
  color: white;
  font-weight: 760;
}

.contact-phone {
  display: block;
  margin-top: 8px;
}

.address {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  color: #d5ddd9;
  font-style: normal;
}

.contact-form {
  display: grid;
  gap: 14px;
  align-self: start;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #edf4f0;
  font-size: 14px;
  font-weight: 720;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #65736f;
  border-radius: 4px;
  background: #22302d;
  color: white;
  font: inherit;
  padding: 12px 13px;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: #d5ddd9;
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: inline-flex;
  gap: 16px;
}

.legal-page {
  max-width: 820px;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.rules-page {
  padding: clamp(42px, 7vw, 84px) clamp(20px, 5vw, 72px);
}

.rules-content {
  max-width: 960px;
}

.legal-page h1 {
  font-size: clamp(40px, 6vw, 70px);
  margin-bottom: 24px;
}

.rules-content h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(40px, 6vw, 72px);
}

.rules-content h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
}

.legal-page h2 {
  margin-top: 34px;
  margin-bottom: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
}

.rules-content h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--pine);
}

.rules-content p,
.rules-content li {
  color: var(--muted);
}

.rules-content p {
  max-width: 820px;
  margin: 0 0 16px;
}

.rules-content ul,
.rules-content ol {
  max-width: 840px;
  margin: 0 0 24px;
  padding-left: 24px;
}

.rules-content li {
  margin-bottom: 8px;
}

.rules-content code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.94em;
}

.updated {
  margin-top: 32px;
  font-size: 14px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .route-panel {
    min-height: 360px;
    border-left: 0;
  }

  .proof,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .proof div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(39px, 13vw, 52px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .route-panel {
    min-height: 330px;
  }

  .node-main {
    left: 0;
    top: 18px;
  }

  .node.small {
    min-width: 118px;
    font-size: 14px;
  }

  .lotto {
    right: 0;
    top: 172px;
  }

  .lkpsus {
    left: 10px;
    bottom: 56px;
  }

  .devops {
    right: 8px;
    bottom: 0;
  }

  .route-line {
    opacity: 0.45;
  }

  .site-footer {
    flex-direction: column;
  }

  .hosted-strip {
    overflow-x: auto;
  }

  .hosted-table {
    min-width: 520px;
  }
}
