:root {
  --bg: #f3f4f7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-border: rgba(31, 36, 48, 0.08);
  --text: #1f2430;
  --muted: rgba(31, 36, 48, 0.72);
  --blue: #6e8df5;
  --blue-deep: #5979e7;
  --yellow: #f4b400;
  --yellow-deep: #db9f00;
  --shadow: 0 18px 48px rgba(34, 42, 63, 0.08);
  --max-width: 760px;
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(110, 141, 245, 0.12), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(244, 180, 0, 0.14), transparent 22%),
    linear-gradient(180deg, #f7f8fb 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--blue-deep);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 24px, var(--max-width));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero,
.links,
.card + .card {
  margin-top: 18px;
}

.hero,
.card {
  padding: 24px;
}

.hero {
  text-align: center;
}

.avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(110, 141, 245, 0.18), rgba(244, 180, 0, 0.2)),
    #ffffff;
  border: 1px solid rgba(110, 141, 245, 0.14);
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.subtitle {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro,
.card p,
.footer {
  color: var(--muted);
  font-size: 1rem;
}

.links {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.main-link {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 1.02rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.main-link:hover {
  transform: translateY(-1px);
}

.telegram,
.instagram {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(110, 141, 245, 0.24);
}

.telegram:hover,
.instagram:hover {
  background: var(--blue-deep);
  color: #ffffff;
}

.zen {
  background: var(--yellow);
  color: #2c2100;
  box-shadow: 0 10px 24px rgba(244, 180, 0, 0.24);
}

.zen:hover {
  background: var(--yellow-deep);
  color: #2c2100;
}

.faq-item {
  border-top: 1px solid rgba(31, 36, 48, 0.08);
}

.faq-item:first-of-type {
  border-top: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 40px 16px 0;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(110, 141, 245, 0.1);
  color: var(--blue-deep);
  font-size: 1rem;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 16px;
  padding-right: 8px;
}

.footer {
  width: min(100% - 24px, var(--max-width));
  margin: auto auto 24px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 40px, var(--max-width));
    padding-top: 40px;
  }

  .hero,
  .card {
    padding: 32px;
  }

  .links {
    padding: 18px;
  }

  .footer {
    width: min(100% - 40px, var(--max-width));
  }
}

@media (max-width: 520px) {
  .footer {
    flex-direction: column;
  }
}
