:root {
  color-scheme: dark;
  --background: #050505;
  --panel: #0c0d0f;
  --line: #292c33;
  --text: #f5f6f8;
  --muted: #a9adb7;
  --blue: #1747ff;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--background);
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.home,
.text-page {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
}

.back-link,
.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
  text-underline-offset: 4px;
}

.back-link:hover,
.site-footer a:hover {
  color: var(--text);
}

.home,
.text-page {
  flex: 1;
  padding-block: clamp(54px, 9vw, 100px);
}

.intro {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(240px, 440px) 1fr;
  align-items: center;
  gap: clamp(36px, 8vw, 90px);
}

.main-logo {
  display: block;
  width: 100%;
  height: auto;
}

.label {
  margin: 0 0 12px;
  color: #7894ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
}

.project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  background: var(--panel);
}

.project p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #08090b;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  border-color: #7894ff;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.page-heading {
  max-width: 760px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  font-size: clamp(2.7rem, 8vw, 5rem);
}

.entity-section,
.policy-copy {
  max-width: 760px;
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
}

.entity-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
}

.entity-list li {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-weight: 700;
}

.entity-list li:last-child {
  border-bottom: 0;
}

.entity-list span {
  color: var(--muted);
  font-weight: 400;
}

.policy-copy {
  display: grid;
  gap: 18px;
}

.policy-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.site-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .intro {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .main-logo {
    width: min(100%, 420px);
  }

  .project {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-links,
  .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 16px;
  }
}
