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

body {
  background: #0a0a0a;
  color: #e6e6e6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 24px;
}

.page {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 32px;
}

main {
  max-width: 560px;
  padding: 24px;
  text-align: center;
}

.portfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
}

.portfolio h2 {
  color: #f2f2f2;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.portfolio-item {
  display: block;
  width: 120px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.portfolio-item:hover {
  border-color: rgba(255, 255, 255, 0.4);
  opacity: 0.9;
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 860px) {
  .page {
    flex-direction: row;
    align-items: flex-start;
  }

  .portfolio {
    position: sticky;
    top: 40px;
    padding: 24px 0;
  }
}

.title {
  color: #f2f2f2;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 8px;
}

.statement {
  color: #f2f2f2;
  line-height: 1.6;
  margin-bottom: 20px;
}

.links {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.links a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.links a:hover {
  border-color: #ffffff;
  opacity: 0.85;
}

.terms {
  margin-top: 28px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 32px;
}

.terms h2 {
  grid-column: 1 / -1;
  color: #f2f2f2;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .terms {
    grid-template-columns: 1fr 1fr;
  }
}

.terms-block {
  margin-bottom: 14px;
}

.terms h3 {
  color: #cfcfcf;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.terms p {
  color: #a6a6a6;
  line-height: 1.6;
  margin-bottom: 6px;
}

.site-footer {
  max-width: 560px;
  padding: 0 24px 24px;
  text-align: center;
}

.site-footer p {
  color: #6b6b6b;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 4px;
}
