:root {
  --m857-cream: #f3eee3;
  --m857-back: #d6e5df;
  --m857-paper: #fffaf0;
  --m857-ink: #123f43;
  --m857-deep: #092d31;
  --m857-line: #17383b;
  --m857-coral: #ff6747;
  --m857-blue: #3157d5;
  --m857-mint: #a8ddcc;
  --m857-sun: #f7c65e;
  --m857-white: #fffdf7;
  --m857-shadow: 8px 8px 0 var(--m857-line);
  --m857-radius: 26px 8px 26px 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--m857-ink);
  background:
    radial-gradient(circle at 25px 25px, rgba(49,87,213,.2) 0 3px, transparent 4px) 0 0 / 58px 58px,
    radial-gradient(circle at 0 0, transparent 0 18px, rgba(18,63,67,.11) 19px 20px, transparent 21px) 0 0 / 58px 58px,
    linear-gradient(135deg, rgba(255,103,71,.11) 0 12px, transparent 13px 43px, rgba(247,198,94,.16) 44px 56px, transparent 57px) 0 0 / 88px 88px,
    var(--m857-back);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
main { min-width: 0; }

a { color: inherit; }
svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  line-height: 1.02;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 5.5rem); }
h2 { font-size: clamp(1.85rem, 3.7vw, 3.7rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.55rem); }

.m857-skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--m857-white);
  background: var(--m857-deep);
}
.m857-skip:focus { top: 16px; }

.m857-header {
  width: min(1220px, calc(100% - 32px));
  min-height: 78px;
  margin: 18px auto 0;
  padding: 10px 12px 10px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  border: 2px solid var(--m857-line);
  border-radius: 40px 14px 40px 14px;
  background: rgba(255,250,240,.92);
  box-shadow: 5px 5px 0 var(--m857-line);
  position: relative;
  z-index: 10;
}

.m857-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.m857-brand svg { width: 42px; height: 42px; }
.m857-brand svg path:first-child { fill: var(--m857-ink); }
.m857-brand svg path:nth-child(2) { fill: var(--m857-paper); }
.m857-brand svg circle { fill: var(--m857-coral); stroke: var(--m857-line); stroke-width: 2px; }
.m857-brand small {
  padding: 1px 6px;
  color: var(--m857-deep);
  background: var(--m857-sun);
  border: 1px solid var(--m857-line);
  border-radius: 9px 3px 9px 3px;
  font-size: .68rem;
  letter-spacing: .04em;
}

.m857-nav { display: flex; justify-content: center; gap: 16px; }
.m857-nav a {
  position: relative;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.m857-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 3px;
  background: var(--m857-coral);
  transition: right .2s ease;
}
.m857-nav a:hover::after { right: 0; }

.m857-header-cta,
.m857-button,
.m857-game a,
.m857-service a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 2px solid var(--m857-line);
  border-radius: 16px 5px 16px 5px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--m857-line);
  transition: transform .16s ease, box-shadow .16s ease;
}
.m857-header-cta,
.m857-button-primary { color: var(--m857-white); background: var(--m857-coral); }
.m857-button-secondary { background: var(--m857-paper); }
.m857-header-cta:hover,
.m857-button:hover,
.m857-game a:hover,
.m857-service a:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--m857-line);
}

.m857-hero {
  width: min(1220px, calc(100% - 32px));
  margin: 30px auto 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: 22px;
}
.m857-hero-copy {
  min-height: 630px;
  padding: clamp(36px, 6vw, 78px);
  border: 2px solid var(--m857-line);
  border-radius: 60px 12px 60px 12px;
  background: var(--m857-paper);
  box-shadow: var(--m857-shadow);
  position: relative;
  z-index: 2;
}
.m857-hero-copy::before {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  right: 32px;
  top: 30px;
  border: 2px solid var(--m857-line);
  border-radius: 50%;
  background: radial-gradient(circle at 65% 35%, var(--m857-white) 0 9%, var(--m857-sun) 10% 45%, var(--m857-blue) 46% 100%);
}
.m857-eyebrow {
  margin-bottom: 18px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.m857-hero h1 { max-width: 11.5ch; margin-bottom: 30px; font-size: clamp(2.3rem, 4.5vw, 4.65rem); }
.m857-lead { max-width: 63ch; font-size: 1.08rem; }
.m857-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.m857-address {
  display: inline-block;
  margin: 34px 0 0;
  padding: 7px 12px;
  border: 1px dashed var(--m857-line);
  border-radius: 10px 3px 10px 3px;
  font-size: .82rem;
  font-weight: 800;
}

.m857-hero-mosaic {
  min-height: 630px;
  overflow: hidden;
  border: 2px solid var(--m857-line);
  border-radius: 12px 60px 12px 60px;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.18) 49% 52%, transparent 53%),
    var(--m857-blue);
  box-shadow: var(--m857-shadow);
  position: relative;
}
.m857-mark {
  position: absolute;
  left: 9%;
  top: 8%;
  z-index: 3;
  display: grid;
  color: var(--m857-white);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  line-height: .8;
}
.m857-mark span { font-size: clamp(8rem, 17vw, 14rem); font-weight: 900; }
.m857-mark em { font-size: clamp(2rem, 5vw, 4rem); font-style: normal; letter-spacing: .2em; }
.m857-orbit { position: absolute; border: 3px solid var(--m857-line); border-radius: 50%; }
.m857-orbit-a { width: 360px; height: 360px; right: -100px; top: 120px; background: var(--m857-sun); }
.m857-orbit-b { width: 210px; height: 210px; right: 45px; bottom: -35px; background: var(--m857-coral); }
.m857-hero-mosaic > p {
  position: absolute;
  right: 36px;
  bottom: 34px;
  z-index: 4;
  margin: 0;
  color: var(--m857-white);
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.m857-kpis {
  grid-column: 1 / -1;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.m857-kpis article {
  padding: 22px;
  border: 2px solid var(--m857-line);
  border-radius: var(--m857-radius);
  background: var(--m857-mint);
}
.m857-kpis article:nth-child(2) { background: var(--m857-sun); }
.m857-kpis article:nth-child(3) { color: var(--m857-white); background: var(--m857-ink); }
.m857-kpis article:nth-child(4) { background: var(--m857-paper); }
.m857-kpis span { font-family: Bahnschrift, sans-serif; font-size: 1.45rem; font-weight: 900; }
.m857-kpis p { margin: 3px 0 0; font-size: .84rem; }

.m857-catalog,
.m857-service,
.m857-faq {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}
.m857-section-head { max-width: 920px; margin-bottom: 46px; }
.m857-section-head h2 { margin-bottom: 20px; }
.m857-section-head > p:last-child { max-width: 70ch; font-size: 1.05rem; }

.m857-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}
.m857-game {
  min-height: 330px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--m857-line);
  border-radius: var(--m857-radius);
  box-shadow: 5px 5px 0 var(--m857-line);
}
.m857-game-wide { grid-column: span 2; }
.m857-game-tall { grid-row: span 2; min-height: 678px; }
.m857-tone-coral { background: var(--m857-coral); }
.m857-tone-blue { color: var(--m857-white); background: var(--m857-blue); }
.m857-tone-sun { background: var(--m857-sun); }
.m857-tone-mint { background: var(--m857-mint); }
.m857-tone-ink { color: var(--m857-white); background: var(--m857-ink); }
.m857-game-art {
  min-height: 150px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid currentColor;
  border-radius: 52% 48% 18% 82% / 56% 26% 74% 44%;
  background:
    repeating-radial-gradient(circle at 30% 30%, transparent 0 13px, currentColor 14px 16px, transparent 17px 31px),
    rgba(255,255,255,.18);
}
.m857-game-art span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--m857-paper);
  color: var(--m857-ink);
  font-family: Bahnschrift, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
}
.m857-game-type { margin: 0 0 7px; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.m857-game h3 { margin-bottom: 22px; }
.m857-game a { align-self: flex-start; margin-top: auto; color: var(--m857-ink); background: var(--m857-paper); }

.m857-overview {
  width: min(1120px, calc(100% - 32px));
  margin: 74px auto;
  padding: clamp(28px, 6vw, 76px);
  border: 2px solid var(--m857-line);
  border-radius: 70px 12px 70px 12px;
  background: var(--m857-paper);
  box-shadow: 12px 12px 0 var(--m857-mint), 14px 14px 0 var(--m857-line);
}
.m857-overview h2 {
  max-width: 18ch;
  margin: 78px 0 24px;
  padding-left: 22px;
  border-left: 12px solid var(--m857-coral);
  font-size: clamp(1.75rem, 3vw, 3rem);
}
.m857-overview h2:first-child { margin-top: 0; }
.m857-overview p,
.m857-overview ul,
.m857-overview ol { max-width: 82ch; }
.m857-overview li + li { margin-top: 10px; }
.m857-overview table {
  width: 100%;
  margin: 32px 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 2px solid var(--m857-line);
  border-radius: 22px 5px 22px 5px;
}
.m857-overview td { padding: 14px 16px; border-bottom: 1px solid rgba(18,63,67,.3); }
.m857-overview tr:last-child td { border-bottom: 0; }
.m857-overview td:first-child { width: 34%; font-weight: 900; background: var(--m857-mint); }

.m857-service { padding-top: 120px; }
.m857-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.m857-service-grid article {
  min-height: 350px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--m857-line);
  border-radius: 42px 8px 42px 8px;
  background: var(--m857-paper);
  box-shadow: 6px 6px 0 var(--m857-line);
}
.m857-service-grid article:nth-child(2) { background: var(--m857-mint); }
.m857-service-grid article:nth-child(3) { background: var(--m857-sun); }
.m857-service-no {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 54px;
  place-items: center;
  border: 2px solid var(--m857-line);
  border-radius: 50%;
  background: var(--m857-coral);
  color: var(--m857-white);
  font-family: Bahnschrift, sans-serif;
  font-weight: 900;
}
.m857-service-grid h3 { margin-bottom: 16px; }
.m857-service-grid a { align-self: flex-start; margin-top: auto; background: var(--m857-paper); }

.m857-faq { padding-bottom: 120px; }
.m857-faq-list { border-top: 2px solid var(--m857-line); }
.m857-faq details { border-bottom: 2px solid var(--m857-line); }
.m857-faq summary {
  padding: 26px 58px 26px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: Bahnschrift, sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  font-weight: 800;
}
.m857-faq summary::-webkit-details-marker { display: none; }
.m857-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--m857-line);
  border-radius: 50%;
  background: var(--m857-sun);
}
.m857-faq details[open] summary::after { content: "×"; background: var(--m857-coral); color: var(--m857-white); }
.m857-faq details p { max-width: 72ch; padding: 0 58px 26px 0; }

.m857-footer {
  padding: 54px max(24px, calc((100vw - 1220px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 40px;
  color: var(--m857-white);
  background: var(--m857-deep);
}
.m857-brand-footer { color: var(--m857-white); }
.m857-brand-footer svg path:first-child { fill: var(--m857-sun); }
.m857-brand-footer svg path:nth-child(2) { fill: var(--m857-deep); }
.m857-footer > div:first-child p { max-width: 50ch; margin: 24px 0 0; }
.m857-footer-meta { text-align: right; }
.m857-footer-meta p { margin-bottom: 8px; }

@media (max-width: 980px) {
  .m857-nav { display: none; }
  .m857-header { grid-template-columns: 1fr auto; }
  .m857-hero { grid-template-columns: 1fr; }
  .m857-hero-copy { min-height: 0; }
  .m857-hero-mosaic { min-height: 470px; }
  .m857-kpis { grid-template-columns: repeat(2, 1fr); }
  .m857-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m857-game-tall { grid-row: span 1; min-height: 330px; }
  .m857-service-grid { grid-template-columns: 1fr; }
  .m857-service-grid article { min-height: 290px; }
  .m857-service-no { margin-bottom: 30px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .m857-header { width: calc(100vw - 20px); max-width: calc(100vw - 20px); margin-top: 10px; padding: 8px 9px 8px 12px; gap: 10px; border-radius: 28px 9px 28px 9px; }
  .m857-brand svg { width: 34px; height: 34px; }
  .m857-brand span { font-size: 1.05rem; }
  .m857-brand small { display: none; }
  .m857-header-cta { min-height: 40px; padding: 7px 11px; font-size: .78rem; }
  .m857-hero { width: calc(100vw - 20px); max-width: calc(100vw - 20px); min-width: 0; margin: 20px auto 60px; }
  .m857-hero-copy { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; padding: 32px 22px; border-radius: 38px 9px 38px 9px; }
  .m857-hero-copy::before { width: 48px; height: 48px; right: 16px; top: 16px; }
  .m857-hero h1 { max-width: none; font-size: clamp(1.95rem, 8.6vw, 2.9rem); }
  .m857-hero h1,
  .m857-lead,
  .m857-section-head h2,
  .m857-overview h2 { overflow-wrap: anywhere; hyphens: auto; }
  .m857-actions { flex-direction: column; }
  .m857-button { width: 100%; }
  .m857-hero-mosaic { min-height: 360px; }
  .m857-mark span { font-size: 8rem; }
  .m857-mark em { font-size: 2rem; }
  .m857-orbit-a { width: 270px; height: 270px; }
  .m857-orbit-b { width: 150px; height: 150px; }
  .m857-kpis { grid-template-columns: 1fr; }
  .m857-catalog,
  .m857-service,
  .m857-faq { width: calc(100% - 24px); padding: 64px 0; }
  .m857-game-grid { grid-template-columns: 1fr; }
  .m857-game-wide { grid-column: span 1; }
  .m857-overview { width: calc(100% - 24px); margin: 64px auto; padding: 34px 20px; border-radius: 40px 8px 40px 8px; box-shadow: 7px 7px 0 var(--m857-mint), 9px 9px 0 var(--m857-line); }
  .m857-overview h2 { margin-top: 58px; padding-left: 14px; border-left-width: 8px; font-size: 1.8rem; }
  .m857-overview table { display: block; overflow-x: auto; white-space: nowrap; }
  .m857-overview td { min-width: 180px; }
  .m857-faq summary { padding-right: 50px; }
  .m857-footer { flex-direction: column; padding: 44px 24px; }
  .m857-footer-meta { text-align: left; }
}

@media (max-width: 430px) {
  .m857-header { grid-template-columns: 1fr; }
  .m857-header-cta { display: none; }
  .m857-hero h1 { font-size: clamp(1.75rem, 8.3vw, 2.25rem); line-height: 1; }
  .m857-lead { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
