/* Fonts: self-hosted copies of the exact files the original site loaded (Inter from the old host, Inter Tight from Google Fonts). See docs/SITE-INVENTORY.md. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-tight-600-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-tight-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-tight-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-tight-600-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;
}
/* Metric-matched local fallbacks, same values the original used, so text does not jump while the fonts load. */
@font-face {
  font-family: "Inter Placeholder";
  src: local("Arial");
  ascent-override: 89.79%;
  descent-override: 22.36%;
  line-gap-override: 0%;
  size-adjust: 107.89%;
}
@font-face {
  font-family: "Inter Tight Placeholder";
  src: local("Arial");
  ascent-override: 99.65%;
  descent-override: 24.81%;
  line-gap-override: 0%;
  size-adjust: 97.21%;
}

/* Colours: the original site's tokens. */
:root {
  --bg: #161616;        /* page background */
  --surface: #1c1c1c;   /* cards, grid lines, 404 button */
  --line: #282828;      /* card border, button fill */
  --line-hover: #3d3d3d;
  --text: #fff;
  --muted: #7c7f82;
  --icon-bg: rgb(33, 33, 33);
  --icon: rgb(255, 36, 43);
  --button-border: #e62222;
  --badge: rgb(51, 85, 255);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; padding: 0; }
body { font-family: sans-serif; font-size: 12px; background: var(--bg); }
h1, h2, p { margin: 0; padding: 0; }
a { -webkit-tap-highlight-color: transparent; }
img { display: block; }

/* Text styles (the original's text presets) */
.t-title {
  font-family: "Inter Tight", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.4px;
  color: var(--text);
  text-align: center;
}
.t-lead {
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5em;
  color: var(--text);
  text-align: center;
}
.t-card-title {
  font-family: "Inter-SemiBold", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5em;
  letter-spacing: -0.4px;
  color: var(--text);
  text-align: center;
}
.t-card-text {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5em;
  color: var(--muted);
  text-align: center;
}
.t-title, .t-lead, .t-card-title, .t-card-text { white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }

/* Page shell */
.page {
  position: relative;
  display: flex;
  flex-flow: row;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 100vh;
  width: auto;
  background-color: var(--bg);
}
.main {
  position: relative;
  z-index: 3;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: flex-start;
  gap: 58px;
  flex: 1 0 0;
  width: 1px;
  padding: 100px 0 160px;
}
.container {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 640px;
  padding: 0 36px;
}

/* Intro: portrait, name, lead, social icons */
.intro {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 0 12px;
}
.portrait-link {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  width: min-content;
  border-radius: 500px;
  overflow: hidden;
  text-decoration: none;
}
.portrait {
  position: relative;
  width: 179px;
  aspect-ratio: 1;
  border-radius: 6px;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}
.text-wrap {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}
.title-badge {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}
.title-badge .name { position: relative; flex: none; width: 69%; }
.badge { position: relative; flex: none; width: 26px; height: 26px; }
.badge svg { display: block; width: 100%; height: 100%; fill: var(--badge); }
.lead { position: relative; width: 100%; }

.socials {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.social { position: relative; flex: none; width: 50px; height: 50px; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-color: var(--icon-bg);
  overflow: hidden;
  text-decoration: none;
}
.social svg { display: block; width: 28px; height: 28px; fill: var(--icon); }

/* Offer cards */
.cards {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 110%;
}
.card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px 32px 16px 16px;
  border-radius: 6px;
  background-color: var(--surface);
  overflow: hidden;
}
.card::after,
.button::after,
.home-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: inherit;
  pointer-events: none;
}
.card::after { border: 1px solid var(--line); }
.card-text {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  overflow: hidden;
}
.card-text > div { position: relative; width: 100%; }
.button-wrap {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  width: 50%;
  overflow: hidden;
}
.button {
  position: relative;
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 7px;
  background-color: var(--line);
  overflow: hidden;
  cursor: pointer;
}
.button::after { border: 2px solid var(--button-border); }
.button a {
  display: flex;
  flex: 1 0 0;
  place-items: center;
  place-content: center;
  width: 1px;
  padding: 12px 24px;
  border-radius: 6px;
  background-color: rgba(28, 28, 28, 0);
  color: var(--text);
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1em;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

/* Footer */
.footer {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 0 32px;
  overflow: hidden;
}
.footer-inner { display: flex; flex-flow: row; align-items: center; justify-content: center; gap: 16px; width: 100%; }
.footer-child { display: flex; flex-flow: row; align-items: flex-start; gap: 5px; width: min-content; }
.footer p {
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 14px;
  line-height: 24px;
  text-align: left;
  white-space: pre;
  -webkit-user-select: none;
  user-select: none;
}
.footer a { color: var(--muted); text-decoration: none; cursor: pointer; }
.footer a:hover { color: var(--text); }

/* Background: square grid, fading out towards the bottom, behind the top 75% of the screen */
.bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: 75vh;
  overflow: hidden;
}
.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(22, 22, 22, 0) 100%);
}
.bg-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: transparent;
  background-image:
    linear-gradient(var(--surface) 2px, transparent 2px),
    linear-gradient(90deg, var(--surface) 2px, transparent 2px),
    linear-gradient(var(--surface) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface) 1px, var(--bg) 1px);
  background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}

/* 404 page */
.page-404 { height: 750px; align-items: center; }
.page-404 .main { justify-content: flex-start; }
.button-row {
  position: relative;
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}
.home-button {
  position: relative;
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: center;
  width: min-content;
  min-width: 80px;
  padding: 12px 24px;
  border-radius: 6px;
  background-color: var(--surface);
  text-decoration: none;
  cursor: pointer;
  --border-color: var(--line);
}
.home-button::after {
  border: 1px solid var(--border-color);
  transition: border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-button span {
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  color: var(--text);
  white-space: pre;
  -webkit-user-select: none;
  user-select: none;
}
@media (hover: hover) {
  .home-button:hover::after { border-color: var(--line-hover); }
}
.home-button:active::after { border-color: var(--line); }

/* Animations, timed like the original: social icons fade in (spring), cards rise in, icons grow on hover (spring). */
@keyframes hm-fade-in {
  from { opacity: 0.001; }
  to { opacity: 1; }
}
@keyframes hm-card-in {
  from { opacity: 0.001; transform: perspective(1200px) translateY(48px) scale(0.96); }
  to { opacity: 1; transform: perspective(1200px) translateY(0) scale(1); }
}
.socials { animation: hm-fade-in 0.32s cubic-bezier(0.3, 0.7, 0.4, 1) 0.3s both; }
.card { animation: hm-card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.social { transition: transform 0.28s cubic-bezier(0.3, 1.5, 0.6, 1); }
@media (hover: hover) {
  .social:hover { transform: scale(1.1); transition: transform 0.45s cubic-bezier(0.3, 1.3, 0.5, 1); }
}
/* Exact spring curves where the browser supports linear() easing (Safari 17.2+, Chrome 113+, Firefox 112+). */
@supports (transition-timing-function: linear(0, 1)) {
  .socials { animation-timing-function: linear(0, 0.0634, 0.2012, 0.3604, 0.512, 0.6427, 0.7482, 0.8292, 0.8888, 0.931, 0.9598, 0.9787, 0.9905, 0.9974, 1.0012, 1.0029, 1); }
  .social { transition-timing-function: linear(0, 0.0839, 0.2765, 0.5054, 0.7208, 0.8946, 1.0164, 1.0877, 1.1174, 1.1172, 1.099, 1.0726, 1.0453, 1.0218, 1); }
  @media (hover: hover) {
    .social:hover { transition-timing-function: linear(0, 0.0703, 0.2263, 0.4082, 0.581, 0.7268, 0.8396, 0.9204, 0.9737, 1.0056, 1.022, 1.028, 1.0276, 1.0239, 1.0188, 1.0138, 1.0093, 1.0057, 1.0031, 1.0013, 1.0001, 0.9995, 0.9992, 1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .socials, .card { animation: none; }
}

/* Tablet */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .page { flex-direction: column; }
  .main { flex: none; width: 100%; padding: 160px 0; }
  .container { gap: 56px; padding: 0 24px; }
  .portrait { width: 167px; }
  .title-badge .name { width: 84%; }
  .t-title { font-size: 48px; line-height: 48px; }
  .t-card-text { line-height: 1.45em; }
  .page-404 .main { justify-content: center; height: 1px; flex: 1 0 0; }
}

/* Phone */
@media (max-width: 809.98px) {
  .page { flex-direction: column; }
  .main { flex: none; width: 100%; padding: 66px 0 48px; }
  .container { gap: 48px; padding: 0 24px; }
  .intro { padding: 0; }
  .portrait { width: 137px; }
  .title-badge .name { width: 63%; }
  .badge { width: 23px; }
  .t-title { font-size: 32px; line-height: 40px; }
  .t-card-text { line-height: 1.45em; }
  .cards { width: 100%; }
  .card { align-items: flex-start; padding: 16px; }
  .card-text { gap: 1px; }
  .button-wrap { z-index: 1; align-items: center; justify-content: flex-start; width: 100%; }
  .button { z-index: 2; width: 301px; }
  .footer-inner { flex-direction: column; }
  .page-404 .main { justify-content: center; height: 1px; flex: 1 0 0; }
}
