/* Страница розыгрыша (giveaway.html): герой с таймером, шаги, галерея. */
.gw-inner {
  width: min(62rem, 100%);
}

.gw-accent {
  color: var(--orange);
}

.gw-kicker {
  margin: 0 0 0.9rem;
  color: var(--orange-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gw-section-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.4vw, 2.3rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.gw-section-lead {
  max-width: 40rem;
  margin: 0 0 1.6rem;
  color: var(--muted);
}

/* ---------- Герой ---------- */
.gw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.gw-hero__copy .updates__lead {
  max-width: 30rem;
}

.gw-countdown {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.gw-countdown[hidden] {
  display: none;
}

.gw-countdown__cell {
  display: grid;
  justify-items: center;
  min-width: 4.4rem;
  padding: 0.7rem 0.5rem 0.55rem;
  border: 1px solid rgba(255, 154, 77, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 122, 26, 0.14), rgba(255, 122, 26, 0.03)),
    rgba(7, 17, 31, 0.7);
}

.gw-countdown__cell b {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.gw-countdown__cell span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.gw-countdown__done {
  margin: 1.6rem 0 0;
  color: var(--orange-soft);
  font-weight: 600;
}

.gw-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.gw-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--orange);
  color: #07111f;
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease);
}

.gw-btn:hover {
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.gw-btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.gw-btn--ghost:hover {
  border-color: rgba(255, 154, 77, 0.5);
  background: rgba(255, 122, 26, 0.08);
}

.gw-hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 30rem;
  justify-self: center;
  width: 100%;
}

.gw-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.35), rgba(37, 99, 235, 0.18) 45%, transparent 70%);
  filter: blur(24px);
}

.gw-robot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  -webkit-mask-image: radial-gradient(circle at 55% 45%, #000 52%, transparent 72%);
  mask-image: radial-gradient(circle at 55% 45%, #000 52%, transparent 72%);
  animation: gw-float 6s ease-in-out infinite;
}

/* Билет «PRO · 12 месяцев» с вырезами по бокам. */
.gw-ticket {
  position: absolute;
  left: 2%;
  bottom: 8%;
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 1.4rem 0.9rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff9a4d, #ff7a1a 55%, #e85d00);
  color: #07111f;
  box-shadow:
    0 18px 40px rgba(255, 122, 26, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  -webkit-mask:
    radial-gradient(circle at 0 50%, transparent 0.55rem, #000 0.57rem) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 0.55rem, #000 0.57rem) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 50%, transparent 0.55rem, #000 0.57rem) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 0.55rem, #000 0.57rem) right / 51% 100% no-repeat;
  transform: rotate(-7deg);
  animation: gw-ticket 6s ease-in-out infinite;
}

.gw-ticket__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.gw-ticket__plan {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.gw-ticket__term {
  font-size: 0.85rem;
  font-weight: 700;
}

.gw-confetti {
  position: absolute;
  width: 0.55rem;
  height: 0.9rem;
  border-radius: 2px;
  background: var(--orange);
  opacity: 0.85;
  animation: gw-confetti 5s ease-in-out infinite;
}

.gw-confetti--1 { top: 8%; left: 12%; transform: rotate(25deg); }
.gw-confetti--2 { top: 4%; right: 18%; background: var(--cyan); animation-delay: -1s; }
.gw-confetti--3 { top: 40%; right: 2%; background: #ffd166; animation-delay: -2s; }
.gw-confetti--4 { bottom: 30%; left: 0; background: var(--cyan); animation-delay: -3s; }
.gw-confetti--5 { bottom: 6%; right: 14%; animation-delay: -4s; }

@keyframes gw-float {
  50% { transform: translateY(-10px); }
}

@keyframes gw-ticket {
  50% { transform: rotate(-4deg) translateY(-6px); }
}

@keyframes gw-confetti {
  50% { translate: 0 -12px; rotate: 40deg; }
}

/* ---------- Шаги ---------- */
.gw-steps {
  margin-top: clamp(3rem, 8vw, 5rem);
}

.gw-steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.gw-step {
  position: relative;
  padding: 1.3rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
  overflow: hidden;
}

.gw-step::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.16), transparent 70%);
  pointer-events: none;
}

.gw-step__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: rgba(255, 122, 26, 0.14);
  color: var(--orange);
}

.gw-step__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gw-step__num {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  color: rgba(244, 247, 251, 0.18);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
}

.gw-step h3 {
  margin: 1rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.gw-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* ---------- Галерея ---------- */
.gw-gallery {
  margin-top: clamp(3rem, 8vw, 5rem);
}

.gw-gallery__grid {
  max-width: 40rem;
  margin: 0 auto;
  padding-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.6rem, 2vw, 1.2rem);
  align-items: center;
}

.gw-shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  background: #0d1b2e;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.gw-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.gw-shot--raised {
  transform: translateY(-1.2rem);
  border-color: rgba(255, 154, 77, 0.4);
}

.gw-shot figcaption {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.78);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* ---------- Правила ---------- */
.gw-rules-title {
  margin-top: clamp(3rem, 8vw, 5rem);
}

.gw-inner .release {
  margin-top: 1.2rem;
}

.gw-inner .release__block p {
  max-width: 44rem;
}

/* Пример сообщения бота с итогами. */
.gw-draw {
  position: relative;
  display: flex;
  gap: 0.9rem;
  margin: 0.3rem 0 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(126, 200, 232, 0.25);
  border-radius: 1rem;
  background: rgba(13, 27, 46, 0.9);
}

.gw-draw__dice {
  flex: none;
  font-size: 1.8rem;
  line-height: 1;
}

.gw-draw__body p {
  margin: 0;
}

.gw-inner .gw-draw__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.gw-inner .gw-draw__title {
  color: var(--ink);
  font-weight: 700;
}

.gw-inner .gw-draw__hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.gw-inner .gw-draw__winner {
  margin-top: 0.35rem;
  color: var(--orange-soft);
  font-weight: 700;
}

.gw-draw__tag {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  color: rgba(244, 247, 251, 0.4);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Мобильные ---------- */
@media (max-width: 760px) {
  .gw-hero {
    grid-template-columns: 1fr;
  }

  .gw-hero__art {
    order: -1;
    max-width: 19rem;
  }

  .gw-ticket__plan {
    font-size: 1.8rem;
  }

  .gw-steps__list {
    grid-template-columns: 1fr;
  }

  .gw-step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: center;
  }

  .gw-step__icon {
    grid-row: span 2;
  }

  .gw-step h3 {
    margin: 0;
  }
}

@media (max-width: 420px) {
  .gw-countdown {
    gap: 0.35rem;
  }

  .gw-countdown__cell {
    flex: 1;
    min-width: 0;
  }

  .gw-hero__ctas .gw-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .gw-shot--raised {
    transform: translateY(-0.6rem);
  }

  .gw-shot figcaption {
    left: 0.4rem;
    bottom: 0.4rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gw-robot,
  .gw-ticket,
  .gw-confetti {
    animation: none;
  }
}
