* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--bg, #0E1621);
  color: var(--text, #fff);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  max-width: 100%;
}

.hero-copy h1,
.section-head h2,
.item-title-row h3,
.eyebrow {
  text-transform: uppercase;
}

.site-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero-card,
.notice-card,
.content-card {
  background: var(--card, #17212B);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.hero-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: center;
  padding: 28px;
}

.hero-icon-wrap {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 24px;
}

.telegram-icon {
  width: 62px;
  height: 62px;
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary, #229ED9);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}

.hero-subtitle {
  margin: 10px 0 0;
  color: var(--muted, #9DB2C9);
  font-size: 16px;
  line-height: 1.7;
}

.notice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 22px;
  margin-top: 18px;
}

.notice-card strong {
  color: var(--primary);
}

.notice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-card {
  margin-top: 20px;
  padding: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.item-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 18px;
}

.item-copy {
  width: 100%;
}

.item-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.item-title-row h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.item-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  word-break: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 158, 217, 0.15);
  color: var(--primary);
  border: 1px solid rgba(34, 158, 217, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 78px;
  padding: 0 18px;
  white-space: nowrap;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.site-footer {
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .item-actions .btn {
    flex: 1 1 160px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 100%);
    padding-top: 12px;
  }

  .hero-card {
    grid-template-columns: 72px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .hero-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0;
  }

  .telegram-icon {
    width: 46px;
    height: 46px;
  }

  .hero-copy h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }

  .content-card,
  .notice-card {
    padding: 16px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .item-card {
    padding: 16px;
  }

  .item-title-row h3 {
    font-size: 18px;
  }

  .item-copy p {
    font-size: 14px;
  }

  .item-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }

  .item-actions .btn {
    width: auto;
    min-width: 90px;
    min-height: 40px;
    padding: 0 14px;
    flex: 0 0 auto;
  }

  .badge {
    font-size: 11px;
    padding: 5px 9px;
  }
}