@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope Variable";
  src: url("/assets/manrope-cyrillic.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope Variable";
  src: url("/assets/manrope-latin.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --canvas: #fff;
  --panel: #f7f7f7;
  --surface: #f1f1f1;
  --surface-hover: #e8e8e8;
  --line: #e1e1e1;
  --line-strong: #c9c9c9;
  --text: #080808;
  --muted: #646464;
  --dim: #888;
  --shadow: 0 22px 80px rgb(0 0 0 / 12%);
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000;
    --panel: #080808;
    --surface: #111;
    --surface-hover: #181818;
    --line: #242424;
    --line-strong: #393939;
    --text: #f5f5f5;
    --muted: #8d8d8d;
    --dim: #5e5e5e;
    --shadow: 0 22px 80px rgb(0 0 0 / 55%);
  }
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--canvas);
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; }

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--text);
  -ms-overflow-style: none;
}

html[lang="uk"] body {
  font-family: "Manrope Variable", Arial, Helvetica, sans-serif;
}

a { color: inherit; }

.paw-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.paw {
  position: absolute;
  bottom: -70px;
  left: 7%;
  width: 32px;
  aspect-ratio: 1;
  background: #514463;
  opacity: 0;
  -webkit-mask: url("/assets/paw.svg") center / contain no-repeat;
  mask: url("/assets/paw.svg") center / contain no-repeat;
  animation: pawFloat 36s linear infinite;
}

.paw:nth-child(2) { left: 20%; width: 21px; background: #365048; animation-duration: 43s; animation-delay: -17s; }
.paw:nth-child(3) { left: 36%; width: 46px; background: #493c55; animation-duration: 49s; animation-delay: -31s; }
.paw:nth-child(4) { left: 53%; width: 27px; background: #334c50; animation-duration: 39s; animation-delay: -9s; }
.paw:nth-child(5) { left: 68%; width: 39px; background: #4e403d; animation-duration: 46s; animation-delay: -27s; }
.paw:nth-child(6) { left: 82%; width: 24px; background: #3e465d; animation-duration: 41s; animation-delay: -20s; }
.paw:nth-child(7) { left: 94%; width: 51px; background: #453b4b; animation-duration: 53s; animation-delay: -41s; }
.paw:nth-child(8) { left: 2%; width: 23px; background: #3d4b42; animation-duration: 47s; animation-delay: -35s; }

.site-view {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: max(40px, env(safe-area-inset-top)) 24px max(22px, env(safe-area-inset-bottom));
}

.workspace {
  width: min(100%, 680px);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-block h1 { margin: 0; }

.brand-prefix {
  display: block;
  margin: 0 0 3px 73px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .11em;
  line-height: 1;
  text-align: left;
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 58px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  display: block;
}

.brand-block > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.links-panel {
  width: 100%;
  margin-top: 42px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.panel-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.total {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.total b { color: var(--text); font-weight: 650; }

.service-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.service-link {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  padding: 9px 17px 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}

.service-link:hover {
  border-color: var(--muted);
  background: var(--surface-hover);
}

.service-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.service-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--canvas);
}

.service-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-icon-web {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.service-copy { min-width: 0; }

.service-copy strong,
.service-copy small { display: block; }

.service-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-copy small {
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-count {
  min-width: 56px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.service-count b,
.service-count small { display: block; }

.service-count b {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
}

.service-count small {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1;
}

.open-mark {
  color: var(--dim);
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

footer {
  margin-top: 36px;
  color: var(--dim);
  font-size: 11px;
  text-align: center;
}

@keyframes pawFloat {
  0% { opacity: 0; transform: translateY(0) rotate(-16deg); }
  10%, 78% { opacity: .24; }
  100% { opacity: 0; transform: translateY(calc(-100svh - 140px)) rotate(28deg); }
}

@media (max-width: 560px) {
  .site-view { padding-inline: 18px; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-main { gap: 12px; font-size: 43px; line-height: 46px; }
  .brand-prefix { margin-left: 60px; font-size: 13px; }
  .links-panel { margin-top: 34px; padding: 18px; }
  .panel-heading { gap: 12px; }
  .service-link { grid-template-columns: 40px minmax(0, 1fr) auto 14px; gap: 11px; padding-right: 13px; }
  .service-mark { width: 40px; height: 40px; border-radius: 10px; }
}

@media (max-width: 390px) {
  .total { display: none; }
  .service-link { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .open-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .paw { display: none; }
  .service-link { transition: none; }
}
