@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&family=Manrope:wght@700;800&display=swap');

:root {
  color-scheme: light;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #172c40;
  background: #f0f5f9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 36px 20px;
  background:
    radial-gradient(ellipse at 22% 15%, #d9ecf580, transparent 55%),
    radial-gradient(ellipse at 90% 90%, #e3eaf3, transparent 50%),
    #f0f5f9;
}
.channel {
  width: min(100%, 420px);
  padding: 36px 32px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 28px;
  box-shadow: 0 24px 72px -28px #23466130, 0 2px 8px #23466104;
  animation: enter .55s ease-out both;
}
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #718393;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.1px;
  line-height: 1.5;
}
.eyebrow-line { width: 23px; height: 1px; background: #d7e2eb; }
.portrait-wrap { width: 176px; height: 176px; position: relative; margin: 29px auto 24px; }
.portrait-frame {
  width: 100%;
  height: 100%;
  padding: 5px;
  border: 1px solid #c5e5f5;
  border-radius: 50%;
  background: #fff;
}
.portrait-crop { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #e8f1f5; }
.portrait { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 27%; transform: scale(1.5); transform-origin: 50% 52%; }
.telegram-badge {
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #239dd3;
  border: 4px solid #fff;
  border-radius: 50%;
}
.telegram-badge svg { width: 20px; height: 20px; fill: white; margin-right: 2px; }
h1 { margin: 0; font-family: 'Manrope', 'DM Sans', sans-serif; font-size: 37px; font-weight: 800; line-height: 1.2; letter-spacing: -1.5px; }
.subscribers { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 13px 0 0; color: #748390; font-size: 14px; line-height: 1.5; }
.subscribers strong { color: #435b6b; font-weight: 650; }
.subscribers svg { width: 16px; height: 16px; stroke: #8b9ba7; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.channel-details { margin-top: 24px; }
.channel-details h2 { margin: 0; color: #294c64; font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: -.3px; }
.channel-details p { max-width: 310px; margin: 8px auto 0; color: #647886; font-size: 13px; line-height: 1.65; }
.divider { width: 100%; height: 1px; margin: 24px 0; background: #edf1f4; }
.join-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 58px;
  padding: 16px 20px;
  color: white;
  background: #168bc7;
  border: 1px solid #168bc7;
  border-radius: 13px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 6px 18px #168bc725;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button-plane { width: 23px; height: 23px; fill: currentColor; }
.button-arrow { width: 18px; height: 18px; margin-left: auto; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.join-button span { margin-right: auto; }
.join-button:hover { background: #087bb6; border-color: #087bb6; transform: translateY(-2px); box-shadow: 0 9px 22px #168bc737; }
.join-button:active { transform: translateY(0); }
.join-button:focus-visible { outline: 3px solid #172c40; outline-offset: 5px; }
.caption { margin: 17px 0 0; color: #7b8995; font-size: 11px; line-height: 1.5; }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 380px) {
  main { padding: 24px 14px; }
  .channel { padding: 30px 24px 25px; }
  h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .channel { animation: none; }
  .join-button { transition: none; }
}
