:root {
  --black: #050505;
  --panel: #0d1421;
  --panel-soft: #152338;
  --text: #ffffff;
  --muted: #a7adba;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #d8b34d;
  --green: #55c878;
  --violet: #7d63ff;
  --cyan: #3ed6c4;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background: #121821;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.page-backdrop {
  position: fixed;
  inset: -36px;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(10, 14, 20, 0.28), rgba(22, 46, 58, 0.38)),
    url("assets/docx/image51.jpeg");
  background-size: cover;
  background-position: center;
  filter: blur(38px);
  pointer-events: none;
  transform: scale(1.04);
}

.page-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.16);
}

.link-shell {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 14px 32px;
  background: #000;
  box-shadow: var(--shadow);
}

.profile-hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #050505;
}

.profile-photo {
  position: absolute;
  inset: 0 0 118px;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.94) 100%),
    url("assets/docx/image53.jpeg");
  background-size: cover;
  background-position: center;
}

.profile-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 22px 28px;
  text-align: center;
}

.profile-logo {
  width: 78px;
  height: 78px;
  margin-bottom: 14px;
  object-fit: contain;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #fff;
}

.profile-overlay h1 {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.profile-handle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 700;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin-top: 15px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
}

.social-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-icons svg,
.corner-icon svg,
.email-card svg,
.contact-row svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.slogan {
  margin: 18px 0 0;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.quick-connect {
  padding: 18px 10px 16px;
  background: #000;
}

.connect-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 7px 8px 7px 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #9aa2ae;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.connect-pill > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: #999;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.connect-pill img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.email-strip {
  display: grid;
  padding: 0 10px 18px;
  background: #000;
}

.link-stack {
  display: grid;
  gap: 14px;
  padding: 0 10px 18px;
  background: #000;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  position: relative;
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: #111;
  isolation: isolate;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}

.link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.78));
}

.link-card-wide {
  min-height: 192px;
}

.data-hero-card::before {
  background-image: url("assets/docx/image52.jpeg");
}

.advantages-card::before {
  background-image: url("assets/docx/image48.png");
  background-size: 122%;
}

.portfolio-card::before {
  background-image: url("assets/docx/image49.png");
  background-color: #f8f8f8;
  background-size: 170%;
}

.community-card::before {
  background-image: url("assets/docx/image50.png");
  background-color: #fff;
  background-size: 180%;
}

.telegram-card::before {
  background-image: url("assets/docx/image53.jpeg");
}

.corner-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
}

.link-card strong {
  width: 100%;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  overflow-wrap: anywhere;
}

.two-col .link-card strong {
  font-size: 18px;
}

.email-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 14px 20px;
  border-radius: 18px;
  background: #171717;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.email-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.data-panel,
.performance-panel {
  margin: 0 10px 16px;
  padding: 24px 18px;
  border-radius: 18px;
}

.data-panel {
  background: #101b2d;
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.data-panel h2,
.performance-panel h2,
.consult-modal h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.advantage-grid article {
  min-width: 0;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 12px;
  border: 1px solid rgba(216, 179, 77, 0.22);
  border-radius: 12px;
  background: #0c1626;
  text-align: center;
}

.advantage-grid svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.advantage-grid span {
  max-width: 100%;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.advantage-grid strong {
  max-width: 100%;
  color: var(--gold);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 18px;
  line-height: 1.26;
  overflow-wrap: anywhere;
}

.advantage-grid small {
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.performance-panel {
  background: #182844;
  color: #111827;
}

.performance-panel h2 {
  color: #fff;
}

.performance-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.community-grid {
  margin-top: 12px;
}

.performance-grid article,
.community-grid article {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
  box-shadow: 0 10px 22px rgba(5, 12, 24, 0.22);
}

.performance-grid span,
.community-grid span {
  color: #586273;
  font-size: 13px;
  font-weight: 850;
}

.performance-grid strong {
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}

.community-grid strong {
  color: var(--violet);
  font-size: 28px;
  line-height: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.consult-modal {
  position: relative;
  width: min(430px, 100%);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 28px 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 27, 45, 0.94), rgba(20, 35, 58, 0.96)),
    url("assets/docx/image51.jpeg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.54);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  cursor: pointer;
}

.modal-close svg {
  width: 19px;
  height: 19px;
}

.consult-copy {
  margin: -2px auto 22px;
  max-width: 390px;
  color: #c9d1dd;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
  text-align: center;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: #dce4ef;
  font-size: 13px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 13px 15px;
}

.lead-form select option {
  color: #111827;
}

.lead-form textarea {
  min-height: 112px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 179, 77, 0.18);
}

.submit-button {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #121212;
  cursor: pointer;
  font-weight: 900;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.form-status.error {
  color: #ff9a8d;
}

.contact-row {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 12px;
  border: 1px solid rgba(216, 179, 77, 0.38);
  border-radius: 50px;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.contact-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-footer {
  padding: 2px 10px 18px;
  text-align: center;
}

.page-footer a {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 560px) {
  .link-shell {
    width: 100%;
    max-width: 100%;
    padding: 0 0 24px;
  }

  .profile-hero {
    min-height: 590px;
    border-radius: 0;
  }

  .profile-overlay h1 {
    font-size: 28px;
  }

  .connect-pill {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .connect-pill img {
    display: none;
  }

  .pill-action {
    display: none;
  }

  .two-col,
  .advantage-grid,
  .performance-grid,
  .community-grid {
    gap: 10px;
  }

  .link-card {
    min-height: 124px;
    padding: 16px 12px;
  }

  .link-card-wide {
    min-height: 180px;
  }

  .link-card strong {
    font-size: 20px;
  }

  .advantage-grid strong {
    font-size: 16px;
  }

  .data-panel,
  .performance-panel {
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media (max-width: 430px) {
  .connect-pill {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .connect-pill img {
    display: none;
  }

  .pill-action {
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .profile-hero {
    min-height: 560px;
  }

  .connect-pill {
    grid-template-columns: minmax(0, 1fr);
  }

  .pill-action {
    display: none;
  }

  .profile-overlay h1 {
    font-size: 28px;
  }

  .advantage-grid,
  .performance-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }
}
