:root {
  --color-primary: #db1e09;
  --color-ink: #fff;
  --color-muted: #9a9a9a;
  --color-border: rgba(255, 255, 255, 0.16);
  --color-black: #000;
  --color-white: #fff;
  --color-surface: #141414;
  --radius: 14px;
  --font: "Exo 2", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-black);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 40px;
  background: var(--color-black);
}

.content {
  width: min(100%, 460px);
}

.brand {
  text-align: center;
  margin-bottom: 48px;
}

.brand__logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 14px;
}

.brand__tagline {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted);
}

.links--primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 360px) {
  .links--primary {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 28px 12px 32px;
  }

  .brand {
    margin-bottom: 36px;
  }

  .apps__icons {
    gap: 12px;
  }

  .app-icon {
    width: 76px;
  }
}

.btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-black);
  text-align: left;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  background: #e8e8e8;
  outline: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--color-black);
}

.btn__icon svg {
  width: 24px;
  height: 24px;
}

.btn__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.btn__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn__hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: #666;
  line-height: 1.2;
}

.apps {
  margin-top: 64px;
  text-align: center;
}

.apps__title {
  margin: 0 0 28px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-white);
}

.apps__icons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 84px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.app-icon:hover,
.app-icon:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.app-icon:hover .app-icon__badge,
.app-icon:focus-visible .app-icon__badge {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  filter: brightness(1.08);
}

.app-icon__badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: none;
  color: var(--color-white);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.app-icon__badge svg {
  width: 34px;
  height: 34px;
  display: block;
}

.app-icon__badge--rustore {
  background: #1a1a1a;
  color: #fff;
}

.app-icon__badge--rustore svg {
  width: 34px;
  height: 34px;
}

.app-icon__badge--apple {
  background: #0071e3;
}

.app-icon__badge--android {
  background: #3ddc84;
  color: #fff;
}

.app-icon__badge--vk {
  background: #0077ff;
}

.app-icon__badge--telegram {
  background: #0088cc;
}

.app-icon__badge--strava {
  background: #fc4c02;
}

.app-icon[data-pending="true"] {
  opacity: 0.72;
  cursor: default;
}

.app-icon__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
}

.social {
  margin-top: 56px;
  text-align: center;
}

.footer {
  margin-top: 48px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.footer__dev {
  margin-top: 8px !important;
}

.footer__dev a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s ease;
}

.footer__dev a:hover,
.footer__dev a:focus-visible {
  color: var(--color-primary);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .app-icon,
  .app-icon__badge {
    transition: none;
  }

  .app-icon:hover,
  .app-icon:focus-visible,
  .app-icon:hover .app-icon__badge,
  .app-icon:focus-visible .app-icon__badge {
    transform: none;
    filter: none;
    box-shadow: none;
  }
}
