:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #15161a;
  --muted: #6d6f78;
  --line: rgba(21, 22, 26, .08);
  --gold: #f2b705;
  --ya: #ff4433;
  --gis: #2da44e;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111215; --card: #1b1c21; --ink: #f2f1ee; --muted: #9a9ca6; --line: rgba(255, 255, 255, .08); }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  overflow-x: hidden;
}

/* мягкое тёплое свечение на фоне, медленно дышит */
.glow {
  position: fixed; inset: -30vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 25% 20%, rgba(242, 183, 5, .16), transparent 60%),
    radial-gradient(38vmax 38vmax at 80% 85%, rgba(45, 164, 78, .10), transparent 60%),
    radial-gradient(34vmax 34vmax at 85% 15%, rgba(255, 68, 51, .09), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(3vmax, -2vmax, 0) rotate(8deg); } }

.wrap { width: 100%; max-width: 400px; text-align: center; }

.kicker { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 10px 0 6px; font-size: clamp(30px, 9vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.descr { margin: 0 auto; max-width: 32ch; color: var(--muted); }
.ask { margin: 26px 0 14px; font-weight: 600; }

.stars { margin-top: 14px; font-size: 26px; letter-spacing: 6px; color: var(--gold); }
.stars span { display: inline-block; opacity: 0; transform: scale(.3) rotate(-30deg); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.stars span:nth-child(1) { animation-delay: .45s; }
.stars span:nth-child(2) { animation-delay: .55s; }
.stars span:nth-child(3) { animation-delay: .65s; }
.stars span:nth-child(4) { animation-delay: .75s; }
.stars span:nth-child(5) { animation-delay: .85s; }
@keyframes pop { to { opacity: 1; transform: none; } }

.buttons { display: grid; gap: 12px; }
.btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; min-height: 76px;
  background: var(--card); color: var(--ink); text-decoration: none; text-align: left;
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -12px rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.btn.ya img { animation: bob 3.2s ease-in-out infinite; }
.btn.gis img { animation: bob 3.2s ease-in-out .6s infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.btn .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.btn .label { font-size: 18px; font-weight: 700; }
.btn .meta { font-size: 14px; color: var(--muted); }
.btn .meta i { font-style: normal; margin: 0 6px; opacity: .6; }
.btn .rate { color: var(--ink); font-weight: 700; }
.btn .arrow { font-size: 30px; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.ya { box-shadow: inset 4px 0 0 var(--ya), 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -12px rgba(255, 68, 51, .35); }
.btn.gis { box-shadow: inset 4px 0 0 var(--gis), 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -12px rgba(45, 164, 78, .35); }

/* блик, пробегающий по кнопкам */
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  animation: sheen 5s ease-in-out 1.6s infinite;
}
.btn.gis::after { animation-delay: 2.1s; }
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@media (prefers-color-scheme: dark) { .btn::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .12), transparent); } }

.note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.foot { margin-top: 28px; font-size: 12px; letter-spacing: .08em; color: var(--muted); opacity: .7; }

/* появление по очереди */
.anim { opacity: 0; transform: translateY(14px); animation: rise .6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim, .stars span { opacity: 1; transform: none; }
}
