:root {
  --page-bg: #f5f5f7;
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.58);
  --muted-low: rgba(17, 17, 17, 0.38);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --border: rgba(17, 17, 17, 0.08);
  --border-strong: rgba(17, 17, 17, 0.12);
  --shadow: rgba(17, 24, 39, 0.075);
  --grid-line: rgba(17, 17, 17, 0.035);
  --grid-line-strong: rgba(17, 17, 17, 0.055);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.bio-page {
  min-height: 100svh;
  padding: 24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--page-bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.92) 0%, transparent 36%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-strong) 1px, transparent 1px);
  background-size:
    100% 100%,
    32px 32px,
    32px 32px,
    160px 160px,
    160px 160px;
  background-position:
    center top,
    center top,
    center top,
    center top,
    center top;
  background-attachment: fixed;
}

.bio-shell {
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bio-logo-wrap {
  width: min(58%, 210px);
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.main-links {
  width: 100%;
  display: grid;
  gap: 11px;
}

.link-card {
  width: 100%;
  min-height: 72px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.64));
  box-shadow:
    0 18px 50px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 13px;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow:
    0 22px 60px rgba(17, 24, 39, 0.105),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.link-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.9), transparent 54%),
    rgba(17, 17, 17, 0.035);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.link-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.link-copy strong {
  font-size: 16px;
  line-height: 1;
  font-weight: 680;
  color: var(--text);
}

.link-copy small {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 420;
  color: var(--muted);
}

.link-arrow {
  font-size: 17px;
  line-height: 1;
  color: var(--muted-low);
}

.products-section {
  width: 100%;
  margin-top: 28px;
}

.section-label {
  margin: 0 0 12px;
  text-align: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 720;
  color: var(--muted-low);
  text-transform: uppercase;
}

.product-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.product-card {
  min-height: 132px;
  padding: 15px 8px 13px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58));
  box-shadow:
    0 16px 44px rgba(17, 24, 39, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow:
    0 20px 56px rgba(17, 24, 39, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.product-icon {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  background: rgba(17, 17, 17, 0.035);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon img {
  width: 27px;
  height: 27px;
  display: block;
  object-fit: contain;
}

.product-card strong {
  font-size: 13px;
  line-height: 1;
  font-weight: 720;
  color: var(--text);
}

.product-card small {
  max-width: 96px;
  font-size: 10.5px;
  line-height: 1.22;
  font-weight: 430;
  color: var(--muted);
}

.bio-footer {
  width: 100%;
  margin-top: 22px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bio-footer span,
.bio-footer a {
  font-size: 11px;
  line-height: 1;
  font-weight: 520;
  color: var(--muted-low);
}

@media (max-width: 380px) {
  .bio-page {
    padding: 18px 12px;
  }

  .bio-logo-wrap {
    width: min(60%, 190px);
    margin-bottom: 26px;
  }

  .link-card {
    min-height: 70px;
    border-radius: 22px;
    grid-template-columns: 44px 1fr auto;
  }

  .link-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .products-section {
    margin-top: 24px;
  }

  .product-grid {
    gap: 8px;
  }

  .product-card {
    min-height: 124px;
    border-radius: 21px;
  }

  .product-icon {
    width: 38px;
    height: 38px;
  }

  .product-icon img {
    width: 25px;
    height: 25px;
  }
}

@media (min-width: 720px) {
  .bio-shell {
    width: min(100%, 460px);
  }

  .bio-logo-wrap {
    width: min(50%, 220px);
  }
}