/* =========================================================
   KG RAP — сайт артистов кыргызского рэпа
   Цвета: чёрный + золото, акцент — красный флага
   ========================================================= */
:root {
  --bg: #080706;
  --bg-2: #0f0d0b;
  --card: #13110e;
  --line: rgba(212, 175, 55, .22);
  --gold: #d4af37;
  --gold-hi: #f6dc8c;
  --gold-lo: #8d6c1c;
  --text: #f3eee4;
  --muted: #a39b8a;
  --red: #d0142c;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;
  --gold-grad: linear-gradient(180deg, #fbe7a1 0%, #e2bd52 45%, #a9801f 100%);
  --orn: none;            /* орнамент «кочкор мүйүз» — ставится из JS */
  --orn-corner: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--gold); color: #000; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Орнаментная лента ---------- */
.orn-band {
  height: 26px;
  background-image: var(--orn);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  opacity: .9;
}
.orn-band.thin { height: 18px; opacity: .55; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
}
.header.solid {
  background: rgba(8, 7, 6, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; letter-spacing: .04em; }
.logo .sun { width: 40px; height: 40px; }
.logo .label-logo { width: 44px; height: 44px; object-fit: contain; flex: none; }
.logo small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.logo b { font-size: 18px; line-height: 1.1; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--gold-hi); }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  background: rgba(0,0,0,.35);
}
.lang button {
  border: 0; background: none; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted);
}
.lang button.on { background: var(--gold-grad); color: #1a1205; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: none; }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--gold); border-radius: 2px; }

@media (max-width: 820px) {
  .header { padding-top: calc(env(safe-area-inset-top, 0px) + 44px); }
  .header .wrap { height: 64px; gap: 12px; }
  .nav {
    position: fixed; inset: 122px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(8,7,6,.97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px; transform: translateY(-120%); transition: transform .3s, opacity .3s, visibility .3s;
    opacity: 0; visibility: hidden; pointer-events: none;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(212,175,55,.1); font-size: 14px; }
  .lang { margin-left: auto; }
  .burger { display: block; }
  .logo b { font-size: 16px; }
  .logo .sun { width: 34px; height: 34px; }
  .logo .label-logo { width: 38px; height: 38px; }
}

/* ---------- Солнце флага ---------- */
.sun .rays { fill: var(--gold); }
.sun .disc { fill: var(--gold); }
.sun .tunduk { stroke: var(--bg); stroke-width: 2.2; fill: none; }
.sun.outline .rays, .sun.outline .disc { fill: none; stroke: var(--gold); stroke-width: .5; }
.sun.outline .tunduk { stroke: var(--gold); stroke-width: .6; }
.spin { animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- HERO / Афиша ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh);
  display: grid; overflow: hidden; isolation: isolate;
}
/* все слайды в одной ячейке сетки — высота афиши = самый высокий слайд */
.slide {
  position: relative; grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
  display: flex; align-items: center;
}
.slide.on { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(28px) brightness(.45) saturate(1.1); transform: scale(1.1); }
.slide-bg.none { filter: none; transform: none; inset: 0;
  background:
    radial-gradient(60% 70% at 75% 45%, rgba(212,175,55,.22), transparent 70%),
    radial-gradient(40% 50% at 15% 85%, rgba(208,20,44,.16), transparent 70%),
    var(--bg);
}
.slide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,7,6,.92) 0%, rgba(8,7,6,.55) 55%, rgba(8,7,6,.2) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero-sun { position: absolute; z-index: -1; right: -12vw; top: 50%; width: min(78vw, 900px); translate: 0 -50%; opacity: .16; pointer-events: none; }
.slide .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: 110px; padding-bottom: 150px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero-date { display: flex; align-items: baseline; gap: 16px; margin: 22px 0 10px; font-family: var(--f-display); }
.hero-date .d { font-size: clamp(64px, 10vw, 132px); font-weight: 800; line-height: .9; }
.hero-date .m { font-size: clamp(16px, 2vw, 22px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); }
.hero-date .m span { display: block; color: var(--muted); font-size: .7em; letter-spacing: .2em; }
.hero h1, .hero .h1 {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 6.2vw, 86px); line-height: .98; margin: 0 0 18px; letter-spacing: -.01em;
}
.hero .sub { font-size: clamp(16px, 1.6vw, 20px); color: #e4dccb; max-width: 560px; margin: 0 0 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 30px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid var(--gold);
  font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn.primary { background: var(--gold-grad); color: #1a1205; border-color: transparent; box-shadow: 0 10px 40px -10px rgba(212,175,55,.6); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(212,175,55,.8); }
.btn.ghost { background: rgba(0,0,0,.3); color: var(--gold-hi); }
.btn.ghost:hover { background: rgba(212,175,55,.12); }

.poster-card {
  position: relative; justify-self: end; width: min(100%, 420px); aspect-ratio: 3 / 4;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line);
  transform: rotate(2deg); transition: transform .6s;
}
.slide.on .poster-card { animation: posterIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes posterIn { from { opacity: 0; transform: rotate(6deg) translateY(30px) scale(.96); } to { opacity: 1; transform: rotate(2deg); } }
.poster-card img { width: 100%; height: 100%; object-fit: cover; }
.poster-card::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(246,220,140,.45); border-radius: 8px; pointer-events: none; }

/* сгенерированная афиша, если картинки нет */
.gen-poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 34px 28px; text-align: center;
  background:
    radial-gradient(80% 60% at 50% 38%, rgba(212,175,55,.35), transparent 70%),
    linear-gradient(180deg, #1b1409, #070605);
}
.gen-poster .sun { width: 74%; margin: 0 auto; opacity: .95; }
.gen-poster .label-logo { width: 62%; margin: 0 auto; display: block; }
.gen-poster .gp-top { font-size: 11px; font-weight: 700; letter-spacing: .32em; color: var(--gold); text-transform: uppercase; }
.gen-poster .gp-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.05; text-transform: uppercase; }
.gen-poster .gp-date { font-weight: 700; letter-spacing: .2em; color: var(--gold-hi); font-size: 12px; text-transform: uppercase; }
.gen-poster .orn-band { height: 16px; }

.hero-ctrl {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 92px;
}
.hero-ctrl .wrap { display: flex; align-items: center; gap: 18px; }
.dots { display: flex; gap: 10px; }
.dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(246,220,140,.25); overflow: hidden; position: relative; }
.dots button.on::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: fill var(--dur, 7s) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.arrows { margin-left: auto; display: flex; gap: 10px; }
.arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0,0,0,.4); display: grid; place-items: center; transition: border-color .2s, background .2s; }
.arrows button:hover { border-color: var(--gold); background: rgba(212,175,55,.12); }
.arrows svg { width: 18px; height: 18px; stroke: var(--gold-hi); fill: none; stroke-width: 2; }
.count { font-family: var(--f-display); font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.count b { color: var(--gold-hi); }

.mountains { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4; height: clamp(70px, 11vw, 150px); pointer-events: none; }
.mountains svg { width: 100%; height: 100%; display: block; }
.mountains .far { fill: #0c0a08; }
.mountains .near { fill: var(--bg); }
.mountains .ridge { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .55; vector-effect: non-scaling-stroke; }

.hero-empty { margin: auto; text-align: center; padding: 140px var(--gutter) 160px; }

@media (max-width: 900px) {
  .slide .wrap { grid-template-columns: 1fr; padding-top: 136px; padding-bottom: 160px; gap: 28px; text-align: left; }
  .poster-card { order: -1; justify-self: start; width: min(58vw, 270px); transform: rotate(-2deg); }
  @keyframes posterIn { from { opacity: 0; transform: rotate(-5deg) translateY(20px); } to { opacity: 1; transform: rotate(-2deg); } }
  .hero-sun { right: -40vw; top: 30%; width: 130vw; }
  .hero-date { margin-top: 14px; }
  .hero-ctrl { bottom: 78px; }
  .arrows button { width: 40px; height: 40px; }
}
@media (max-width: 520px) {
  .hero { min-height: 100svh; }
  .poster-card { width: min(50vw, 210px); }
  .logo small { display: none; }
  .card .ph { aspect-ratio: 1 / 1; }
  .btn { padding: 14px 22px; font-size: 13px; }
  .btns .btn { flex: 1 1 auto; }
  .count { display: none; }
}

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .kicker { justify-content: center; }
.sec-head .kicker::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.sec-head h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 5vw, 58px); line-height: 1.05; margin: 14px 0 12px; }
.sec-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.sec-head .orn-band { width: min(420px, 80%); margin: 22px auto 0; }

.glow-top::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0%, rgba(212,175,55,.1), transparent 70%);
}

/* ---------- Карточки артистов ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #17140f, #0e0c0a);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(246,220,140,.6); box-shadow: 0 30px 60px -30px rgba(212,175,55,.45); }
.card .ph { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s, filter .8s; filter: grayscale(.25) contrast(1.05); }
.card:hover .ph img { transform: scale(1.06); filter: none; }
.card .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0e0c0a 2%, transparent 45%); }
.card .num { position: absolute; z-index: 2; top: 16px; left: 18px; font-family: var(--f-display); font-size: 13px; color: var(--gold-hi); letter-spacing: .1em; }
.card .body { position: relative; padding: 0 22px 24px; margin-top: -54px; z-index: 2; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--f-display); font-size: clamp(22px, 2.3vw, 28px); font-weight: 800; text-transform: uppercase; margin: 0 0 4px; line-height: 1.1; }
.card .tag { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); }
.card .more svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .3s; }
.card:hover .more svg { transform: translateX(5px); }
.corner { position: absolute; z-index: 3; width: 34px; height: 34px; background-image: var(--orn-corner); background-size: contain; background-repeat: no-repeat; opacity: .8; pointer-events: none; }
.corner.tl { top: 8px; left: 8px; }
.corner.tr { top: 8px; right: 8px; transform: scaleX(-1); }
.corner.bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.corner.br { bottom: 8px; right: 8px; transform: scale(-1, -1); }

/* заглушка вместо фото */
.ph-art {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(70% 55% at 50% 40%, rgba(212,175,55,.22), transparent 70%),
    repeating-linear-gradient(45deg, rgba(212,175,55,.04) 0 2px, transparent 2px 14px),
    #0f0c08;
}
.ph-art .sun { position: absolute; width: 120%; opacity: .14; }
.ph-art .ini { position: relative; font-family: var(--f-display); font-weight: 800; font-size: clamp(54px, 7vw, 92px); letter-spacing: -.02em; }
.ph-art .hint { position: absolute; bottom: 70px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }

/* ---------- Страница артиста ---------- */
.a-hero { position: relative; padding: 130px 0 70px; overflow: hidden; isolation: isolate; }
.a-hero .bg { position: absolute; inset: -60px; z-index: -2; background-size: cover; background-position: center; filter: blur(40px) brightness(.35); }
.a-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 4%, rgba(8,7,6,.6) 60%, rgba(8,7,6,.85)); }
.a-hero .hero-sun { opacity: .1; right: -20vw; }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 34px; transition: color .2s; }
.back:hover { color: var(--gold-hi); }
.back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.a-grid { display: grid; grid-template-columns: minmax(260px, 440px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.a-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 100px -40px rgba(0,0,0,.95); }
.a-photo img { width: 100%; height: 100%; object-fit: cover; }
.a-photo::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(246,220,140,.4); border-radius: 14px; pointer-events: none; }
.a-name { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(42px, 8vw, 104px); line-height: .92; margin: 16px 0 14px; letter-spacing: -.02em; word-break: break-word; }
.a-tag { font-size: clamp(16px, 1.8vw, 20px); color: #e4dccb; margin: 0 0 28px; max-width: 620px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 28px; }
.facts div { background: rgba(12,10,8,.9); padding: 14px 18px; }
.facts dt { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.soc {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.35);
  font-size: 13px; font-weight: 600; transition: border-color .2s, background .2s, transform .2s;
}
.soc:hover { border-color: var(--gold); background: rgba(212,175,55,.1); transform: translateY(-2px); }
.soc svg { width: 20px; height: 20px; fill: var(--gold-hi); }

.a-sec { padding: clamp(48px, 7vw, 90px) 0; border-top: 1px solid rgba(212,175,55,.1); }
.a-sec h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3.6vw, 42px); margin: 10px 0 28px; }
.story { display: grid; grid-template-columns: 1fr minmax(0, 720px); gap: clamp(24px, 5vw, 72px); }
.story-side { position: sticky; top: 100px; align-self: start; }
.story-side .sun { width: 160px; opacity: .85; }
.story-text p { font-size: clamp(16px, 1.4vw, 18px); color: #ddd5c4; margin: 0 0 1.2em; }
.story-text p:first-child::first-letter {
  font-family: var(--f-display); font-weight: 800; float: left; font-size: 4.2em; line-height: .85; margin: .06em .12em 0 0;
  color: var(--gold);
}
.quote { margin: 28px 0 0; padding: 22px 26px; border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(212,175,55,.08), transparent); font-style: italic; color: var(--gold-hi); border-radius: 0 12px 12px 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--card); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.06); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } .gallery button:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; } }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt button, .yt .yt-link { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: #000; }
.yt button img, .yt .yt-link img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s, transform .6s; }
.yt button:hover img, .yt .yt-link:hover img { opacity: 1; transform: scale(1.03); }
.yt .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 74px; height: 74px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0,0,0,.6); transition: transform .3s; }
.yt button:hover .play, .yt .yt-link:hover .play { transform: scale(1.08); }
.yt .play svg { width: 26px; height: 26px; fill: #1a1205; margin-left: 4px; }
.yt .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; text-align: left; font-weight: 600; font-size: 14px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }

.songs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.songs li { border-bottom: 1px solid var(--line); }
.songs a { display: grid; grid-template-columns: 48px 1fr auto 40px; gap: 14px; align-items: center; padding: 16px 6px; transition: background .2s, padding .2s; }
.songs a:hover { background: rgba(212,175,55,.06); padding-left: 14px; }
.songs .n { font-family: var(--f-display); color: var(--gold); font-size: 14px; }
.songs .t { font-weight: 700; font-size: 16px; }
.songs .t small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.songs .y { color: var(--muted); font-size: 13px; }
.songs .go { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.songs .go svg { width: 14px; height: 14px; fill: var(--gold-hi); margin-left: 2px; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pn a { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .2s; }
.pn a:hover { border-color: var(--gold); }
.pn a.next { text-align: right; }
.pn small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pn b { font-family: var(--f-display); font-size: clamp(18px, 2.4vw, 26px); text-transform: uppercase; }

@media (max-width: 820px) {
  .a-hero { padding-top: 136px; }
  .a-grid { grid-template-columns: 1fr; }
  .a-photo { max-width: 420px; }
  .story { grid-template-columns: 1fr; }
  .story-side { position: static; display: none; }
  .songs a { grid-template-columns: 34px 1fr 40px; }
  .songs .y { display: none; }
  .pn { grid-template-columns: 1fr; }
  .pn a.next { text-align: left; }
}

/* ---------- Подвал / контакты ---------- */
.footer { position: relative; background: linear-gradient(180deg, var(--bg), #050403); border-top: 1px solid var(--line); overflow: hidden; }
.footer .hero-sun { opacity: .07; right: auto; left: 50%; top: 45%; translate: -50% -50%; width: min(120vw, 1000px); }
.contact { padding: clamp(60px, 8vw, 110px) 0 50px; text-align: center; }
.contact h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 5vw, 56px); line-height: 1.05; margin: 14px 0 12px; }
.contact p { color: var(--muted); margin: 0 auto 40px; max-width: 560px; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.c-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(19,17,14,.7); transition: border-color .2s, transform .2s; }
.c-item:hover { border-color: var(--gold); transform: translateY(-3px); }
.c-item .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,175,55,.1); border: 1px solid var(--line); }
.c-item .ic svg { width: 22px; height: 22px; stroke: var(--gold-hi); fill: none; stroke-width: 1.8; }
.c-item small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.c-item b { font-family: var(--f-display); font-size: clamp(17px, 2vw, 22px); font-weight: 700; word-break: break-all; }
.c-extra { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bottom { border-top: 1px solid var(--line); padding: 22px 0 26px; font-size: 13px; color: var(--muted); }
.bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.bottom .logo { font-size: 14px; color: var(--text); }
.bottom .logo .sun { width: 26px; height: 26px; }
.bottom .bc { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bottom .bc a { color: var(--gold-hi); font-weight: 600; }
.bottom .bc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .bottom .wrap { flex-direction: column; text-align: center; } .bottom .bc { margin: 0; justify-content: center; } }

/* ---------- Лайтбокс ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.lb button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0,0,0,.6); color: var(--gold-hi); font-size: 22px; }
.lb .x { top: 14px; right: 14px; }
.lb .l { left: 14px; top: 50%; translate: 0 -50%; }
.lb .r { right: 14px; top: 50%; translate: 0 -50%; }

/* ---------- Появление при скролле ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   РЕДАКТОР (виден только локально или по ?edit)
   ========================================================= */
.ed-fab {
  position: fixed; z-index: 120; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px;
  border-radius: 999px; border: 0; background: var(--gold-grad); color: #1a1205;
  font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 12px 40px -8px rgba(212,175,55,.7);
}
.ed-fab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }
body.ed-open .ed-fab { display: none; }
.ed-chip {
  position: absolute; z-index: 30; display: none; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--gold); background: rgba(8,7,6,.85);
  color: var(--gold-hi); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
body.ed-on .ed-chip { display: inline-flex; }
.ed-chip svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.ed-chip:hover { background: var(--gold); color: #000; }
.hero > .ed-chip { top: 84px; right: var(--gutter); }
@media (max-width: 820px) { .hero > .ed-chip { top: 144px; } }
.card > .ed-chip { top: 12px; right: 12px; }
.a-hero .ed-chip { top: 84px; right: var(--gutter); }
.footer > .ed-chip { top: 18px; right: var(--gutter); }

.ed {
  position: fixed; z-index: 150; top: 0; right: 0; bottom: 0; width: min(520px, 100%);
  background: #0d0b09; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  box-shadow: -30px 0 80px rgba(0,0,0,.6); font-size: 14px;
}
body.ed-open .ed { transform: none; }
@media (min-width: 1100px) { body.ed-open { padding-right: 520px; } body.ed-open .header { right: 520px; } }
.ed-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ed-top b { font-family: var(--f-display); font-size: 15px; }
.ed-top .st { font-size: 12px; color: var(--muted); margin-left: auto; }
.ed-top .st.ok { color: #8fd18f; }
.ed-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--gold-hi); font-size: 18px; }
.ed-tabs { display: flex; gap: 6px; padding: 12px 18px 0; }
.ed-tabs button { flex: 1; padding: 10px 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: none; color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ed-tabs button.on { background: #17140f; color: var(--gold-hi); border-color: var(--gold-lo); }
.ed-body { flex: 1; overflow-y: auto; padding: 18px; background: #17140f; border-top: 1px solid var(--gold-lo); }
.ed-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ed-foot .eb { flex: 1 1 auto; }
.ed h4 { font-family: var(--f-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 22px 0 10px; }
.ed h4:first-child { margin-top: 0; }
.ed .help { color: var(--muted); font-size: 12.5px; margin: -4px 0 12px; line-height: 1.5; }
.ef { display: block; margin-bottom: 12px; }
.ef > span { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-bottom: 5px; }
.ef input, .ef textarea, .ef select, .ed select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #3a3122; background: #0b0a08; color: var(--text);
  font: inherit; font-size: 14px; line-height: 1.5; outline: none; transition: border-color .2s;
}
.ef textarea { resize: vertical; min-height: 70px; }
.ef input:focus, .ef textarea:focus, .ed select:focus { border-color: var(--gold); }
.bi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bi .ef > span::after { content: attr(data-l); margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(212,175,55,.15); color: var(--gold-hi); font-size: 10px; }
@media (max-width: 520px) { .bi { grid-template-columns: 1fr; } }
.eb {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px;
  border-radius: 10px; border: 1px solid #4a3e27; background: #0b0a08; color: var(--gold-hi); font-size: 12.5px; font-weight: 700;
}
.eb:hover { border-color: var(--gold); }
.eb.gold { background: var(--gold-grad); color: #1a1205; border-color: transparent; }
.eb.red { color: #ff8b8b; border-color: #5a2626; }
.eb.sm { padding: 6px 10px; font-size: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.eimg { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.eimg .th { flex: 0 0 76px; height: 76px; border-radius: 10px; border: 1px dashed #4a3e27; background: #0b0a08 center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 22px; }
.eimg .ctl { flex: 1; min-width: 0; }
.eimg .ctl .ef { margin-bottom: 8px; }
.box { border: 1px solid #3a3122; border-radius: 14px; padding: 14px; margin-bottom: 12px; background: #110f0c; }
.box > summary { cursor: pointer; font-weight: 700; color: var(--text); list-style: none; display: flex; align-items: center; gap: 10px; }
.box > summary::-webkit-details-marker { display: none; }
.box > summary::before { content: "▸"; color: var(--gold); transition: transform .2s; }
.box[open] > summary::before { transform: rotate(90deg); }
.box[open] > summary { margin-bottom: 14px; }
.box > summary .row { margin-left: auto; }
.mini { display: grid; grid-template-columns: 1fr 70px 1.3fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.mini.v { grid-template-columns: 1.4fr 1fr auto; }
.mini input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid #3a3122; background: #0b0a08; color: var(--text); font: inherit; font-size: 13px; }
.mini input:focus { border-color: var(--gold); outline: none; }
@media (max-width: 520px) { .mini, .mini.v { grid-template-columns: 1fr 1fr; } .mini input:nth-child(3) { grid-column: span 2; } }
.gal-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 10px; }
.gal-ed div { position: relative; aspect-ratio: 1; border-radius: 10px; background: #0b0a08 center/cover no-repeat; border: 1px solid #3a3122; }
.gal-ed button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.75); color: #ff9b9b; font-size: 13px; line-height: 1; }
.gal-ed button.mv { right: auto; left: 4px; color: var(--gold-hi); }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 24px; translate: -50% 0; padding: 12px 20px; border-radius: 12px; background: #1b170f; border: 1px solid var(--gold); color: var(--gold-hi); font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; translate: -50% -8px; }

/* Плавающая кнопка WhatsApp */
.wa-fab { position: fixed; z-index: 110; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #14110c; color: var(--gold-hi); border: 1px solid var(--gold); box-shadow: 0 10px 30px -8px rgba(212,175,55,.45); transition: transform .2s, background .2s; }
.wa-fab:hover { background: #1f1a11; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; fill: currentColor; }
body:has(.ed-fab) .wa-fab { bottom: 84px; }
body.ed-open .wa-fab { display: none; }
.c-grid:has(> :only-child) { max-width: 440px; }
