@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
  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;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/assets/fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  --background: #0a0a10;
  --surface: #14151f;
  --surface-hover: #1b2437;
  --text: #f5f6f8;
  --muted: #9ca4b8;
  --blue: #4088ff;
  --ice: #8fc9ff;
  --border: rgb(255 255 255 / 9%);
  --font-body: Montserrat, 'Segoe UI', sans-serif;
  --font-display: Unbounded, Montserrat, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-inline-size: 280px;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-block-size: 100svh;
  color: var(--text);
  background: radial-gradient(ellipse 500px 420px at 50% 0, rgb(64 136 255 / 13%), transparent 100%);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  block-size: 340px;
  pointer-events: none;
  background: url('/assets/triangle.svg') no-repeat calc(50% + 168px) -172px / 390px;
  opacity: .13;
  mask-image: linear-gradient(#000, transparent);
}

::selection { background: var(--blue); color: var(--background); }
.symbols { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }

.page {
  inline-size: min(100%, 480px);
  margin-inline: auto;
  padding: max(36px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.identity { margin-block-end: 28px; text-align: center; }
.identity h1 { margin: 0; }
.logo { display: block; inline-size: 144px; block-size: auto; margin-inline: auto; }
.identity p { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.link {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-tap-highlight-color: rgb(64 136 255 / 22%);
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.link:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.link:active { background-color: var(--surface-hover); }
.icon, .brand-icon { display: block; flex: 0 0 24px; inline-size: 24px; block-size: 24px; }
.brand-icon { background: currentColor; mask: var(--icon) center / contain no-repeat; }
.telegram-icon { --icon: url('/assets/telegram.svg'); }
.dribbble-icon { --icon: url('/assets/dribbble.svg'); }
.behance-icon { --icon: url('/assets/behance.svg'); }
.linkedin-icon { --icon: url('/assets/linkedin.svg'); }
.arrow { flex: 0 0 16px; inline-size: 16px; block-size: 16px; color: var(--muted); }

.contact {
  display: flex;
  align-items: center;
  gap: 13px;
  min-block-size: 80px;
  padding: 17px 18px;
  border-radius: 18px;
  border-color: rgb(143 201 255 / 24%);
  background: var(--blue);
  color: var(--background);
  box-shadow: 0 8px 36px rgb(45 124 255 / 20%);
}

.contact-icon { display: grid; place-items: center; flex-shrink: 0; inline-size: 36px; block-size: 36px; }
.contact-icon .brand-icon { inline-size: 32px; block-size: 32px; }
.link-copy { display: grid; gap: 6px; min-inline-size: 0; }
.contact-title { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.45; letter-spacing: -.035em; }
.contact-detail { font-size: 10px; font-weight: 600; line-height: 1.5; }
.contact .arrow { margin-inline-start: auto; color: currentColor; }
.contact:active { background: var(--ice); }

.websites { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-start: 12px; }
.website { display: grid; gap: 5px; padding: 15px 16px; border-radius: 16px; }
.website-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-end: 6px; color: var(--ice); }
.website-top .icon { inline-size: 21px; block-size: 21px; }
.website-title { font-size: 12px; font-weight: 600; line-height: 1.5; }
.website-domain { font-size: 11px; line-height: 1.5; color: var(--muted); }

.socials { margin-block-start: 26px; }
.socials h2 { margin: 0 0 12px 4px; color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; }
.social-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social { display: flex; align-items: center; gap: 14px; min-block-size: 54px; padding: 13px 18px; border-radius: 14px; }
.social > .icon, .social > .brand-icon { color: #d7dbe5; }
.social-name { min-inline-size: 0; margin-inline-end: auto; font-size: 13px; font-weight: 600; line-height: 1.5; }
.tag { padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.footer { display: flex; justify-content: center; align-items: center; gap: 7px; margin-block-start: 25px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.brand-dot { inline-size: 4px; block-size: 4px; border-radius: 50%; background: var(--blue); }

@media (hover: hover) {
  .link:hover { background: var(--surface-hover); border-color: rgb(143 201 255 / 32%); }
  .link:hover .arrow { color: var(--ice); }
  .contact:hover { background: #5796ff; border-color: var(--ice); box-shadow: 0 8px 40px rgb(45 124 255 / 32%); }
  .contact:hover .arrow { color: currentColor; }
}

@media (min-width: 600px) {
  .page { padding-block-start: 52px; padding-block-end: 36px; }
  .identity { margin-block-end: 32px; }
  .logo { inline-size: 156px; }
  .contact-title { font-size: 14px; }
  .contact-detail { font-size: 11px; }
}

@media (max-width: 359px) {
  .page { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .contact { gap: 9px; padding-inline: 12px; }
  .contact-title { font-size: 11px; }
  .contact-detail { font-size: 9px; }
  .social { padding-inline: 14px; }
}

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

@media (forced-colors: active) {
  .brand-icon { background: LinkText; }
  .link { border-color: LinkText; }
  .link:focus-visible { outline-color: Highlight; }
}
