/* =========================================================
   Примерка оформления LUNIMA поверх личного сайта:
   Y2K в жидком хроме на графите, Tektur + Montserrat,
   хромовые кнопки, красно-голубая аберрация по краям хрома
   ========================================================= */
@font-face { font-family: "Tektur"; src: url("fonts/Tektur.ttf"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat.ttf"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #15171C; --fg: #D7DCE4; --red: #ff3250;
  --cyan: rgba(60, 200, 255, .55); --red-ab: rgba(255, 50, 80, .55);
  --muted: #A6ACB8;
  --wash: radial-gradient(120% 90vh at 70% -10vh, #2C313B 0%, #1A1D23 46%, #111317 100%);
  --metal: linear-gradient(180deg, #FFFFFF 0%, #D9DDE4 28%, #B9BFCA 46%, #6B7280 54%, #9AA1AD 66%, #E4E7EC 100%);
  --chrome-h: linear-gradient(100deg, #6B7280 0%, #E4E7EC 22%, #FFFFFF 34%, #B9BFCA 50%, #6B7280 64%, #E4E7EC 86%, #FFFFFF 100%);
  --glass: rgba(215, 220, 228, .05); --glass-edge: rgba(215, 220, 228, .16); --glass-top: rgba(255, 255, 255, .12);
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --head: "Tektur", "Rubik", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
body { background: #111317 var(--wash) no-repeat; }

/* цветные пятна гасим почти до нуля: у LUNIMA графит без ореолов */
.aura { opacity: .07 !important; filter: saturate(.3); }

/* ── заголовки: Tektur, курсив, капс, хром с аберрацией ── */
h1, h2, .tile b, .credit-head b, .stat .num, .step b, .mentor b, .track span,
.skill-card h3, .bubble, .contacts h2, .view-top b, .episode figcaption {
  font-family: var(--head) !important; font-style: italic; text-transform: uppercase; letter-spacing: -.01em;
}
h1 { font-weight: 900; font-size: clamp(32px, 4.9vw, 78px); line-height: .98; }
h2 { font-weight: 900; font-size: clamp(36px, 6vw, 96px); line-height: .95; }
h1 .line > i, .metal, .stat .num {
  background-image: var(--metal) !important; background-size: 100% 100% !important; animation: none !important;
  filter: drop-shadow(-1px 0 0 var(--red-ab)) drop-shadow(1px 0 0 var(--cyan)) drop-shadow(0 2px 6px rgba(0,0,0,.45));
}
h1 .line > i { animation: rise .9s var(--ease) forwards !important; animation-delay: calc(var(--i) * 90ms) !important;
  padding-right: .12em; }
h1 .line > i.plain { background: none !important; color: rgba(215, 220, 228, .28); filter: none; }
h2 .metal { padding: .1em .2em .14em .04em; }
.tile b { font-weight: 800; font-size: clamp(16px, 1.4vw, 21px); }
.credit-head b { font-weight: 900; }
.step b, .mentor b { font-weight: 800; }

/* метки разделов «(02) Обо мне» — разреженный Tektur с хромовой чертой */
section > span.tag, .marquee .tag {
  font: 600 12px/1 var(--head) !important; letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 14px;
}
section > span.tag::before { content: ""; width: 36px; height: 1px; background: var(--chrome-h); }
.marquee .tag { letter-spacing: .24em; font-size: 10px !important; }

/* ── шапка ── */
nav.glass { background: rgba(21, 23, 28, .55); border-color: rgba(215, 220, 228, .12); box-shadow: 0 10px 40px -20px #000; }
nav .name { font: italic 900 20px/1 var(--head) !important; text-transform: uppercase; letter-spacing: 0; }
nav .name { color: #8D94A1; }
/* в капсе A и I горят белым хромом с аберрацией, остальное имя приглушено — игра с AI остаётся видна */
nav .name b { color: #fff; text-shadow: -1.5px 0 0 var(--red-ab), 1.5px 0 0 var(--cyan), 0 0 12px rgba(255,255,255,.35); }
nav ul a { font: 500 14px/1 var(--font); color: var(--muted); position: relative; }
nav ul a:hover { background: none; color: #E4E7EC; }
nav ul a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 1px; background: var(--chrome-h);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang { border: 1px solid rgba(215, 220, 228, .18); background: rgba(21, 23, 28, .4); }
.lang button { font-family: var(--head); letter-spacing: .12em; }

/* ── кнопки: вместо красного леденца — хромовая таблетка с бликом ── */
.cta {
  color: #15171C !important; font: 500 15px/1 var(--font) !important; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #FFFFFF 0%, #E4E7EC 40%, #B9BFCA 52%, #D7DCE4 78%, #F4F5F8 100%) !important;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(107,114,128,.6), 0 10px 30px -12px rgba(0,0,0,.8),
              -1px 0 0 var(--red-ab), 1px 0 0 var(--cyan) !important;
}
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s var(--ease); }
.cta:hover::after { transform: translateX(120%); }
.ghost { border: 1px solid rgba(215,220,228,.28) !important; background: rgba(21,23,28,.35) !important; box-shadow: none !important; }

/* наклейка «это я» и круглая надпись */
.note { color: #15171C; font-family: var(--head); font-style: italic; text-transform: uppercase; letter-spacing: .04em; font-size: 13px;
  background: linear-gradient(180deg, #fff, #B9BFCA 52%, #E4E7EC);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(107,114,128,.6), 0 10px 24px rgba(0,0,0,.45), -1px 0 0 var(--red-ab), 1px 0 0 var(--cyan); }
.badge text { font-family: var(--head); font-size: 11.5px; letter-spacing: .1em; fill: var(--muted); }
.badge-star { color: #fff; filter: drop-shadow(-1px 0 0 var(--red-ab)) drop-shadow(1px 0 0 var(--cyan)) drop-shadow(0 0 10px rgba(255,255,255,.4)); }
.photo { box-shadow: 0 0 0 1px rgba(228,231,236,.14), 0 40px 90px -40px #000, -1px 0 0 var(--red-ab), 1px 0 0 var(--cyan); }

/* блик-звёздочка над заголовком первого экрана */
h1 { position: relative; }
h1::before, h1::after {
  content: ""; position: absolute; width: 30px; height: 30px; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 0 C21 15 25 19 40 20 C25 21 21 25 20 40 C19 25 15 21 0 20 C15 19 19 15 20 0Z' fill='white'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: twinkle 5s var(--ease) infinite;
}
h1::before { left: -10px; top: -8px; }
h1::after { right: 18%; top: 44%; width: 20px; height: 20px; animation-delay: 2.4s; }
@keyframes twinkle {
  0%, 62%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  70% { opacity: 1; transform: scale(1) rotate(45deg); }
  82% { opacity: 0; transform: scale(.3) rotate(90deg); }
}

/* ── бегущая строка: хромовый курсив, артисты — контур ── */
.marquee.glass { background: linear-gradient(180deg, #121419, #15171C); border-color: rgba(215,220,228,.12); box-shadow: none; transform: none; }
.track span { font-weight: 900; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .3em; }
.track.alt span { background: none; -webkit-text-stroke: 1px rgba(215,220,228,.55); }
.track span::after { color: #fff; -webkit-text-stroke: 0; }

/* ── карточки и стекло: фаска, блик сверху, аберрация при наведении ── */
.tile, .stat, .step, .mentor, .skill-card, .links a {
  box-shadow: 0 0 0 1px rgba(228,231,236,.10), inset 0 1px 0 rgba(255,255,255,.07) !important;
}
.tile:hover, .stat:hover, .links a:hover {
  box-shadow: 0 0 0 1px rgba(228,231,236,.22), inset 0 1px 0 rgba(255,255,255,.1), 0 30px 60px -30px #000,
              -1px 0 0 var(--red-ab), 1px 0 0 var(--cyan) !important;
}
.chip { font-family: var(--font); background: rgba(21,23,28,.55); border-color: rgba(215,220,228,.2); }
.filters button[aria-pressed="true"] { background: linear-gradient(180deg, #FFFFFF 0%, #E4E7EC 40%, #B9BFCA 52%, #D7DCE4 78%, #F4F5F8 100%) !important;
  color: #15171C !important; animation: none !important; box-shadow: inset 0 1px 0 #fff, -1px 0 0 var(--red-ab), 1px 0 0 var(--cyan); }
.stat::before { opacity: .18 !important; filter: saturate(.2); }
.stat .top i, .plus { border-color: rgba(215,220,228,.24); }
.stat:hover .top i, [aria-expanded="true"] .plus { background: linear-gradient(180deg, #fff, #B9BFCA 52%, #E4E7EC) !important;
  border-color: transparent !important; color: #15171C; }
[aria-expanded="true"] .plus::before, [aria-expanded="true"] .plus::after { background: #15171C; }

/* шаги: номера хромом вместо красного */
.step::before { font-family: var(--head); font-style: italic; font-weight: 900; color: transparent;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; padding-right: .1em;
  filter: drop-shadow(-1px 0 0 var(--red-ab)) drop-shadow(1px 0 0 var(--cyan)); }

/* пузыри: красный активный пузырь становится хромовым */
.bubble { font-weight: 800; }
.bubble[aria-pressed="true"] { color: #15171C; border-color: rgba(255,255,255,.7);
  background: radial-gradient(circle at 30% 24%, #fff 0, rgba(255,255,255,.4) 22%, transparent 48%),
              linear-gradient(180deg, #FFFFFF 0%, #D9DDE4 28%, #B9BFCA 46%, #6B7280 60%, #9AA1AD 72%, #E4E7EC 100%) !important;
  box-shadow: inset 0 -18px 34px rgba(40,44,52,.45), inset 0 2px 2px #fff, 0 20px 50px -10px #000,
              -1.5px 0 0 var(--red-ab), 1.5px 0 0 var(--cyan) !important; }
.chips li { font-family: var(--font); }

/* мелочи: боковое меню, приписка «спишь?)», окно просмотра */
.rail a.here i { background: #fff; box-shadow: -1px 0 0 var(--red-ab), 1px 0 0 var(--cyan), 0 0 8px rgba(255,255,255,.6); }
.psst { font-family: var(--font); }
.episode figcaption b { background: linear-gradient(180deg, #fff, #B9BFCA 52%, #E4E7EC); color: #15171C; }
.ink { stroke: #ff3250; }
.lead, .about p + p { color: var(--muted); }

/* курсивные буквы Tektur вылезают за свою рамку, а хром рисуется только внутри неё —
   даём запас справа и тут же возвращаем его отрицательным отступом, чтобы вёрстка не сдвинулась */
h1 .line > i, .metal, .stat .num, .track span, .step::before, h2 .metal, .tile b, .credit-head b,
.mentor b, .contacts h2 .metal, .skill-card h3 span, .bubble span {
  padding-right: .22em !important; margin-right: -.22em;
}
h1 .line { padding-right: .3em; }
.track span { margin-right: 0; }

/* =========================================================
   Арабская версия: справа налево, арабские буквы берутся
   из системных шрифтов устройства (у Tektur и Montserrat их нет)
   ========================================================= */
html[lang="ar"] {
  --head: "Tektur", "Geeza Pro", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --font: "Montserrat", "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] :is(h1, h2, .tile b, .credit-head b, .stat .num, .step b, .mentor b, .track span, .skill-card h3, .bubble,
  .contacts h2, .view-top b, .episode figcaption, nav .name, .note) {
  font-style: normal !important; text-transform: none !important; letter-spacing: 0 !important;
}
html[lang="ar"] h1 { line-height: 1.35; font-size: clamp(30px, 4.4vw, 70px); }
html[lang="ar"] h2 { line-height: 1.3; }
html[lang="ar"] h1 .line { padding-left: .3em; padding-right: 0; }
html[lang="ar"] :is(.credit-head b, .tile b, .step b, .mentor b) { line-height: 1.4; }
html[lang="ar"] section > span.tag, html[lang="ar"] .marquee .tag { letter-spacing: 0 !important; font-size: 13px !important; }
/* то, что должно ехать и листаться слева направо при любом языке */
html[lang="ar"] .marquee, html[lang="ar"] .slides, html[lang="ar"] .lang { direction: ltr; }
html[lang="ar"] .marquee .tag { direction: rtl; }
/* логотип — латиница, поэтому имя и фамилия всегда в обычном порядке */
html[lang="ar"] nav .name { direction: ltr; }
/* капли металла зеркалим, чтобы при письме справа налево они не наезжали на заголовки */
html[dir="rtl"] body > .blob { left: -4vw !important; right: auto !important; }
html[dir="rtl"] #about > .blob { left: 3% !important; right: auto !important; }
html[dir="rtl"] .contacts .blob { right: 4% !important; left: auto !important; }
