:root {
  --ink: #161a1f;
  --ink-soft: #3a4048;
  --ink-muted: #7a838e;
  --line: rgba(25, 30, 38, .14);
  --coral: #ed4848;
  --paper: #f4f6f8;
  --night: #161a1f;
  --shadow: 0 18px 46px rgba(30, 37, 47, .12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f9fa 0%, #eef2f5 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.contact-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand {
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.contact-link {
  min-height: 44px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand:hover,
.brand:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
  color: var(--ink);
}

.home-screen {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100svh - 140px);
  margin: 0 auto;
  display: grid;
}

.home-board {
  min-height: inherit;
  display: grid;
  align-items: center;
  padding: clamp(44px, 9vw, 104px) 0;
}

.app-grid {
  justify-self: center;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: clamp(34px, 5vw, 64px);
  align-self: center;
}

.app-tile {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 13px;
  text-align: center;
  text-decoration: none;
}

.app-icon-frame {
  width: clamp(104px, 11vw, 128px);
  height: clamp(104px, 11vw, 128px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 24, 32, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .26);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .86) inset,
    0 12px 28px rgba(18, 24, 32, .14);
  transition: box-shadow .16s ease, transform .16s ease;
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-tile:hover .app-icon-frame,
.app-tile:focus-visible .app-icon-frame {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 18px 34px rgba(18, 24, 32, .18);
}

.app-tile:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 8px;
  border-radius: 8px;
}

.app-tile span {
  max-width: 100%;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink-muted);
  font-size: 13px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--night);
  background: var(--paper);
  font-weight: 900;
  text-decoration: none;
}

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.not-found__panel {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  background: rgba(255, 255, 255, .1);
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.not-found__panel img {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}

.not-found__panel h1 {
  max-width: none;
  font-size: 44px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 760px) {
  .site-header,
  .home-screen,
  .site-footer {
    width: min(100% - 28px, 560px);
  }

  .site-header {
    min-height: 78px;
  }

  .home-screen {
    min-height: calc(100svh - 130px);
  }

  .home-board {
    padding-top: 48px;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    gap: 34px;
    width: min(340px, 100%);
  }

  .app-icon-frame {
    width: 94px;
    height: 94px;
  }

  .site-footer {
    flex-direction: column;
    gap: 3px;
    padding-bottom: 14px;
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: 16px;
  }

  .contact-link {
    min-height: 42px;
  }

  .app-grid {
    gap: 26px 18px;
  }

  .app-icon-frame {
    width: 82px;
    height: 82px;
  }

}
