/* clike.ru — GH-IGNITE: premium conversion landing, single screen, no scroll */

:root {
  --gi-orange: #ff8500;
  --gi-orange-hi: #ffb21a;
  --gi-orange-lo: #e85a00;
  --gi-ink: #030304;
  --gi-text: #f4f5f7;
  --gi-muted: rgba(244, 245, 247, 0.62);
  --gi-pad: clamp(10px, 2.5vw, 18px);
}

/* ── Lock viewport ── */
html:has(body.guest-home-open),
body.guest-home-open {
  overflow: hidden !important;
  height: 100svh !important;
  max-height: 100svh !important;
  overscroll-behavior: none !important;
}

html:has(body.guest-home-open),
body.guest-home-open {
  background-color: #030304 !important;
  background-image: none !important;
}

body.guest-home-open.dc-premium-shell-open::before {
  content: "" !important;
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-color: #030304 !important;
  background-image:
    linear-gradient(180deg, rgba(28, 28, 32, 0.74) 0%, rgba(20, 20, 24, 0.48) 26%, rgba(14, 14, 16, 0.22) 54%, transparent 76%),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.085), transparent 32%),
    url("guest-home-bg.svg?v=20260611_bg_left_dark_v1") !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  transform: translateZ(0);
}

body.guest-home-open.dc-premium-shell-open::after {
  content: "" !important;
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 100% -4%, rgba(34, 34, 34, 0.68), transparent 46%),
    radial-gradient(circle at 8% 28%, rgba(34, 34, 38, 0.34), transparent 50%) !important;
}

body.guest-home-open.user-mode:not(.auth-mode) .wrap {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-direction: column !important;
  height: 100svh !important;
  max-height: 100svh !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 0 calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  background: transparent !important;
}

body.guest-home-open .wrap > header,
body.guest-home-open .wrap > .user-bottom-nav {
  flex: 0 0 auto !important;
}

body.guest-home-open .dc-app-actions,
body.guest-home-open .flash,
body.guest-home-open .dc-bottom-legal {
  display: none !important;
}

/* ── Header brand: icon + wordmark ── */
body.guest-home-open header.dc-app-header {
  background: rgba(3, 3, 4, 0.72) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 138, 0, 0.14) !important;
  box-shadow: none !important;
  padding: calc(8px + env(safe-area-inset-top, 0px)) var(--gi-pad) 8px !important;
  min-height: auto !important;
}

/* ── Main shell ── */
.gh-ignite {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 6px var(--gi-pad) 8px;
  background: transparent;
}

.gh-ignite__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2.5vw, 24px);
  height: 100%;
  min-height: 0;
  align-items: center;
}

/* ── Pitch / conversion ── */
.gh-ignite__pitch {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.8vh, 14px);
  min-width: 0;
}

.gh-ignite__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gi-orange-hi);
  background: rgba(255, 138, 0, 0.1);
  border: 1px solid rgba(255, 138, 0, 0.28);
  text-decoration: none;
}

.gh-ignite__badge--live {
  color: #fff;
  background: rgba(255, 59, 48, 0.18);
  border-color: rgba(255, 80, 70, 0.45);
}

.gh-ignite__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5);
  animation: giPulse 1.4s ease infinite;
}

@keyframes giPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(255, 59, 48, 0); }
}

.gh-ignite__headline {
  margin: 0;
  font-size: clamp(1.65rem, 4.8vw, 2.65rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.gh-ignite__headline-line {
  display: block;
}

.gh-ignite__headline-line--accent {
  background: linear-gradient(100deg, var(--gi-orange-hi) 0%, var(--gi-orange) 45%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gh-ignite__sub {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  line-height: 1.5;
  color: var(--gi-muted);
}

.gh-ignite__trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  padding: 10px 2px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.gh-ignite__trust-item {
  display: grid;
  grid-template-rows: 26px auto;
  align-items: center;
  justify-items: center;
  text-align: center;
  gap: 4px;
  padding: 0 4px;
  min-width: 0;
}

.gh-ignite__trust-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.gh-ignite__trust-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 26px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.gh-ignite__trust-num--mark {
  width: 24px;
  height: 24px;
  font-size: 0.82rem;
  line-height: 1;
  color: var(--gi-orange-hi);
  border-radius: 6px;
  background: rgba(255, 138, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 0, 0.2);
}

.gh-ignite__trust-label {
  display: block;
  width: 100%;
  font-size: clamp(0.44rem, 1.6vw, 0.56rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gh-ignite__gift {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 138, 0, 0.06);
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 138, 0, 0.14);
}

.gh-ignite__gift-visual {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent !important;
  border: none;
  box-shadow: none;
}

.gh-ignite__gift-img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: scale(1.38);
  transform-origin: center center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.gh-ignite__gift-copy {
  min-width: 0;
}

.gh-ignite__gift-title {
  margin: 0 0 3px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gi-orange-hi);
  letter-spacing: 0.02em;
}

.gh-ignite__gift-meta {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--gi-muted);
}

.gh-ignite__gift-meta s {
  opacity: 0.55;
}

.gh-ignite__gift-meta strong {
  color: #fff;
  font-weight: 800;
}

.gh-ignite__cta-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  overflow: visible;
}

.gh-ignite__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gh-ignite__cta:active {
  transform: scale(0.98);
}

.gh-ignite__cta--primary {
  color: #1a0c00;
  background: linear-gradient(135deg, var(--gi-orange-hi), var(--gi-orange) 55%, var(--gi-orange-lo));
  box-shadow: 0 0 0 1px rgba(255, 200, 100, 0.28) inset;
  overflow: visible;
  transform: translateZ(0);
}

.gh-ignite__cta--primary::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 55%;
  bottom: -18%;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: #ff8500;
  filter: blur(14px);
  opacity: 0.28;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
  animation: giCtaPulse 5s ease-in-out infinite;
}

.gh-ignite__cta--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 45%);
}

@keyframes giCtaPulse {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.36; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-ignite__cta--primary::before {
    animation: none;
    opacity: 0.28;
  }
}

.gh-ignite__cta-glow {
  display: none;
}

.gh-ignite__cta-text {
  position: relative;
}

.gh-ignite__cta--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.gh-ignite__cta-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gi-muted);
}

.gh-ignite__cta-note a {
  color: var(--gi-orange-hi);
  font-weight: 700;
  text-decoration: none;
}

.gh-ignite__cta-note a:hover {
  text-decoration: underline;
}

.gh-ignite__quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gh-ignite__quick-link {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, color 0.2s;
}

.gh-ignite__quick-link:hover {
  color: var(--gi-orange-hi);
  border-color: rgba(255, 138, 0, 0.3);
}

/* ── Reactor showcase — single glass panel, no nested frames ── */
.gh-ignite__reactor {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-ignite__reactor-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: min(100%, 420px);
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 20px;
  background: rgba(16, 16, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 26px 56px rgba(0, 0, 0, 0.48),
    0 0 72px rgba(255, 120, 0, 0.07);
}

.gh-ignite__reactor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.gh-ignite__reactor-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.gh-ignite__reactor-dots {
  display: flex;
  gap: 5px;
}

.gh-ignite__reactor-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.gh-ignite__reactor-dot.is-active {
  background: var(--gi-orange);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.55);
}

.gh-ignite__reactor-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.gh-ignite__card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
  background: transparent;
  border: 0;
}

.gh-ignite__card.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  z-index: 1;
}

.gh-ignite__card-visual {
  position: relative;
  flex: 1 1 50%;
  min-height: 100px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 120, 0, 0.14) 0%, rgba(14, 14, 18, 0.92) 62%);
}

.gh-ignite__card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-ignite__card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.gh-ignite__card-art-icon {
  font-size: 2.4rem;
  filter: drop-shadow(0 4px 20px rgba(255, 120, 0, 0.4));
}

.gh-ignite__card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 8, 10, 0.55) 0%, transparent 55%);
}

.gh-ignite__card-body {
  flex: 0 0 auto;
  padding: 12px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gh-ignite__card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.gh-ignite__card-price {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gi-orange-hi);
}

.gh-ignite__card-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.gh-ignite__card-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gi-orange-lo), var(--gi-orange-hi));
}

.gh-ignite__card-meta {
  margin: 0;
  font-size: 0.7rem;
  color: var(--gi-muted);
}

.gh-ignite__card-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1a0c00;
  text-decoration: none;
  background: linear-gradient(180deg, var(--gi-orange-hi), var(--gi-orange));
}

/* ── Mobile: stacked, evenly spaced between header and nav ── */
@media (max-width: 760px) {
  body.guest-home-open.user-mode:not(.auth-mode) .wrap {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .gh-ignite {
    --gi-mobile-gap: clamp(10px, 1.8vh, 14px);
    --gi-mobile-gap-top: clamp(4px, 0.9vh, 7px);
    display: flex;
    flex-direction: column;
    padding: var(--gi-mobile-gap-top) 10px var(--gi-mobile-gap);
  }

  .gh-ignite__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: var(--gi-mobile-gap);
    align-items: stretch;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }

  .gh-ignite__pitch {
    gap: clamp(7px, 1.5vh, 10px);
  }

  .gh-ignite__headline {
    font-size: clamp(1.45rem, 7.5vw, 1.85rem);
  }

  .gh-ignite__sub {
    font-size: 0.78rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .gh-ignite__trust {
    padding: 8px 0;
  }

  .gh-ignite__trust-item {
    grid-template-rows: 22px auto;
    gap: 3px;
    padding: 0 2px;
  }

  .gh-ignite__trust-num {
    height: 22px;
    font-size: 0.88rem;
  }

  .gh-ignite__trust-num--mark {
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
    border-radius: 5px;
  }

  .gh-ignite__trust-label {
    font-size: 0.42rem;
    letter-spacing: 0.02em;
  }

  .gh-ignite__cta {
    width: 100%;
    min-height: 44px;
    font-size: 0.86rem;
  }

  .gh-ignite__quick {
    width: 100%;
    justify-content: center;
  }

  .gh-ignite__reactor {
    min-height: 0;
    height: 100%;
    max-height: none;
  }

  .gh-ignite__reactor-frame {
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    padding: 12px;
  }

  .gh-ignite__reactor-head {
    margin-bottom: 12px;
  }

  .gh-ignite__card-visual {
    min-height: clamp(120px, 22vh, 180px);
  }

  .gh-ignite__card-body {
    padding: 14px 4px 6px;
    gap: 8px;
  }

  .gh-ignite__card-title {
    font-size: 1rem;
  }

  .gh-ignite__card-btn {
    margin-top: 6px;
    padding: 9px 16px;
    font-size: 0.78rem;
  }

}

@media (max-width: 380px) {
  .gh-ignite__headline-line {
    display: inline;
  }

  .gh-ignite__headline-line--accent::after {
    content: " ";
  }

  .gh-ignite__quick-link {
    padding: 6px 11px;
    font-size: 0.68rem;
  }
}

@media (min-width: 900px) {
  body.guest-home-open.user-mode:not(.auth-mode) .wrap {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1200px) {
  body.guest-home-open.user-mode:not(.auth-mode) .wrap {
    max-width: 1180px !important;
  }

  .gh-ignite__reactor-frame {
    max-width: 460px;
  }
}
