:root {
  --app-blue: #304df5;
  --app-ink: #141827;
  --app-white: #ffffff;
}

.site-header {
  width: 100%;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 31px;
  background: var(--app-white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--app-ink);
  font-size: 20px;
  font-weight: 800;
}

.brand:hover,
.login-link:hover,
.footer-logo:hover,
.footer-column a:hover {
  color: inherit;
  opacity: 0.92;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--app-white);
  background: var(--app-blue);
}

.brand-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.login-link {
  color: #333a4d;
  font-size: 16px;
  font-weight: 500;
}

.register-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 9px;
  color: var(--app-white);
  font-size: 16px;
  font-weight: 600;
  background: var(--app-blue);
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.register-link:hover {
  color: var(--app-white);
  background: #223ee8;
  box-shadow: 0 8px 18px rgba(48, 77, 245, 0.24);
  transform: translateY(-1px);
}

.site-footer {
  background: #14214f;
}

.footer-inner {
  width: min(100%, 1160px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0 auto;
  padding: 54px 32px 44px;
}

.footer-brand p {
  max-width: 310px;
  margin: 0;
  color: #c8d2ff;
  font-size: 15px;
  line-height: 1.6;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--app-white);
  font-size: 20px;
  font-weight: 800;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h2 {
  margin: 0 0 18px;
  color: var(--app-white);
  font-size: 16px;
  font-weight: 700;
}

.footer-column a {
  color: #c8d2ff;
  font-size: 15px;
}

.footer-column a + a {
  margin-top: 10px;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(200, 210, 255, 0.12);
  color: #9aa7df;
  font-size: 13px;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 24px 32px;
  }
}
