@font-face {
  font-family: "Tilda Sans";
  src: url("/assets/tildasans.woff2") format("woff2");
  font-style: normal;
  font-weight: 250 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #1c1c1e;
  --surface-2: #242426;
  --text: #f7f7f5;
  --muted: #a9a9a4;
  --line: rgba(255, 255, 255, 0.11);
  --yellow: #fedd2c;
  --yellow-soft: #f7e678;
  --telegram: #229ed9;
  --max-a: #45c6ff;
  --max-b: #6543e8;
  --max-c: #9b34dc;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.42), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

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

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Tilda Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  isolation: isolate;
}

.site-shell::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(254, 221, 44, 0.13), transparent 28%),
    #050505;
  content: "";
}

.site-shell::after {
  position: fixed;
  z-index: -2;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
  content: "";
}

.page {
  position: relative;
  width: min(1280px, 100%);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(254, 221, 44, 0.76), transparent);
  content: "";
}

.copy {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 92px 68px 64px;
}

.brand {
  position: absolute;
  top: 32px;
  left: 68px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #d9d9d5;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(254, 221, 44, 0.45);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--yellow-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 7px rgba(254, 221, 44, 0.09);
  content: "";
  animation: pulse 2.4s var(--ease) infinite;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 4.45vw, 72px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 strong {
  color: var(--yellow);
  font-weight: 770;
}

.lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 380;
  line-height: 1.46;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 23px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  color: #fff;
  font-size: 16px;
  font-weight: 710;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.23);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), filter 220ms var(--ease);
}

.button:hover {
  transform: translateY(-3px);
  filter: saturate(1.08) brightness(1.04);
  box-shadow: 0 21px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.button--tg {
  background: #229ed9;
}

.button--max {
  background: linear-gradient(135deg, var(--max-a), var(--max-b) 58%, var(--max-c));
}

.note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  color: #7f7f7b;
  font-size: 13px;
  line-height: 1.4;
}

.note svg {
  width: 16px;
  height: 16px;
  color: var(--yellow);
}

.visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111112;
}

.visual::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, var(--surface) 0%, transparent 19%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.42), transparent 45%);
  pointer-events: none;
  content: "";
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
  transform: scale(1.025);
  animation: portrait-in 900ms var(--ease) both;
}

.theme-start .portrait {
  object-position: 48% center;
}

.theme-practice .portrait {
  object-position: 50% 38%;
}

.theme-services .portrait {
  object-position: 50% center;
}

.visual-label {
  position: absolute;
  z-index: 5;
  right: 30px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 12, 13, 0.62);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  color: #eeeeeb;
  font-size: 13px;
  font-weight: 600;
}

.visual-label::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.stat {
  position: absolute;
  z-index: 7;
  min-width: 144px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(24, 24, 26, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  pointer-events: none;
  animation: float 5.8s var(--ease) infinite;
}

.stat b {
  display: block;
  color: var(--yellow);
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: #d6d6d2;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.stat--one {
  top: 8%;
  right: 31%;
  transform: rotate(-4deg);
  animation-delay: -1.2s;
}

.stat--two {
  top: 44%;
  right: -2%;
  transform: rotate(4deg);
  animation-delay: -3.2s;
}

.stat--three {
  right: 34%;
  bottom: 6%;
  transform: rotate(-3deg);
  animation-delay: -4.4s;
}

.page-index {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 24px;
  color: rgba(254, 221, 44, 0.7);
  font-size: 13px;
  font-weight: 730;
  letter-spacing: 0.13em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.58; transform: scale(0.78); }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes portrait-in {
  from { opacity: 0; transform: scale(1.075); }
  to { opacity: 1; transform: scale(1.025); }
}

@media (max-width: 1040px) {
  .site-shell {
    padding: 16px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr);
  }

  .copy {
    padding: 88px 42px 48px;
  }

  .brand {
    left: 42px;
  }

  h1 {
    font-size: clamp(40px, 5vw, 60px);
  }

  .stat--two {
    right: 2%;
  }
}

@media (max-width: 820px) {
  .site-shell {
    display: block;
    padding: 12px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .copy {
    padding: 88px 26px 40px;
  }

  .brand {
    top: 25px;
    left: 26px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 11px;
  }

  h1 {
    max-width: 680px;
    font-size: clamp(38px, 10.4vw, 58px);
    line-height: 1.01;
  }

  .lead {
    margin-top: 22px;
    font-size: 17px;
  }

  .actions {
    margin-top: 28px;
  }

  .visual {
    min-height: 570px;
  }

  .visual::before {
    background: linear-gradient(180deg, var(--surface) 0%, transparent 15%, transparent 70%, rgba(5, 5, 5, 0.38));
  }

  .stat--one {
    top: 5%;
    right: auto;
    left: 4%;
  }

  .stat--two {
    top: 35%;
    right: 3%;
  }

  .stat--three {
    right: auto;
    bottom: 4%;
    left: 5%;
  }
}

@media (max-width: 520px) {
  .site-shell {
    padding: 0;
  }

  .hero {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .copy {
    padding: 82px 20px 34px;
  }

  .brand {
    top: 22px;
    left: 20px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .visual {
    min-height: 500px;
  }

  .stat {
    min-width: 126px;
    padding: 13px 14px;
  }

  .stat b {
    font-size: 21px;
  }

  .stat span {
    font-size: 9px;
  }

  .visual-label {
    right: 18px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

