:root {
  --ink: #15162a;
  --ink-2: #1d1f37;
  --paper: #f6f1e9;
  --paper-2: #eee6d8;
  --text: #1d1c2b;
  --muted: #6b6776;
  --cream: #f3ead9;
  --gold: #d4a55a;
  --gold-deep: #9a6d27;
  --line: rgba(29, 28, 43, .12);
  --line-light: rgba(243, 234, 217, .16);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
section[id] { scroll-margin-top: 72px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; line-height: 1.5; }
.kz { font-family: var(--serif); }

.kicker {
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.4rem;
}
.kicker--dark { color: var(--gold-deep); }
.h2 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.01em; margin-bottom: 1.2rem; }
.lead { font-size: 1.05rem; max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1em 1.9em;
  font: 600 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #e2b86f; }
.btn--line { border-color: currentColor; color: inherit; background: transparent; }
.btn--line:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--wide { width: 100%; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(21, 22, 42, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--cream);
  border-bottom: 1px solid var(--line-light);
}
.header__inner { height: 68px; display: flex; align-items: center; gap: 2rem; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-size: 1.45rem; font-weight: 500; text-decoration: none; letter-spacing: .01em;
}
.brand__moon { width: 20px; height: 20px; color: var(--gold); }
.header__nav { display: flex; gap: 2rem; margin-left: auto; }
.header__nav a { text-decoration: none; font-size: .9rem; opacity: .8; transition: opacity .2s; }
.header__nav a:hover { opacity: 1; }
.header__cta {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: .7em 1.2em; border: 1px solid var(--gold); color: var(--gold); border-radius: 2px;
  transition: background .2s, color .2s;
}
.header__cta:hover { background: var(--gold); color: var(--ink); }
@media (max-width: 720px) {
  .header__nav { display: none; }
  .header__cta { margin-left: auto; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 70% 0%, #2a2c52 0%, transparent 70%), var(--ink);
  color: var(--cream);
  padding: clamp(5rem, 14vw, 10rem) 0 clamp(6rem, 14vw, 11rem);
}
.hero__sky {
  position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 14%, #f3dcae 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 58%, #f3dcae 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 84%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 36%, #fff 50%, transparent 51%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__moon {
  position: absolute; top: 50%; right: 9%; transform: translateY(-58%);
  width: min(30vw, 400px); height: min(30vw, 400px);
  color: #e8c27f;
  filter: drop-shadow(0 0 60px rgba(232, 194, 127, .35)) drop-shadow(0 0 140px rgba(232, 194, 127, .18));
  opacity: .92; pointer-events: none;
}
.hero__title {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(3.4rem, 11vw, 8.5rem); line-height: .95; letter-spacing: -.02em;
  margin-bottom: 2.2rem;
}
.hero__lead { max-width: 30em; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(243, 234, 217, .78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.hero__horn {
  position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 180px; height: 90px;
  color: var(--gold); opacity: .25; pointer-events: none;
}
@media (max-width: 720px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero { padding-top: 9.5rem; }
  .hero__moon { width: 96px; height: 96px; top: 2.2rem; left: 20px; right: auto; transform: none; }
}

/* Manifesto */
.manifesto { padding: clamp(5rem, 10vw, 8rem) 0; text-align: center; }
.ornament { width: 84px; height: 42px; color: var(--gold-deep); margin-bottom: 2rem; }
.manifesto__text {
  font-family: var(--serif); font-size: clamp(1.55rem, 3.2vw, 2.3rem); line-height: 1.35;
  max-width: 28em; margin: 0 auto;
}
.manifesto__text em { color: var(--gold-deep); }

/* Album */
.album { padding: clamp(1rem, 3vw, 2rem) 0 clamp(5rem, 10vw, 8rem); }
.album__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.album__cover-wrap { position: sticky; top: 100px; }
@media (max-width: 900px) {
  .album__grid { grid-template-columns: 1fr; }
  .album__cover-wrap { position: static; max-width: 460px; }
}

.cover {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: radial-gradient(circle at 70% 25%, #2d2f58, var(--ink) 70%);
  color: var(--cream);
  box-shadow: 0 40px 80px -30px rgba(21, 22, 42, .55), 0 2px 0 rgba(255,255,255,.04) inset;
}
.cover__pattern {
  position: absolute; inset: -10%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='70' viewBox='0 0 120 70'%3E%3Cpath fill='none' stroke='%23d4a55a' stroke-width='1.3' stroke-linecap='round' d='M60 62V38C60 22 48 12 36 12C24 12 16 21 16 31C16 40 23 46 31 46C38 46 43 41 43 35C43 30 39 26 34 26C30 26 27 29 27 33M60 38C60 22 72 12 84 12C96 12 104 21 104 31C104 40 97 46 89 46C82 46 77 41 77 35C77 30 81 26 86 26C90 26 93 29 93 33'/%3E%3C/svg%3E");
  background-size: 90px 52px; opacity: .09;
  mask-image: radial-gradient(circle at 30% 80%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 30% 80%, #000 20%, transparent 75%);
}
.cover__moon { position: absolute; top: 12%; right: 12%; width: 20%; height: 20%; color: var(--gold); filter: drop-shadow(0 0 24px rgba(212, 165, 90, .45)); }
.cover__title {
  position: absolute; left: 9%; bottom: 17%;
  font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 7vw, 5rem); line-height: .9;
  display: flex; flex-direction: column;
}
.cover__title span:last-child { padding-left: .9em; color: var(--gold); }
.cover__meta { position: absolute; left: 9%; bottom: 8%; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; opacity: .6; }

.album__buy { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 1.8rem; flex-wrap: wrap; }
.album__price { font-family: var(--serif); font-size: 2rem; line-height: 1; margin-bottom: .3rem; }

.tracks { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: 3rem 1fr auto auto; align-items: center; gap: 1.2rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
}
.track__num { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.track__body { display: flex; flex-direction: column; min-width: 0; }
.track__title { font-size: 1.65rem; line-height: 1.15; }
.track__note { font-size: .88rem; color: var(--muted); }
.track__price { font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.track__buy {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: .75em 1.2em; border: 1px solid var(--text); border-radius: 2px; transition: background .2s, color .2s;
}
.track__buy:hover { background: var(--text); color: var(--paper); }
@media (max-width: 560px) {
  .track { grid-template-columns: 2.2rem 1fr auto; row-gap: .6rem; }
  .track__price { grid-column: 2; }
  .track__buy { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .track__title { font-size: 1.45rem; }
}

.play {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--text); background: none; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.play span { width: 0; height: 0; border-left: 10px solid var(--text); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.play.is-playing span { width: 10px; height: 12px; border: 0; margin: 0; border-left: 3px solid var(--text); border-right: 3px solid var(--text); }

/* Principles */
.principles { background: var(--paper-2); padding: clamp(4.5rem, 9vw, 7rem) 0; }
.principles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.principle { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.principle__num { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-deep); }
.principle h3 { font-family: var(--serif); font-size: 1.9rem; margin: .4rem 0 .6rem; }
.principle p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .principles__grid { grid-template-columns: 1fr; } }

/* Courses */
.courses { background: var(--ink); color: var(--cream); padding: clamp(5rem, 10vw, 8rem) 0; }
.courses__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 3.5rem; }
.courses__intro { color: rgba(243, 234, 217, .7); max-width: 28em; justify-self: end; }
@media (max-width: 800px) { .courses__head { grid-template-columns: 1fr; } .courses__intro { justify-self: start; } }

.course-list { border-top: 1px solid var(--line-light); }
.course {
  display: grid; grid-template-columns: 5rem 1fr 14rem; gap: 2rem;
  padding: 2.6rem 0; border-bottom: 1px solid var(--line-light);
}
.course__num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--gold); }
.course__level { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(243, 234, 217, .55); }
.course__title { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; margin: .5rem 0 .8rem; }
.course__desc { color: rgba(243, 234, 217, .72); max-width: 36em; }
.course__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .88rem; color: rgba(243, 234, 217, .85); }
.course__points li::before { content: "—"; color: var(--gold); margin-right: .5em; }
.course__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 1.2rem; }
.course__price { font-family: var(--serif); font-size: 1.9rem; line-height: 1; white-space: nowrap; }
@media (max-width: 800px) {
  .course { grid-template-columns: 1fr; gap: .8rem; }
  .course__side { flex-direction: row; align-items: center; margin-top: .8rem; }
}

/* Author */
.author { padding: clamp(5rem, 10vw, 8rem) 0; }
.author__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.portrait { margin: 0; }
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(170deg, var(--paper-2), #e2d6c2);
  display: grid; place-items: center;
}
.portrait__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__horn { width: 45%; height: 23%; color: var(--gold-deep); opacity: .35; }
.author__text p:not(.kicker) { color: #3d3a4a; max-width: 34em; }
@media (max-width: 800px) { .author__grid { grid-template-columns: 1fr; } .portrait { max-width: 380px; } }

/* Contact */
.contact { background: var(--ink); color: var(--cream); padding: clamp(5rem, 10vw, 8rem) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__lead { color: rgba(243, 234, 217, .72); max-width: 26em; }
.contact__phone {
  display: inline-block; margin-top: 1.2rem;
  font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); text-decoration: none;
  border-bottom: 1px solid var(--gold); line-height: 1.2;
}
.contact__phone:hover { color: var(--gold); }
.form { display: grid; gap: 1.6rem; }
.field { display: grid; gap: .4rem; }
.field span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(243, 234, 217, .6); }
.field i { text-transform: none; letter-spacing: 0; font-style: normal; opacity: .7; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--cream); background: transparent;
  border: 0; border-bottom: 1px solid rgba(243, 234, 217, .3); border-radius: 0;
  padding: .6em 0; resize: vertical; width: 100%; min-width: 0;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d4a55a' stroke-width='1.5'/%3E%3C/svg%3E") right center no-repeat; }
.field select option { color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
@media (max-width: 800px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.footer { background: var(--ink); color: rgba(243, 234, 217, .55); border-top: 1px solid var(--line-light); padding: 2rem 0; font-size: .82rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand--small { font-size: 1.15rem; color: var(--cream); }

/* Мягкое появление */
.js .track, .js .course, .js .principle { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.js .is-in { opacity: 1; transform: none; }

/* Для детей и взрослых с сенсорной чувствительностью — без анимаций, если так настроено в системе */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .track, .js .course, .js .principle { opacity: 1; transform: none; }
}
