* { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

html { scroll-behavior: smooth; }

body {
  background-color: #ffffff;
  background-image: url("pattern-light.png");
  background-repeat: repeat;
  background-size: 600px auto;
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(24px, 6vw, 80px) 24px;
  color: #fff;
}

.doc {
  background: #000;
  width: min(760px, 100%);
  padding: clamp(40px, 6vw, 80px) clamp(28px, 6vw, 76px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .doc { animation: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.doc-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.doc-head .logo {
  width: clamp(96px, 22%, 132px);
  height: auto;
  opacity: 0.92;
}

.doc h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.content {
  margin-top: clamp(36px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.4vw, 40px);
}

.block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content h2 {
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 2px;
}

.content h3 {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

.content p,
.content li {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 400;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.66);
  text-wrap: pretty;
}

.content address {
  font-style: normal;
  line-height: 1.72;
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255, 255, 255, 0.82);
}

.content ul {
  margin: 4px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.content a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.3s ease;
  word-break: break-word;
}

.content a:hover { border-color: #fff; }

.doc-foot {
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.doc-foot a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.doc-foot a.home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.8);
}

.doc-foot a:hover { color: #fff; }

.doc-foot .spacer { flex: 1; }

.doc-foot .arrow { display: inline-block; transition: transform 0.35s ease; }
.doc-foot a.home:hover .arrow { transform: translateX(-4px); }
