:root {
  --bg: #070910;
  --panel: rgba(17, 21, 34, .78);
  --panel-solid: #111522;
  --panel-soft: #171c2b;
  --line: rgba(255,255,255,.09);
  --text: #f4f6fb;
  --muted: #9da6b8;
  --accent: #8c6cff;
  --accent-2: #30d8ff;
  --success: #61e6ac;
  --danger: #ff6685;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --radius: 24px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }

.public-page { overflow-x: hidden; }
.public-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.ambient { position: fixed; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .16; }
.ambient-one { background: #7650ff; left: -180px; top: 70px; }
.ambient-two { background: #00c8ff; right: -220px; top: 380px; }

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 25px rgba(106, 86, 255, .35);
}
.topnav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
.topnav a { transition: color .2s ease; }
.topnav a:hover { color: var(--text); }

.hero { padding-top: 26px; }
.hero-card {
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 58px;
  background:
    radial-gradient(circle at 76% 16%, rgba(76,219,255,.2), transparent 30%),
    radial-gradient(circle at 18% 30%, rgba(130,87,255,.27), transparent 35%),
    linear-gradient(135deg, #15182a 0%, #0c101b 62%, #101522 100%);
  box-shadow: var(--shadow);
}
.hero-card.has-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,9,16,.96) 0%, rgba(7,9,16,.75) 52%, rgba(7,9,16,.35) 100%), var(--hero-image) center / cover;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.25), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 80% 30%, black 0, transparent 58%);
}
.hero-content { display: flex; align-items: center; gap: 34px; position: relative; z-index: 2; }
.avatar-wrap { position: relative; flex: 0 0 auto; }
.avatar {
  width: 154px; height: 154px; border-radius: 31px; object-fit: cover;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 18px 55px rgba(0,0,0,.42);
}
.avatar-placeholder {
  display: grid; place-items: center; font-size: 62px; font-weight: 900;
  background: linear-gradient(135deg, #6f4eff, #25d3ff);
}
.presence {
  position: absolute; right: -5px; bottom: 9px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--success); border: 5px solid #121625;
  box-shadow: 0 0 20px rgba(97,230,172,.6);
}
.eyebrow, .section-heading p, .kicker {
  margin: 0 0 10px; color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: .18em;
}
.hero h1 { margin: 0; font-size: clamp(54px, 7vw, 94px); line-height: .94; letter-spacing: -.065em; }
.real-name { margin: 12px 0 0; color: #d3d8e5; font-size: 20px; font-weight: 650; }
.tagline { margin: 8px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 24px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 25px; color: #c5cbd8; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.status-line {
  position: absolute; z-index: 2; right: 34px; bottom: 28px; max-width: 330px;
  display: flex; gap: 10px; align-items: center; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(7,9,16,.55); backdrop-filter: blur(12px);
  font-size: 12px; color: #d7dbe6;
}
.status-line span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }

.section-space { margin-top: 32px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 24px; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
}
.about-panel { padding: 38px; }
.links-panel { padding: 32px; align-self: start; }
.section-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.section-heading.compact { margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.035em; }
.section-heading p { margin-bottom: 5px; }
.section-index {
  width: 44px; height: 44px; border: 1px solid rgba(138,108,255,.35); border-radius: 14px;
  display: grid; place-items: center; color: #a891ff; font-size: 12px; font-weight: 800;
  background: rgba(125,92,255,.08);
}
.bio { margin: 0; color: #c5cbd8; font-size: 18px; line-height: 1.8; white-space: pre-line; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; margin-top: 30px; }
.fact-card {
  display: flex; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 17px;
  background: rgba(255,255,255,.025);
}
.fact-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: rgba(129,96,255,.12); color: #a993ff; }
.fact-card span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.fact-card strong { display: block; font-size: 14px; line-height: 1.4; }
.social-list { display: grid; gap: 10px; }
.social-link {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.social-link:hover { transform: translateY(-2px); background: rgba(255,255,255,.055); border-color: rgba(137,107,255,.38); }
.social-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #b7a7ff; background: rgba(126,92,255,.11); }
.arrow { color: var(--muted); font-size: 18px; }
.muted { color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 110px; grid-auto-flow: dense; gap: 15px; }
.gallery-item {
  grid-column: span 4; grid-row: span 3; border: 0; padding: 0; overflow: hidden; border-radius: 20px;
  cursor: zoom-in; position: relative; background: var(--panel-solid);
}
.gallery-item--wide { grid-column: span 7; }
.gallery-item--medium { grid-column: span 5; }
.gallery-item--normal { grid-column: span 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.gallery-item:hover img { transform: scale(1.035); filter: brightness(.8); }
.gallery-item span { position: absolute; left: 18px; right: 18px; bottom: 16px; text-align: left; font-size: 14px; font-weight: 700; text-shadow: 0 2px 16px #000; opacity: 0; transform: translateY(8px); transition: .25s ease; }
.gallery-item:hover span { opacity: 1; transform: none; }

.footer { min-height: 100px; display: flex; justify-content: space-between; align-items: center; color: #697286; font-size: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 34px; background: rgba(3,4,8,.92); backdrop-filter: blur(16px); }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); max-height: 88vh; }
.lightbox img { max-height: 82vh; border-radius: 18px; box-shadow: var(--shadow); }
.lightbox figcaption { text-align: center; margin-top: 12px; color: #d8dce7; }
.lightbox-close { position: fixed; right: 25px; top: 18px; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #171b28; font-size: 29px; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

.button {
  border: 0; border-radius: 12px; padding: 11px 17px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.button.primary { background: linear-gradient(135deg, var(--accent), #5f82ff); color: white; box-shadow: 0 10px 24px rgba(109,80,255,.24); }
.button.secondary { background: #252b3b; border: 1px solid var(--line); }
.button.danger { background: rgba(255,102,133,.12); color: #ff8ba3; border: 1px solid rgba(255,102,133,.2); }
.button.wide { width: 100%; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.error-card { width: min(520px, 100%); text-align: center; padding: 50px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); }
.error-card > span { font-size: 80px; font-weight: 900; color: var(--accent); }
.error-card h1 { margin: 10px 0 28px; }

@media (max-width: 880px) {
  .topnav { display: none; }
  .hero-card { min-height: 500px; padding: 36px; }
  .hero-content { align-items: flex-start; flex-direction: column; }
  .status-line { left: 36px; right: auto; bottom: 25px; max-width: calc(100% - 72px); }
  .content-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 12; grid-row: span 4; }
  .gallery-item--medium, .gallery-item--normal { grid-column: span 6; }
}
@media (max-width: 560px) {
  :root { --shell: min(100% - 24px, 1180px); }
  .topbar { min-height: 68px; }
  .hero { padding-top: 10px; }
  .hero-card { min-height: 520px; padding: 25px; border-radius: 24px; }
  .avatar { width: 116px; height: 116px; border-radius: 24px; }
  .hero h1 { font-size: 53px; }
  .status-line { left: 25px; max-width: calc(100% - 50px); }
  .about-panel, .links-panel { padding: 24px; }
  .gallery-grid { grid-auto-rows: 90px; gap: 10px; }
  .gallery-item--wide { grid-column: span 12; grid-row: span 3; }
  .gallery-item--medium { grid-column: span 12; grid-row: span 4; }
  .gallery-item--normal { grid-column: span 12; grid-row: span 5; }
  .footer { align-items: flex-start; justify-content: center; flex-direction: column; gap: 8px; }
}

/* Telegram contact form */
.contact-section { scroll-margin-top: 24px; }
.contact-panel {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 34px;
  padding: 36px;
  overflow: hidden;
  position: relative;
}
.contact-panel::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  left: -180px;
  bottom: -210px;
  border-radius: 50%;
  background: rgba(48,216,255,.12);
  filter: blur(65px);
  pointer-events: none;
}
.contact-copy, .contact-form { position: relative; z-index: 1; }
.contact-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.contact-lead { margin: 0; color: #c9cfdb; font-size: 20px; line-height: 1.65; white-space: pre-line; }
.contact-route {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.contact-route-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #91e7ff;
  background: rgba(48,216,255,.11);
}
.contact-route strong, .contact-route span { display: block; }
.contact-route strong { margin-bottom: 4px; font-size: 14px; }
.contact-route div > span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.contact-form { display: grid; gap: 15px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.contact-fields label { color: #d8dce7; font-size: 12px; font-weight: 700; }
.contact-fields label > span { margin-left: 4px; color: #737d90; font-weight: 500; }
.contact-fields input, .contact-fields textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  outline: none;
  background: rgba(6,9,16,.72);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-fields input:focus, .contact-fields textarea:focus {
  border-color: rgba(140,108,255,.72);
  box-shadow: 0 0 0 4px rgba(140,108,255,.11);
  background: rgba(9,12,21,.94);
}
.contact-fields textarea { resize: vertical; min-height: 145px; line-height: 1.55; }
.contact-message-field { grid-column: 1 / -1; position: relative; }
.contact-message-field small { position: absolute; right: 10px; bottom: 10px; color: #687185; font-weight: 500; }
.contact-submit {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #6f63ff, #259fdb);
  box-shadow: 0 12px 28px rgba(72,102,255,.22);
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}
.contact-submit:hover { transform: translateY(-1px); filter: brightness(1.07); }
.contact-submit:disabled { cursor: wait; opacity: .68; transform: none; }
.contact-note { margin: -3px 0 0; text-align: center; color: #687185; font-size: 11px; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.public-flashes { display: grid; gap: 8px; }
.public-flash { padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.035); font-size: 13px; }
.public-flash.success { color: #aaf1ce; border-color: rgba(97,230,172,.3); background: rgba(97,230,172,.07); }
.public-flash.error { color: #ffafbf; border-color: rgba(255,102,133,.32); background: rgba(255,102,133,.07); }

@media (max-width: 880px) {
  .contact-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact-panel { padding: 24px; gap: 25px; }
  .contact-lead { font-size: 17px; }
  .contact-fields { grid-template-columns: 1fr; }
  .contact-message-field { grid-column: auto; }
}
