/* ============================================================
   ARSENIY FURSOV — PORTFOLIO
   Dark warm theme · Orange accent · Comic layout
   ============================================================ */

:root {
  --bg: #1c1a17;
  --bg-alt: #211f1b;
  --panel: #26231f;
  --panel-2: #2d2a25;
  --text: #ece7df;
  --muted: #8f887c;
  --accent: #FB923C;
  --accent-2: #6D7BF7;
  --border: rgba(236, 231, 223, 0.10);
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(1240px, 92%); margin: 0 auto; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(28, 26, 23, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.12em; font-size: 13px;
  color: var(--text); text-decoration: none;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--muted); text-decoration: none;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  transition: color .2s;
}
.nav__links a:hover { color: var(--accent); }
.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); }

/* ============================================================
   БАЗОВАЯ ПАНЕЛЬ
   ============================================================ */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  transition: border-color .25s, transform .25s;
}
.panel:hover { border-color: rgba(251, 146, 60, 0.4); }

.panel__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.panel__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.panel__text { color: var(--muted); font-size: 16px; max-width: 480px; margin-bottom: 28px; }
.panel__label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  display: block; margin-bottom: 8px;
}
.panel__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   HERO: ДОМИНАНТА + СПУТНИКИ
   ============================================================ */
.hero {
  position: relative;
  padding: 140px 0 60px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 560px; height: 560px;
  background: var(--accent);
  top: -180px; right: -120px;
  opacity: 0.14;
}
.hero__glow--2 {
  width: 460px; height: 460px;
  background: var(--accent-2);
  bottom: -100px; left: -140px;
  opacity: 0.12;
}
.hero__glow--3 {
  width: 300px; height: 300px;
  background: var(--accent);
  top: 40%; left: 35%;
  opacity: 0.07;
}

/* Сцена */
.hero__stage {
  position: relative;
  padding: 80px 0 120px;
  min-height: 640px;
}

/* Доминанта */
.panel--main {
  width: min(680px, 68%);
  margin: 0 auto;
  padding: 56px 48px;
  background: var(--panel);
  box-shadow: 0 40px 100px rgba(0,0,0,0.35);
  z-index: 2;
}

/* Все спутники — абсолютные */
.satellite {
  position: absolute;
  z-index: 3;
  background: var(--panel-2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Фото — круг, торчит слева сверху */
.panel--photo {
  top: 40px;
  left: 0;
  width: 200px;
  height: 200px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.panel--photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%) contrast(1.05); }

/* Анимация — торчит справа, вертикальная */
.panel--anim {
  top: 0;
  right: 0;
  width: 220px;
  height: 300px;
  padding: 0;
  overflow: hidden;
}
.panel--anim .media-video,
.panel--anim canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.panel--anim .panel__label {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  text-align: center;
  z-index: 2;
}

/* Цифры */
.panel--stat {
  display: flex; flex-direction: column; justify-content: center;
  text-align: left;
}
.panel--stat strong {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 700; color: var(--accent);
  line-height: 1;
}
.panel--stat span {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 8px;
}

/* 15 лет — слева, торчит */
.panel--stat-years {
  top: 46%;
  left: 4%;
  width: 160px;
}

/* 100+ проектов — снизу по центру, наезжает */
.panel--stat-projects {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  background: var(--accent);
  border-color: var(--accent);
}
.panel--stat-projects strong { color: #1c1a17; }
.panel--stat-projects span { color: rgba(28,26,23,0.7); }

/* Инструменты — справа снизу */
.panel--tools {
  bottom: 60px;
  right: 2%;
  width: 220px;
}
.panel--tools p { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.panel--tools .muted {
  font-size: 12px; color: var(--muted);
  font-family: var(--font-mono); margin-top: 8px; font-weight: 400;
}

/* NDA — слева снизу */
.panel--nda {
  bottom: 40px;
  left: 6%;
  width: 160px;
}
.panel--nda p { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--accent); }

.hero__meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: #1c1a17; }
.btn--primary:hover { background: #ffa95c; transform: translateY(-2px); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 120px 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.section__head { margin-bottom: 24px; position: relative; z-index: 5; }
.section__num {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.1em;
  display: block; margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.section__note {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted); letter-spacing: 0.06em;
}

/* ============================================================
   СЦЕНЫ (доминанта + спутники)
   ============================================================ */
.stage {
  position: relative;
  padding: 60px 0 100px;
}

/* --- УСЛУГИ --- */
.stage--services { min-height: 420px; }

.panel--service-main {
  width: min(560px, 58%);
  margin: 0 auto;
  padding: 44px 40px;
  z-index: 2;
}
.panel--service-main h3 {
  font-family: var(--font-display);
  font-size: 32px; color: var(--accent); margin-bottom: 16px;
}
.panel--service-main p { font-size: 15px; color: var(--muted); }

.panel--service h3 {
  font-family: var(--font-display);
  font-size: 20px; margin-bottom: 10px; color: var(--accent);
}
.panel--service p { font-size: 13px; color: var(--muted); }

.panel--service.satellite { width: 230px; }
.stage--services .panel--service.satellite:nth-of-type(2) {
  top: 0; left: 2%;
}
.stage--services .panel--service.satellite:nth-of-type(3) {
  top: 60px; right: 2%;
}
.panel--service-anim {
  bottom: 0; right: 8%;
  width: 260px;
}

/* --- КЕЙСЫ --- */
.stage--cases { min-height: 560px; }

.case--main {
  width: min(620px, 62%);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  z-index: 2;
}
.case--main .case__thumb { aspect-ratio: 16/10; }

.case__thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a2723, #322e29);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.case__body { padding: 24px; }
.case__tag {
  font-family: var(--font-mono);
  color: var(--accent); font-size: 11px; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.case__body h3 {
  font-family: var(--font-display);
  font-size: 20px; margin-bottom: 12px;
}
.case__body p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.case__role {
  color: var(--text) !important;
  font-size: 12px !important;
  font-family: var(--font-mono);
}

.case.satellite {
  width: 270px;
  padding: 0;
  overflow: hidden;
}
.case--sat-1 { top: -30px; left: -20px; }
.case--sat-2 { bottom: -40px; right: -20px; }

/* --- КУРЬЕР --- */
.stage--project { min-height: 580px; }

.project__main {
  width: min(600px, 60%);
  margin: 0 auto;
  padding: 44px 40px;
  background: var(--accent);
  border-color: var(--accent);
  z-index: 2;
}
.project__slogan {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; line-height: 1.1;
  color: #1c1a17;
  margin-bottom: 24px;
}
.project__desc {
  font-size: 15px; color: rgba(28,26,23,0.8);
  max-width: 480px;
}

.project__frame {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}
.project__frame--1 {
  top: -40px; left: 0;
  width: 200px; height: 130px;
}
.project__frame--2 {
  top: -60px; right: 2%;
  width: 180px; height: 140px;
}
.project__frame--3 {
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 150px;
}
.project__text {
  bottom: -20px; left: 2%;
  width: 280px;
}
.project__text p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

.link {
  color: var(--accent); text-decoration: none;
  font-family: var(--font-mono); font-size: 13px;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.link:hover { border-color: var(--accent); }

/* --- ABOUT --- */
.stage--about { min-height: 420px; }

.about__main {
  width: min(620px, 62%);
  margin: 0 auto;
  padding: 44px 40px;
  z-index: 2;
}
.about__main p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }

.about__photo {
  top: 40px; right: 0;
  width: 220px; height: 280px;
  padding: 0;
  overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }

/* --- КОНТАКТЫ --- */
.stage--contact { min-height: 360px; }

.contact__main {
  width: min(560px, 58%);
  margin: 0 auto;
  padding: 44px 40px;
  z-index: 2;
}
.contact__main p {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500; line-height: 1.35;
}

.contact__item {
  width: 240px;
  display: flex; flex-direction: column; justify-content: center;
  text-decoration: none; color: var(--text);
  min-height: 110px;
}
.stage--contact .contact__item:nth-of-type(2) { top: -20px; left: 0; }
.stage--contact .contact__item:nth-of-type(3) { top: 40px; right: 0; }
.stage--contact .contact__item:nth-of-type(4) {
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  width: 300px;
}
.contact__item strong {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  transition: color .2s;
}
.contact__item:hover strong { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em;
}
.footer__hidden { color: var(--bg); text-decoration: none; }

/* ============================================================
   МЕДИА
   ============================================================ */
.media-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.panel img,
.panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Если в .case__thumb и .project__frame нет медиа */
.case__thumb:empty::after,
.project__frame:empty::after {
  content: 'media soon';
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  /* Сцены: убираем абсолютное позиционирование, всё в колонку */
  .hero__stage,
  .stage {
    padding: 0;
    min-height: 0;
  }

  .panel--main,
  .panel--service-main,
  .case--main,
  .project__main,
  .about__main,
  .contact__main {
    width: 100%;
    margin: 0 0 16px;
    padding: 32px 24px;
  }

  .satellite,
  .stage > .panel {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    margin-bottom: 16px;
  }

  .panel--photo,
  .panel--anim,
  .about__photo {
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
  }
  .panel--photo {
    max-width: 220px;
    aspect-ratio: 1;
    border-radius: 50%;
    margin: 0 auto 16px;
  }

  .panel--stat-years,
  .panel--stat-projects { transform: none !important; }

  .hero__meta { font-size: 10px; }
  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
}
