/* ============================================================
   Eryomin Maksim — Colorist & DoP
   Dark / minimal — по мотивам rmrodrigez.tilda.ws
   ============================================================ */

:root {
  --bg:      #000000;
  --bg-2:    #0a0a0a;
  --surface: #101010;
  --text:    #ffffff;
  --muted:   rgba(255,255,255,.52);
  --muted-2: rgba(255,255,255,.34);
  --line:    rgba(255,255,255,.14);
  --tg:      #2aabee;
  --maxw:    1320px;
  --pad:     clamp(20px, 5vw, 72px);
  --radius:  6px;
  --ease:    cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #000; }

.round { font-family: "Comfortaa", "Manrope", sans-serif; }

/* ============================================================
   TOP BAR — Telegram виден всегда
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--pad);
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.topbar.scrolled {
  padding-top: 13px; padding-bottom: 13px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.topbar__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar__brand {
  font-family: "Comfortaa", sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
}
.topbar__sep { color: var(--muted-2); font-weight: 300; }
.made-by {
  font-size: 12px; font-weight: 600;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.made-by:hover { color: var(--tg); }

.tg-link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text);
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.tg-link:hover { background: #fff; color: #000; border-color: #fff; transform: translateY(-1px); }
.tg-link svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* ============================================================
   HERO — центрированный, круглый портрет
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px var(--pad) 90px;
}
.hero__avatar {
  width: clamp(220px, 28vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 46px;
  background: #000;
  animation: avatarIn 1.1s var(--ease) both;
}
.hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
@keyframes avatarIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

.hero__name {
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: -.01em;
}
.hero__kicker {
  font-size: 12px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero__role {
  margin-top: 24px;
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 600;
}
.hero__role-ru { color: var(--muted); font-size: 15px; font-weight: 500; margin-top: 6px; }
.hero__contact {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 600;
  color: var(--text);
}
.hero__contact a { transition: color .3s var(--ease); }
.hero__contact a:hover { color: var(--tg); }
.hero__contact .sep { color: var(--muted-2); font-weight: 400; }
.hero__cta {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.hero__cta:hover { gap: 20px; border-color: #fff; }
.hero__cta .arr { transition: transform .3s var(--ease); }
.hero__cta:hover .arr { transform: translateY(3px); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(80px, 12vh, 168px) var(--pad); position: relative; }
.wrap { max-width: var(--maxw); margin-inline: auto; }

.section-label {
  display: block;
  font-size: 12px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-title {
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(34px, 5.2vw, 72px);
  font-weight: 700; line-height: 1;
}
.section-note { color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 14px; }

/* ---------- About ---------- */
.about { text-align: center; }
.about__inner { max-width: 940px; margin-inline: auto; }
.about__q {
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(32px, 5.2vw, 74px);
  font-weight: 700; line-height: 1.04;
  margin-bottom: 34px;
}
.about__q em { font-style: normal; color: var(--muted); }
.about__body {
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.55; font-weight: 500;
  color: var(--muted);
  max-width: 820px; margin-inline: auto;
}
.about__body b { color: var(--text); font-weight: 700; }

/* ============================================================
   WORKS — сетка кадров 2 колонки (клик → на весь экран)
   ============================================================ */
.photogrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.8vw, 24px);
}
.pcell {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;   /* полный кадр — зашитый леттербокс сливается с чёрным фоном */
  background: #000;
  cursor: zoom-in;
}
.pcell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.pcell:hover img { transform: scale(1.04); }
.pcell--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

/* ============================================================
   VIDEOS
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.vcard {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: #0c0c0c;
}
.vcard--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.vcard video, .vcard img { width: 100%; height: 100%; object-fit: cover; }
.vcard__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.05));
  transition: background .4s var(--ease);
}
.vcard__overlay:hover { background: linear-gradient(to top, rgba(0,0,0,.3), rgba(0,0,0,0)); }
.play {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.vcard__overlay:hover .play { transform: scale(1.08); background: rgba(255,255,255,.22); }
.play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.vcard__title {
  position: absolute; left: 18px; bottom: 15px; z-index: 3;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.7); pointer-events: none;
}
.vcard--ph {
  display: grid; place-items: center;
  background: var(--surface); border: 1px dashed var(--line);
}
.vcard--ph .ph-label {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: clamp(90px, 14vh, 190px) var(--pad) 56px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer__title {
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(34px, 5.6vw, 82px);
  font-weight: 700; line-height: 1.02;
  margin-bottom: 20px;
}
.footer__sub { color: var(--muted); font-size: 17px; margin-bottom: 42px; }

.footer__buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 16px 32px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn--tg { background: #fff; color: #000; }
.btn--tg:hover { transform: translateY(-3px); background: var(--tg); color: #fff; }
.btn--phone { border: 1px solid var(--line); color: var(--text); }
.btn--phone:hover { transform: translateY(-3px); border-color: #fff; background: rgba(255,255,255,.05); }

.footer__meta {
  margin-top: 64px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  color: var(--muted-2); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.footer__meta a:hover { color: var(--text); }

.footer__credit {
  margin-top: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.credit-line { width: 46px; height: 1px; background: var(--line); }
.credit-text {
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  color: var(--muted-2);
}
.credit-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); }
.btn-ghost svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(0,0,0,.96);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 4px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.lightbox__close {
  position: absolute; top: clamp(14px,2vw,26px); right: clamp(16px,2vw,30px);
  width: 46px; height: 46px;
  background: none; border: none; color: #fff;
  font-size: 40px; line-height: 1; cursor: pointer;
  opacity: .8; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.lightbox__close:hover { opacity: 1; transform: scale(1.1); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .video-grid, .photogrid { grid-template-columns: 1fr; }
  .vcard--wide { aspect-ratio: 16 / 9; }
  .hero__name { font-size: clamp(40px, 13vw, 72px); }
}
@media (max-width: 640px) {
  .topbar__left { flex-direction: column; align-items: flex-start; gap: 2px; }
  .topbar__sep { display: none; }
  .topbar__left .made-by { font-size: 10.5px; letter-spacing: .04em; }
  .topbar { padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .tg-link span { display: none; }
  .tg-link { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
