/* Telegram channel refresh — simple card placed after the service buttons. */
:root {
  --telegram: #229ed9;
  --ink: #18233a;
  --surface: rgba(255, 255, 255, 0.72);
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(34, 158, 217, 0.15), transparent 32%),
    radial-gradient(circle at 88% 80%, rgba(167, 139, 250, 0.18), transparent 36%),
    linear-gradient(145deg, #f8fbff 0%, #edf5ff 48%, #f7f1ff 100%);
}

.background-decoration::before { background: #8ed5f5; opacity: 0.26; }
.background-decoration::after { background: #c4b5fd; opacity: 0.2; }

.container { max-width: 31rem; padding-bottom: 1.25rem; }
.header { margin-bottom: 2.1rem; }
.header h1 {
  font-size: clamp(2rem, 7vw, 2.45rem);
  background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 48%, #229ed9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.header p { margin-top: 0.45rem; color: #52627c; letter-spacing: 0.02em; }
.avatar-container { margin-bottom: 1.55rem; }
.avatar {
  width: 8.7rem;
  height: 8.7rem;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(31, 76, 156, 0.18);
}

.profile-card {
  margin-bottom: 1rem;
  padding: 1.65rem 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(31, 76, 156, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
}
.profile-card h2 { color: var(--ink); font-size: 1.6rem; }
.profile-card .title { color: #4f46e5; }
.profile-card .bio { max-width: 22rem; margin: 0 auto; }

.service-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  color: #53647d;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.service-section-title::before,
.service-section-title::after {
  height: 1px;
  flex: 1;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.28));
}
.service-section-title::after { transform: rotate(180deg); }

.buttons-grid {
  gap: 0.8rem;
  margin-bottom: 1.05rem;
  animation-delay: 0.47s;
}
.action-button {
  position: relative;
  min-height: 4.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 0.75rem;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 54%, #818cf8 100%);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.16);
}
.action-button:hover,
.action-button:focus-visible {
  outline: none;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.27);
}

.telegram-card {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.15rem;
  margin: 0 0 1.35rem;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,255,255,0.22), transparent 28%),
    linear-gradient(128deg, #1687c1 0%, #229ed9 52%, #4dbced 100%);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 1.2rem;
  box-shadow: 0 12px 24px rgba(34, 158, 217, 0.2), inset 0 1px 0 rgba(255,255,255,0.25);
  animation: fadeInUp 0.6s ease-out 0.56s both;
}
.telegram-card::after {
  position: absolute;
  width: 6rem;
  height: 6rem;
  right: -2.8rem;
  bottom: -4.2rem;
  content: '';
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 1.2rem rgba(255, 255, 255, 0.07), 0 0 0 2.5rem rgba(255, 255, 255, 0.04);
}
.telegram-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-family: 'Noto Sans SC', 'Geist', sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.telegram-copy {
  position: relative;
  z-index: 1;
  margin: 0.38rem 0 0.72rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.78rem;
  line-height: 1.5;
}
.telegram-primary {
  display: flex;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  color: #1273a7;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
  border-radius: 0.82rem;
  box-shadow: 0 8px 16px rgba(3, 75, 117, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.telegram-primary:hover,
.telegram-primary:focus-visible {
  color: #09628f;
  outline: none;
  background: #f4fbff;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(3, 75, 117, 0.25);
}
.telegram-primary:active { transform: translateY(0) scale(0.985); }

.footer { padding: 0 1rem; color: #67768d; line-height: 1.7; }

@media (max-width: 520px) {
  body { padding: 1.6rem 0.9rem 2.4rem; }
  .header { margin-bottom: 1.6rem; }
  .avatar { width: 7.7rem; height: 7.7rem; }
  .profile-card { padding: 1.45rem 1.15rem; border-radius: 1.25rem; }
  .telegram-card { padding: 0.95rem 1rem; border-radius: 1.05rem; }
  .buttons-grid { gap: 0.65rem; }
  .action-button { min-height: 3.85rem; font-size: 0.9rem; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
