/* Shared utility pages — MC landing palette (sitemap, errors) */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/roboto-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pressstart2p-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pressstart2p-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.mc-util {
  --mc-ink: #f3f6f1;
  --mc-muted: rgba(243, 246, 241, 0.68);
  --mc-deep: #0c1210;
  --mc-mid: #121a16;
  --mc-panel: rgba(18, 28, 22, 0.55);
  --mc-border: rgba(255, 255, 255, 0.12);
  --mc-accent: #7dcc5c;
  --mc-accent-2: #3f8f4a;
  --mc-radius: 18px;
  --mc-font: "Outfit", "Roboto", system-ui, sans-serif;

  margin: 0;
  min-height: 100vh;
  font-family: var(--mc-font);
  color: var(--mc-ink);
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(125, 204, 92, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(63, 143, 74, 0.1), transparent 50%),
    linear-gradient(180deg, #101814 0%, var(--mc-deep) 100%);
  line-height: 1.5;
}

a {
  color: var(--mc-accent);
}

.mc-util-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 0;
  background: rgba(12, 18, 16, 0.72);
  border-bottom: 1px solid var(--mc-border);
  backdrop-filter: blur(12px);
}

.mc-util-header-inner,
.mc-util-wrap {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.mc-util-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mc-util-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.mc-util-brand img {
  width: 40px;
  height: 40px;
  border-radius: 0;
}

.mc-util-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.mc-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  min-height: 42px;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mc-user-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(125, 204, 92, 0.4);
}

.mc-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
  color: #fff;
}

.mc-user-cta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--mc-accent);
}

.mc-util-main {
  padding: 48px 0 80px;
}

.mc-util-panel {
  padding: 28px 28px 24px;
  border-radius: 22px;
  background: var(--mc-panel);
  border: 1px solid var(--mc-border);
  backdrop-filter: blur(10px);
}

.mc-util-kicker {
  margin: 0 0 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--mc-accent);
}

.mc-util-title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.mc-util-title .mc-util-code {
  margin-left: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mc-muted);
  vertical-align: super;
}

.mc-util-desc {
  margin: 0 0 12px;
  max-width: 34em;
  color: var(--mc-muted);
}

.mc-util-desc:last-of-type {
  margin-bottom: 28px;
}

.mc-util-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mc-btn-primary {
  background: linear-gradient(135deg, var(--mc-accent) 0%, var(--mc-accent-2) 100%);
  color: #0b140c;
}

.mc-btn-primary:hover {
  filter: brightness(1.06);
}

.mc-btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--mc-border);
  color: #fff;
}

.mc-btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Error layout */
.mc-error {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(200px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.mc-error-illust {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(125, 204, 92, 0.55);
}

.mc-error-illust svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

/* Sitemap */
.mc-sitemap-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--mc-muted);
  text-decoration: none;
  font-size: 14px;
}

.mc-sitemap-back:hover {
  color: var(--mc-accent);
}

.mc-sitemap-intro {
  margin: 0 0 36px;
  max-width: 40em;
  color: var(--mc-muted);
}

.mc-sitemap-section {
  margin-bottom: 28px;
  padding: 22px 22px 8px;
  border-radius: var(--mc-radius);
  background: var(--mc-panel);
  border: 1px solid var(--mc-border);
}

.mc-sitemap-section h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mc-border);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.mc-sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mc-sitemap-item {
  margin-bottom: 16px;
}

.mc-sitemap-item a {
  color: var(--mc-accent);
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
}

.mc-sitemap-item a:hover {
  text-decoration: underline;
}

.mc-sitemap-item p {
  margin: 6px 0 0;
  color: var(--mc-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .mc-error {
    grid-template-columns: 1fr;
  }

  .mc-error-illust {
    order: -1;
  }

  .mc-error-illust svg {
    max-width: 180px;
  }

  .mc-util-panel {
    padding: 22px 18px;
  }

  .mc-util-actions .mc-btn {
    width: 100%;
  }
}
