/* Приветственная страница powerup-go.uz — выбор раздела.
   Язык бренда: чёрный, золото, Unbounded + Manrope (как на всём сайте).
   Сигнатура — слот станции: четыре точки индикатора «••••» заряжаются при наведении,
   при выборе слот заряжается до конца и открывается раздел. */

:root {
  --bg: #050505;
  --bg-card: #0d0d0d;
  --gold: #d4af37;
  --gold-light: #ffe566;
  --gold-dark: #b8860b;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --line: rgba(212, 175, 55, 0.16);
  --line-strong: rgba(212, 175, 55, 0.32);
  --text: #f2efe8;
  --muted: #9a958b;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-card: 20px;
  --gutter: clamp(16px, 4.5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.gw-skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: .6em 1em; background: var(--gold); color: var(--bg); border-radius: 999px; text-decoration: none; font-weight: 600; }
.gw-skip:focus { top: 16px; }

/* ── Фон: тонкая сетка и золотое свечение, как на первом экране сайта ── */
.gw-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.gw-bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 75%);
  animation: gw-fade 2s var(--ease) .2s backwards;
}
.gw-bg__glow {
  position: absolute; right: -10vw; top: -20vh; width: 70vw; height: 80vh;
  background: radial-gradient(closest-side, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.05) 55%, transparent);
  animation: gw-fade 2.4s var(--ease) .3s backwards, gw-drift 16s ease-in-out 2s infinite alternate;
}

/* ── Шапка ── */
.gw-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(clamp(16px, 2.6vw, 32px) + env(safe-area-inset-top)) var(--gutter) 0;
  animation: gw-rise .9s var(--ease) backwards;
}
.gw-logo { display: block; width: clamp(52px, 4.6vw, 66px); border-radius: 8px; }
.gw-logo img { width: 100%; height: auto; }

.gw-lang { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.02); }
.gw-lang button {
  min-width: 44px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: none;
  font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--muted);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.gw-lang button:hover { color: var(--text); }
.gw-lang button[aria-pressed="true"] { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #0a0a0a; }

/* ── Приветствие ── */
.gw-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4.2vh, 48px); padding: clamp(24px, 4.5vh, 56px) var(--gutter) clamp(20px, 3vh, 36px); width: 100%; max-width: 1560px; margin-inline: auto; }

.gw-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: end; column-gap: 48px; }
.gw-label {
  grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .6rem; margin-bottom: clamp(14px, 2vh, 22px);
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.gw-label::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.gw-title {
  grid-column: 1; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, .9rem + 4.4vw, 5.5rem); line-height: 1.06; letter-spacing: -.03em;
}
.gw-ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.gw-ln > span { display: inline-block; animation: gw-line 1.1s var(--ease) backwards; }
.gw-ln:nth-child(1) > span { animation-delay: .15s; }
.gw-ln:nth-child(2) > span { animation-delay: .27s; }
.gw-gold {
  background: linear-gradient(165deg, #fff4c4 0%, #e8c96a 30%, #c9a227 55%, #f0d878 80%, #a67c00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gw-lead { grid-column: 2; padding-bottom: .55em; font-size: clamp(1rem, .9rem + .35vw, 1.1875rem); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.gw-in { animation: gw-rise .9s var(--ease) var(--d, 0s) backwards; }

/* ── Слоты-разделы ── */
.gw-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 18px); }

.gw-slot {
  --mx: 50%; --my: 30%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  height: clamp(330px, 46vh, 460px); padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--bg-card); text-decoration: none; color: var(--text);
  box-shadow: 0 24px 60px -36px #000;
  transition: transform .45s var(--ease);
  animation: gw-slot-in 1.1s var(--ease) calc(.55s + var(--i) * .09s) backwards;
  -webkit-tap-highlight-color: transparent;
}

.gw-slot__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.gw-slot__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); filter: saturate(.92) brightness(.82); transition: transform 1.4s var(--ease), filter .8s var(--ease); }
.gw-slot__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 5, .35) 0%, transparent 22%, transparent 38%, rgba(5, 5, 5, .82) 66%, #050505 92%); }
.gw-slot__media--screen img { object-position: top; filter: brightness(.92); }

.gw-slot__top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.gw-slot__num {
  font: 800 clamp(2.75rem, 1.6rem + 2vw, 3.75rem)/.9 var(--font-display); letter-spacing: -.02em;
  background: linear-gradient(165deg, #fff4c4 0%, #e8c96a 28%, #c9a227 52%, #f0d878 78%, #a67c00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Индикатор слота — четыре точки, как у станции */
.gw-slot__led { display: inline-flex; gap: 4px; padding: 6px 8px; border-radius: 999px; background: rgba(5, 5, 5, .6); border: 1px solid rgba(255, 255, 255, 0.08); }
.gw-slot__led i {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.16);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.gw-slot__led i:first-child { background: var(--gold); box-shadow: 0 0 6px var(--gold-glow); }
/* Загрузка страницы: каждый слот «просыпается» */
.gw-slot__led i { animation: gw-led-boot .5s ease calc(1.1s + var(--i) * .12s + var(--n, 0) * .07s) backwards; }
.gw-slot__led i:nth-child(2) { --n: 1; } .gw-slot__led i:nth-child(3) { --n: 2; } .gw-slot__led i:nth-child(4) { --n: 3; }

.gw-slot__body { position: relative; z-index: 2; display: grid; gap: 6px; padding-right: 52px; }
.gw-slot__kicker { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.gw-slot__title { font: 700 clamp(1.25rem, .85rem + .9vw, 1.75rem)/1.1 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.gw-slot__text { font-size: .875rem; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

.gw-slot__go {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(5, 5, 5, .5); color: var(--text);
  transition: border-color .4s var(--ease), color .35s var(--ease);
}
/* Золотая заливка — отдельный слой: вырастает из центра при наведении */
.gw-slot__go::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  box-shadow: 0 6px 22px var(--gold-glow);
  transform: scale(.3); opacity: 0;
  transition: transform .55s var(--ease), opacity .35s var(--ease);
}
.gw-slot__go svg { position: relative; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }

/* Наведение и фокус: карточка чуть увеличивается — и всё */
.gw-slot:is(:hover, :focus-visible) { transform: scale(1.03); }
.gw-slot:focus-visible { outline-offset: 5px; }
/* Клик: слот заряжается (видно на миг перед экраном перехода) */
.gw-slot.is-launch { transform: scale(1.03); border-color: rgba(212, 175, 55, .6); }
.gw-slot.is-launch .gw-slot__led i { background: #7ff3ff; box-shadow: 0 0 10px rgba(0, 229, 255, .7); }

/* ── Инвесторам: выбор формата ── */
.gw-choice {
  position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg);
  display: flex; align-items: center;
}
.gw-choice::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at 88% 0%, rgba(212, 175, 55, 0.12), transparent 70%);
}
.gw-choice[hidden] { display: none; }
.gw-choice.is-open { animation: gw-fade .35s var(--ease) backwards; }
.gw-choice__inner {
  position: relative; width: 100%; max-width: 1180px; margin-inline: auto;
  padding: calc(clamp(20px, 4vh, 48px) + env(safe-area-inset-top)) var(--gutter) calc(clamp(24px, 5vh, 56px) + env(safe-area-inset-bottom));
}
.gw-choice__back {
  display: flex; width: fit-content; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 clamp(18px, 3.4vh, 36px); padding: 0 16px 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02);
  font-size: .875rem; font-weight: 600; color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.gw-choice__back:hover { color: var(--text); border-color: var(--line-strong); }
.gw-choice__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gw-choice__title:focus { outline: none; }
.gw-choice__title {
  margin: 0 0 clamp(20px, 3.5vh, 36px); font: 800 clamp(1.875rem, 1rem + 3vw, 3.5rem)/1.05 var(--font-display); letter-spacing: -.03em;
}
.gw-choice__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.gw-slot--option { height: clamp(300px, 46vh, 440px); }
.gw-choice.is-open .gw-label, .gw-choice.is-open .gw-choice__title, .gw-choice.is-open .gw-choice__back { animation: gw-rise .7s var(--ease) backwards; }
.gw-choice.is-open .gw-choice__title { animation-delay: .06s; }
.gw-choice.is-open .gw-slot--option { animation: gw-slot-in .9s var(--ease) calc(.12s + var(--i) * .08s) backwards; }
.gw-choice.is-open .gw-slot--option .gw-slot__led i { animation: gw-led-boot .5s ease calc(.6s + var(--i) * .12s + var(--n, 0) * .07s) backwards; }

/* ── Подвал ── */
.gw-foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter) calc(clamp(16px, 2.4vh, 28px) + env(safe-area-inset-bottom));
  font-size: .8125rem; color: var(--muted); width: 100%; max-width: 1560px; margin-inline: auto;
}

.gw-foot { align-items: baseline; }
.gw-foot__about { flex: 1; max-width: 46rem; text-align: center; color: rgba(154, 149, 139, .8); }
@media (max-width: 900px) {
  .gw-foot { flex-wrap: wrap; }
  .gw-foot__about { order: -1; flex-basis: 100%; text-align: left; margin-bottom: 4px; }
}

.gw-foot__docs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.gw-foot__docs a { color: var(--muted); text-decoration: none; }
.gw-foot__docs a:hover { color: var(--gold-light); }
/* Карточка «О компании»: логотип по центру, без затемнения снизу до черноты */
.gw-slot[href="/about/"] .gw-slot__media img { filter: none; object-position: center 35%; }

/* ── Переход в раздел ── */
.gw-launch { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; background: var(--bg); opacity: 0; }
.gw-launch__text { position: absolute; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; left: var(--gutter); right: var(--gutter); bottom: calc(clamp(40px, 7vh, 72px) + 22px + env(safe-area-inset-bottom)); font-size: clamp(1rem, .9rem + .5vw, 1.375rem); color: var(--muted); }
.gw-launch__img {
  position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.12);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%); mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
}
.gw-launch.is-on .gw-launch__img { animation: gw-launch-img 1.1s var(--ease) .25s forwards; }
@keyframes gw-launch-img { to { opacity: .38; transform: none; } }
.gw-launch__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(clamp(40px, 7vh, 72px) + env(safe-area-inset-bottom)); height: 3px; border-radius: 3px; background: var(--line); }
.gw-launch__bar span { position: absolute; inset: 0; border-radius: inherit; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--gold), var(--gold-light)); box-shadow: 0 0 16px var(--gold-glow); }
.gw-launch.is-on { visibility: visible; pointer-events: auto; animation: gw-fade-in .35s var(--ease) .25s forwards; }
.gw-launch.is-on .gw-launch__bar span { animation: gw-bar .55s cubic-bezier(.65, 0, .35, 1) .35s forwards, gw-spark .2s ease-out .9s forwards; }

/* ── Ключевые кадры ── */
@keyframes gw-fade { from { opacity: 0; } }
@keyframes gw-fade-in { to { opacity: 1; } }
@keyframes gw-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes gw-line { from { transform: translateY(108%); } }
@keyframes gw-slot-in { from { opacity: 0; transform: translateY(48px); clip-path: inset(10% 0 0 0 round var(--radius-card)); } to { clip-path: inset(0 0 0 0 round var(--radius-card)); } }
@keyframes gw-led-boot { 0% { background: rgba(255, 255, 255, .16); box-shadow: none; } 45% { background: var(--gold-light); box-shadow: 0 0 10px var(--gold-glow); } }
@keyframes gw-drift { to { transform: translate(-6vw, 8vh) scale(1.08); } }
@keyframes gw-bar { to { transform: scaleX(1); } }
@keyframes gw-spark { to { background: #00e5ff; box-shadow: 0 0 22px #00e5ff; } }

/* ── Планшет: 2 × 2 ── */
@media (max-width: 1100px) {
  .gw-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gw-hero { grid-template-columns: 1fr; }
  .gw-lead { grid-column: 1; margin-top: 16px; padding: 0; max-width: 34rem; }
  .gw-slot { height: clamp(320px, 42vh, 420px); }
  .gw-slot__media img { object-position: center 30%; }
}

/* ── Телефон: слоты строками — фото слева, текст справа ── */
@media (max-width: 680px) {
  .gw-main { justify-content: flex-start; gap: 26px; padding-top: 28px; }
  .gw-lang button { min-width: 40px; padding: 0 10px; }
  .gw-slots { grid-template-columns: 1fr; gap: 10px; }
  .gw-slot {
    height: auto; min-height: 128px; padding: 10px 12px 10px 10px;
    display: grid; grid-template-columns: 92px minmax(0, 1fr) 36px; grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 6px;
    border-radius: 18px;
  }
  .gw-slot__media { position: relative; inset: auto; z-index: 0; grid-column: 1; grid-row: 1 / span 2; height: 108px; align-self: center; border-radius: 12px; }
  .gw-slot__media::after { background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 5, .45)); }
  .gw-slot__media img { filter: none; }
  .gw-slot__top { grid-column: 2; grid-row: 1; justify-content: flex-start; align-items: center; gap: 12px; padding-top: 2px; }
  .gw-slot__num { font-size: 2rem; }
  .gw-slot__led { padding: 4px 6px; gap: 3px; }
  .gw-slot__led i { width: 5px; height: 5px; }
  .gw-slot__body { grid-column: 2; grid-row: 2; padding: 0 0 4px; gap: 3px; align-content: start; }
  .gw-slot__kicker { display: none; }
  .gw-slot__title { font-size: 1.125rem; }
  .gw-slot__text { font-size: .8125rem; line-height: 1.45; }
  .gw-slot__go { position: static; grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 36px; height: 36px; }
  .gw-slot__go svg { width: 15px; height: 15px; }
  .gw-slot:is(:hover, :focus-visible) { transform: none; }
  .gw-slot:active { transform: scale(1.02); }
  .gw-foot { padding-top: 28px; }
  .gw-choice { align-items: flex-start; }
  .gw-choice__options { grid-template-columns: 1fr; gap: 10px; }
  .gw-slot--option { height: auto; }
}

/* Узкие Android (320–360): колонке текста нужно больше места */
@media (max-width: 360px) {
  .gw-slot { grid-template-columns: 72px minmax(0, 1fr) 32px; column-gap: 10px; padding: 9px 10px 9px 9px; }
  .gw-slot__media { height: 92px; border-radius: 10px; }
  .gw-slot__go { width: 32px; height: 32px; }
  .gw-slot__title { font-size: 1.0625rem; }
  .gw-slot__num { font-size: 1.75rem; }
  .gw-slot__text { font-size: .78125rem; overflow-wrap: break-word; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
