/* ArtemoWitch — стили сайта.
   Палитра: глубокий баклажан (base), латунь (brass), светлая бумага (paper).
   Шрифты: Playfair Display — заголовки, Onest — текст. */

:root {
  --base: #1a1125;
  --base-2: #251833;
  --brass: #c9a45c;
  --brass-2: #dcbb78;
  --ink: #17121f;
  --paper: #f5f3f7;
  --paper-2: #ebe7f0;
  --mist: #bfb3cf;
  --link: #3d2457;
  --line: rgba(255, 255, 255, .14);
  --line-dark: rgba(23, 18, 31, .16);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--paper); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
h3 { font-size: 1.2rem; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.section--light :focus-visible, .cta :focus-visible, .form-card :focus-visible { outline-color: var(--ink); }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--brass); color: var(--ink); padding: .7em 1.1em; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.show-sm { display: none; }

/* ── Кнопки и ссылки ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .8rem 1.7rem; border-radius: 4px; border: 1px solid transparent;
  font: 600 1rem/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--sm { min-height: 44px; padding: .55rem 1.2rem; font-size: .95rem; }
.btn--accent { background: var(--brass); color: var(--ink); }
.btn--accent:hover { background: var(--brass-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-2); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--base-2); }
.link { color: var(--brass-2); font-weight: 600; text-underline-offset: .3em; text-decoration-color: rgba(201, 164, 92, .6); }
.link:hover { text-decoration-color: currentColor; }
.link--dark { color: var(--link); text-decoration-color: rgba(61, 36, 87, .4); }

/* ── Шапка ────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: var(--base); color: #fff; border-bottom: 1px solid var(--line); }
.top__bar { display: flex; align-items: center; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.brand { margin-right: auto; font: 700 1.3rem/1 var(--serif); letter-spacing: -.01em; text-decoration: none; }
.menu-btn { display: none; min-height: 44px; padding: 0 1.1rem; border-radius: 4px; border: 1px solid var(--line); background: transparent; color: #fff; font: 600 .95rem var(--sans); cursor: pointer; }
.nav ul { display: flex; gap: 1.3rem; list-style: none; }
.nav a { display: block; padding: .4rem 0; border-bottom: 2px solid transparent; text-decoration: none; color: var(--mist); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--brass); }
.top__call { margin-left: .8rem; }

/* ── Общие секции ─────────────────────────────── */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--plum { background: var(--base); color: #fff; }
.section--light { background: var(--paper); color: var(--ink); }
.stage-edge { border-bottom: 1px solid rgba(201, 164, 92, .55); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.section--light .sec-head { border-bottom-color: var(--line-dark); }
.note { margin: 1.75rem 0 0; color: var(--mist); }
.note a { color: var(--brass-2); font-weight: 600; }

.page-head { background: var(--base); color: #fff; padding-block: clamp(2.75rem, 7vw, 5.25rem); }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 4rem); max-width: 18ch; }
.page-head p { max-width: 62ch; margin: 1.4rem 0 0; color: var(--mist); font-size: 1.15rem; }
.page-head .btn { margin-top: .5rem; }

.prose { max-width: 68ch; }
.prose--narrow { margin-inline: auto; }
.prose h2 { margin: 2.4rem 0 1rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose > :first-child { margin-top: 0; }
.prose a, .phone-inline { color: var(--link); font-weight: 600; text-underline-offset: .25em; }

.quote { margin: 1.75rem 0; padding: .2rem 0 .2rem 1.5rem; border-left: 2px solid var(--brass); }
.quote p { font: italic 500 clamp(1.2rem, 2.2vw, 1.42rem)/1.5 var(--serif); }
.quote footer { margin-top: .6rem; font-weight: 600; color: var(--link); }

/* ── Главный экран ────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--base); color: #fff; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.hero__copy { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.wordmark { margin: 0 0 1.6rem; font-weight: 600; font-size: clamp(2.6rem, 14vw, 6.2rem); line-height: .95; letter-spacing: -.02em; }
.wordmark span { display: block; }
@supports (container-type: inline-size) {
  .hero__copy { container-type: inline-size; }
  .wordmark { font-size: clamp(2.6rem, 26cqi, 7.5rem); }
}
.hero__lead { max-width: 36ch; margin-bottom: 2rem; color: var(--mist); font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__creds { max-width: 44ch; margin: 2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--mist); font-size: .95rem; }

.hero__stage { position: relative; justify-self: center; width: min(100%, 400px); }
.hero__beam {
  z-index: 0; position: absolute; left: 50%; bottom: 0; width: 160%; height: 135%; transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(201, 164, 92, .26), rgba(201, 164, 92, 0) 85%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  pointer-events: none; animation: lamp-on 1.1s .15s ease-out both;
}
@keyframes lamp-on { from { opacity: 0; } to { opacity: 1; } }
.arch {
  position: relative; z-index: 1; aspect-ratio: 683 / 1024; overflow: hidden;
  border-radius: 999px 999px 0 0; background: var(--base-2);
  box-shadow: 0 0 0 1px var(--brass), 0 0 0 9px var(--base), 0 0 0 10px rgba(201, 164, 92, .5);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* ── Формула имени ────────────────────────────── */
.formula__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.formula__eq { margin: 0; color: var(--base); font: 600 clamp(3rem, 8vw, 5.6rem)/1 var(--serif); letter-spacing: -.02em; }
.formula__eq span { display: block; }
.formula__eq span + span { font-style: italic; font-weight: 500; }
.formula__lead { max-width: 34ch; font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.45; }

/* ── Афиша ────────────────────────────────────── */
.stubs { list-style: none; border-top: 1px solid var(--line); }
.stub { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.stub__side { display: contents; }
.stub__date { grid-column: 1; grid-row: 1; margin: 0; color: var(--brass-2); font-weight: 600; }
.stub__main { grid-column: 2; grid-row: 1; }
.stub .btn { grid-column: 3; grid-row: 1; }
.stub__tour { margin: 0 0 .25rem; color: var(--brass-2); font-size: .95rem; font-weight: 500; }
.stub__city { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.stub__venue { margin: .3rem 0 0; color: var(--mist); }

/* ── Песни ────────────────────────────────────── */
.songs { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.songs__intro p { max-width: 36ch; margin: 1rem 0 1.5rem; }
.setlist { max-width: 820px; padding: clamp(1.25rem, 3vw, 2.25rem); background: #fff; border: 1px solid var(--line-dark); border-radius: 4px; }
.setlist--wide { margin-inline: auto; }
.setlist__head { padding-bottom: .9rem; border-bottom: 2px solid var(--ink); }
.setlist__head h2, .setlist__head h3 { font-size: 1.35rem; }
.setlist__more { margin: 1rem 0 0; }

.tracks { list-style: none; }
.track { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line-dark); }
.track:first-child { border-top: 0; }
.track__play { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.track__play:hover { background: var(--paper-2); }
.track.is-playing .track__play { background: var(--brass); border-color: var(--brass); }
.ico-pause { display: none; }
.track.is-playing .ico-pause { display: block; }
.track.is-playing .ico-play { display: none; }
.track__title { display: flex; align-items: baseline; gap: .7rem; margin: 0; font-weight: 600; font-size: 1.08rem; }
.track__no { min-width: 1.5em; color: rgba(23, 18, 31, .5); font: 500 1rem var(--serif); }
.track__seek { display: none; width: 100%; margin: .45rem 0 0; accent-color: var(--base-2); }
.track.is-active .track__seek { display: block; }
.track.is-error .track__name::after { content: " — файл недоступен"; color: #a32a1a; font-weight: 500; }
.track__dl { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--link); }
.track__dl:hover { background: var(--paper-2); }

/* ── Видео ────────────────────────────────────── */
.videos { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.videos--lead { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.videos--lead .video:first-child { grid-row: span 2; }
.video { margin: 0; }
.video__btn { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; border: 0; border-radius: 4px; background: #000; cursor: pointer; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video__play svg { box-sizing: content-box; padding: 1.05rem 1.05rem 1.05rem 1.25rem; border-radius: 50%; background: var(--brass); color: var(--ink); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; }
.video figcaption { display: flex; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; margin-top: .75rem; }
.video figcaption a { color: var(--mist); font-size: .95rem; }
.clip { width: 100%; max-width: 900px; border-radius: 4px; background: #000; }
.clip-title { margin: 3rem 0 1.25rem; }

/* ── Призыв позвонить ─────────────────────────── */
.cta { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--paper-2); color: var(--ink); border-top: 1px solid var(--line-dark); }
.cta__inner { display: grid; gap: 1.1rem; justify-items: start; }
.cta h2 { max-width: 24ch; font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.cta__phone { font: 600 clamp(1.8rem, 8vw, 4.2rem)/1 var(--serif); letter-spacing: -.02em; color: var(--base); text-decoration: none; overflow-wrap: anywhere; }
.cta__phone:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 3px; text-underline-offset: .15em; }
.cta__form { color: var(--link); font-weight: 600; text-underline-offset: .25em; }

/* ── Об артисте ───────────────────────────────── */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about__photo { position: sticky; top: 96px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--base-2); }
.facts { margin: 1.5rem 0; }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line-dark); }
.facts div:last-child { border-bottom: 1px solid var(--line-dark); }
.facts dt { font-weight: 600; color: var(--link); }
.facts dd { margin: 0; }

/* ── Контакты и форма ─────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info h2, .form-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.25rem; }
.contact-info h3 { margin: 2.2rem 0 .8rem; }
.contact-big { font: 600 clamp(1.6rem, 6.5vw, 2.7rem)/1.1 var(--serif); letter-spacing: -.01em; color: var(--base); text-decoration: none; overflow-wrap: anywhere; }
.contact-big:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .15em; }
.contact-mail { font-size: 1.2rem; font-weight: 600; color: var(--link); overflow-wrap: anywhere; }
.pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; }
.pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--base); border-radius: 4px; color: var(--base); font-weight: 600; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.pills a:hover { background: var(--base); color: #fff; }

.form-card { padding: clamp(1.25rem, 3vw, 2.25rem); background: #fff; border: 1px solid var(--line-dark); border-radius: 4px; scroll-margin-top: 96px; }
.form { display: grid; gap: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: .8rem 1rem; border: 1px solid rgba(23, 18, 31, .35); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--base); }
.form .btn { justify-self: start; }
.notice { margin: 0 0 1.25rem; padding: .9rem 1.1rem; border-radius: 4px; font-weight: 500; }
.notice ul { padding-left: 1.2rem; }
.notice--ok { background: #e3f1e7; color: #12462a; }
.notice--err { background: #f8e6e2; color: #7a1a0e; }

/* ── Подвал ───────────────────────────────────── */
.foot { background: var(--ink); color: var(--mist); padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.foot a { text-underline-offset: .2em; overflow-wrap: anywhere; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.foot__brand { margin-bottom: .6rem; color: #fff; font: 700 1.5rem var(--serif); }
.foot__phone { color: var(--brass-2); font-weight: 600; }
.foot__h { margin-bottom: .6rem; color: #fff; font-weight: 600; }
.foot ul { list-style: none; }
.foot li { margin-bottom: .35rem; }
.foot__copy { margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9rem; }

/* ── Планшеты и телефоны ──────────────────────── */
@media (max-width: 900px) {
  .hero__grid, .formula__grid, .songs, .about, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { padding-bottom: 1rem; }
  .hero__stage { width: min(80%, 340px); margin-top: .5rem; }
  .about__photo { position: static; max-width: 420px; }
  .videos--lead { grid-template-columns: minmax(0, 1fr); }
  .videos--lead .video:first-child { grid-row: auto; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { order: 5; width: 100%; }
  .nav ul { flex-direction: column; gap: 0; padding-bottom: .75rem; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--brass-2); }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
}

@media (max-width: 480px) {
  .top__bar { gap: .6rem; }
  .brand { font-size: 1.15rem; }
  .top__call { margin-left: 0; }
}

@media (max-width: 640px) {
  .stub { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; padding: 1.4rem 0; }
  .stub__date { grid-column: 1 / -1; grid-row: 1; }
  .stub__main { grid-column: 1; grid-row: 2; }
  .stub .btn { grid-column: 2; grid-row: 2; align-self: center; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .track__no { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
