:root {
  --bg: #0a0b0d;
  --bg-elevated: #12141a;
  --line: rgba(232, 236, 242, 0.1);
  --text: #e8ecf2;
  --muted: #8b93a3;
  --accent: #7d9b6a;
  --accent-soft: rgba(125, 155, 106, 0.18);
  --phone: #f2f5f8;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(125, 155, 106, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(55, 70, 95, 0.28), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(30, 36, 48, 0.9), transparent 45%),
    linear-gradient(180deg, #0c0e12 0%, #08090b 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 4vh, 2.75rem);
  animation: rise 0.8s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  text-align: center;
  max-width: 28rem;
}

.brand {
  font-size: clamp(3rem, 8vw, 4.4rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-indent: 0.18em;
}

.lead {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.15rem 1.75rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(8px);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
  animation: rise 0.8s var(--ease) 0.12s both;
}

.phone:hover {
  border-color: rgba(125, 155, 106, 0.45);
  background: linear-gradient(180deg, rgba(125, 155, 106, 0.12), rgba(255, 255, 255, 0.02));
  transform: translateY(-2px);
}

.phone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.phone-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone-number {
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--phone);
  font-variant-numeric: tabular-nums;
}

.channels {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  animation: rise 0.8s var(--ease) 0.22s both;
}

.channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  padding: 1.15rem 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(165deg, rgba(18, 20, 26, 0.92), rgba(10, 11, 13, 0.65));
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.channel:hover {
  border-color: rgba(125, 155, 106, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.channel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* На тач-устройствах hover не срабатывает — подсвечиваем нажатие */
.channel:active {
  border-color: rgba(125, 155, 106, 0.45);
  transform: translateY(-1px);
}

.qr {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  padding: 0.55rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Название канала выглядит как ссылка — весь блок кликабельный */
.channel h2 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(125, 155, 106, 0.4);
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  transition: color 0.35s var(--ease), text-decoration-color 0.35s var(--ease);
}

.channel:hover h2,
.channel:active h2 {
  color: #a7c493;
  text-decoration-color: currentColor;
}

.footer {
  text-align: center;
  animation: rise 0.8s var(--ease) 0.32s both;
}

.footer p {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  opacity: 0.85;
}

@media (max-width: 720px) {
  .channels {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }

  .channel {
    padding: 1.25rem 1.1rem 1.35rem;
  }

  .qr {
    max-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .phone,
  .channels,
  .footer,
  .channel,
  .phone {
    animation: none;
    transition: none;
  }

  .channel:hover,
  .channel:active,
  .phone:hover {
    transform: none;
  }
}
