/* Foldeon — своя тема раздела: тёмный лак корпуса, красный перламутр, слоновая кость
   кнопок, золото на рёбрах меха. Складки меха — повторяющийся градиент. */
:root {
  --bg: #120b0d; --paper: #1e1417; --fg: #f3eadb; --muted: #b9a99c;
  --line: #3a262b; --accent: #c72e33; --gold: #f2c14e; --ivory: #f3eadb;
  --ink: #1c1316; --chip: #2a1b1f; --on-accent: #fff;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
.wrap { max-width: 50rem; margin: 0 auto; padding: 0 20px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.bar a { color: var(--muted); text-decoration: none; }
.bar a:hover { color: var(--fg); }
.bar .id { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.bar .id img { width: 26px; height: 26px; border-radius: 7px; display: block; }

/* Мех как разделитель: чередование граней складок. */
.pleats {
  height: 14px; margin: 0 0 8px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, #2a1b1f 0 14px, #6b454c 14px 22px, #2a1b1f 22px 36px);
  box-shadow: inset 0 1px 0 rgba(242,193,78,.35), inset 0 -1px 0 rgba(242,193,78,.35);
}

.hero { padding: clamp(34px, 8vw, 64px) 0 clamp(18px, 5vw, 30px); }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; margin: 0 0 14px; }
.kicker img { width: 44px; height: 44px; border-radius: 11px; }
h1 { font-size: clamp(2rem, 6.4vw, 3rem); line-height: 1.07; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 750; }
h1 em { font-style: normal; color: var(--gold); }
h2 { font-size: clamp(1.3rem, 4vw, 1.65rem); letter-spacing: -0.02em; margin: 2.2em 0 0.6em; }
h3 { font-size: 1.08rem; margin: 1.4em 0 0.4em; }
.sub { font-size: clamp(1.04rem, 3.2vw, 1.2rem); color: var(--muted); margin: 0 0 24px; max-width: 38rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 650; text-decoration: none; padding: 12px 20px; border-radius: 12px; border: 0; font-size: 1rem; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.soon { display: inline-block; padding: 10px 16px; border-radius: 12px; background: var(--chip); color: var(--gold); font-weight: 650; }
section { margin: 2.4em 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin: 0.4em 0; }

.steps { list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0; }
.steps b { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 12px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.card h3 { margin: 0 0 4px; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; background: rgba(242,193,78,.16); color: var(--gold); vertical-align: 2px; margin-left: 6px; }
.tag.free { background: rgba(243,234,219,.12); color: var(--ivory); }

.shots { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.shots img { height: 180px; width: auto; border-radius: 14px; border: 1px solid var(--line); }

.note { background: var(--paper); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 0 12px 12px 0; color: var(--muted); }
.reviewed { color: var(--muted); font-size: 0.85rem; }
footer { border-top: 1px solid var(--line); margin-top: 3em; padding: 20px 0 40px; color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

/* ——— Схема кнопок ——— */
.controls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 16px; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { background: transparent; color: var(--muted); border: 0; border-radius: 9px; padding: 7px 11px; font: inherit; font-size: 0.9rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.board { display: grid; grid-template-columns: 1fr minmax(56px, 90px) 1fr; gap: 0; background: #0d0809; border: 1px solid var(--line); border-radius: 18px; padding: 16px 10px; user-select: none; -webkit-user-select: none; touch-action: none; }
.half { display: flex; gap: 8px; justify-content: center; align-items: center; }
.half.left { flex-direction: row; }
.half.right { flex-direction: row-reverse; }
.col { display: flex; flex-direction: column; gap: 6px; }
.col.stagger { margin-top: 22px; }
.bellows { border-radius: 6px; margin: 0 8px;
  background: repeating-linear-gradient(90deg, #1c1215 0 7px, #5a3a40 7px 11px, #1c1215 11px 18px);
  box-shadow: inset 3px 0 0 var(--accent), inset -3px 0 0 var(--accent);
  display: flex; align-items: center; justify-content: center; color: var(--ivory); font-size: 1.4rem; font-weight: 800; transition: box-shadow .15s; }
.bellows.air { box-shadow: inset 3px 0 0 var(--accent), inset -3px 0 0 var(--accent), inset 0 0 26px rgba(242,193,78,.55); }
.key { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(0,0,0,.6); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-weight: 700; padding: 0; font-family: inherit; }
.key.melody { background: radial-gradient(circle at 35% 30%, #fff, #f3eadb 55%, #d7c9b5); color: var(--ink); }
.key.bass, .key.chord { background: radial-gradient(circle at 35% 30%, #4d383c, #1c1316 60%, #0d0809); color: var(--ivory); }
.key.chord { box-shadow: inset 0 0 0 3px rgba(199,46,51,.85); }
.key .now { font-size: 0.95rem; }
.key .other { font-size: 0.62rem; opacity: .55; margin-top: 3px; }
.key.down { outline: 3px solid var(--gold); outline-offset: 1px; transform: scale(.95); }
.legend { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
@media (max-width: 560px) { .key { width: 38px; height: 38px; } .key .now { font-size: 0.82rem; } .board { padding: 12px 4px; } }

table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 6px 0 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
td.n { font-family: var(--mono); color: var(--muted); }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 650; }
