@charset "UTF-8";

:root {
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

#page-transition {
  position: fixed;
  inset: 0;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, background 0.8s ease;
  z-index: 9999;
}

#page-transition.white {
  background: #ffffff;
}

#page-transition.active {
  opacity: 1;
  pointer-events: auto;
}

@keyframes logoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 32px;
}

.block-top {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--max-width);
  z-index: 100;
  backdrop-filter: blur(10px);
}

.block + .block {
  margin-top: 50px;
}

.block-footer {
  margin-top: 150px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

h1,
h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

.footer-text {
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--text-sub);
  text-align: right;
  margin: 0;
  padding: 0;
}

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

  body {
    opacity: 1;
    animation: none;
  }

  body::before {
    opacity: 1;
    animation: none;
  }

  #page-transition {
    transition: none;
  }
}
