:root {
  --bg-deep: #0b1023;
  --bg-mid: #142650;
  --accent: #32d247;
  --accent-2: #4c89ff;
  --card: rgba(255, 255, 255, 0.9);
  --text-main: #18213a;
  --text-soft: #4b5876;
  --line: #d5e1ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 20% 20%, #1f3f7a, var(--bg-deep) 55%);
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffffcc 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
  pointer-events: none;
}

.planet {
  position: absolute;
  pointer-events: none;
  opacity: 0.8;
}

.planet--left {
  top: 60px;
  left: -40px;
  width: 190px;
}

.planet--right {
  right: -30px;
  bottom: 140px;
  width: 210px;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.header {
  padding: 20px 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e9f0ff;
}

.brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-link {
  color: #e9f0ff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #ffffff33;
  transition: 0.15s ease;
}

.nav-link:hover {
  background: #ffffff1f;
}

.hero {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}

.card {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(10, 19, 45, 0.28);
}

.hero-content {
  padding: 34px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef4ff;
  color: #2f4a80;
  border-radius: 999px;
  border: 1px solid #d4e2ff;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 18px 0 10px;
  line-height: 1.06;
}

.hero p {
  color: var(--text-soft);
  font-size: 18px;
  margin: 0 0 22px;
  max-width: 52ch;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 15px;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #3be25a, var(--accent));
  box-shadow: inset 0 -2px 0 #208d35;
}

.btn--secondary {
  color: #2f4a80;
  background: #edf3ff;
  border: 1px solid #c8daff;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.hero-art img {
  width: min(100%, 360px);
  filter: drop-shadow(0 12px 22px rgba(4, 17, 50, 0.35));
}

.grid {
  margin: 18px 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  padding: 18px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.content {
  margin: 24px 0 36px;
  padding: 28px;
}

.content h2 {
  margin-top: 0;
  font-size: clamp(28px, 4vw, 36px);
}

.content h3 {
  margin-bottom: 8px;
}

.content p,
.content li {
  color: var(--text-soft);
  line-height: 1.56;
}

.content ul {
  margin-top: 8px;
}

.delete-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.delete-form input,
.delete-form textarea {
  width: 100%;
  border: 1px solid #c9d8fc;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.delete-form textarea {
  min-height: 110px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: #6b7693;
}

.footer {
  border-top: 1px solid #ffffff33;
  color: #dae6ff;
  padding: 20px 0 30px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #f3f7ff;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .planet--left {
    width: 130px;
    top: 30px;
  }

  .planet--right {
    width: 140px;
    bottom: 90px;
  }
}
