/* ============================================================
   Musical Cards — компоненты: карточки, модалка, видео, плеер
   ============================================================ */

/* ---------------- Полоса доверия / чипы ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span, .chips a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid rgba(36,27,58,.12);
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.chips span::before { content: "♫"; font-size: 12px; color: var(--coral); }
.chips--ink span { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }

/* ---------------- Сетка карточек ---------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(36,27,58,.06);
  transition: transform .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .card__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 14px; background: var(--grad); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 17px; margin-bottom: 16px;
}
.card--lilac { background: var(--lilac); border-color: rgba(138,114,248,.18); }
.card--ink { background: var(--ink); border-color: rgba(255,255,255,.1); }
.card--ink h3 { color: #fff; }
.card--ink p { color: rgba(255,255,255,.7); }

/* ---------------- Карточки звука ---------------- */
.sound-card { display: flex; flex-direction: column; gap: 14px; }
.sound-card__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--coral); font-size: 24px;
}
.sound-card p { flex: 1; }

/* ---------------- Концепции ИИ ---------------- */
.concept-card { position: relative; overflow: hidden; }
.concept-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad);
}
.concept-card__tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--lav-dark); background: rgba(138,114,248,.12);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 12px;
}
.concept-card ul { margin: 12px 0 18px; display: grid; gap: 7px; font-size: 14.5px; color: var(--muted); }
.concept-card ul li { padding-left: 20px; position: relative; }
.concept-card ul li::before { content: "—"; position: absolute; left: 0; color: var(--coral); }

/* ---------------- Шаги ---------------- */
.step-card { position: relative; counter-increment: step; padding-top: 26px; }
.step-card::before {
  content: counter(step); position: absolute; top: -18px; left: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  box-shadow: 0 10px 22px -8px rgba(138,114,248,.6);
}
.steps { counter-reset: step; margin-top: 26px; }

/* ---------------- Видео-фасады Rutube ---------------- */
.video-facade {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 16/9; background: var(--ink); box-shadow: var(--shadow-soft);
  border: 1px solid rgba(36,27,58,.08);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, opacity .3s; }
.video-facade:hover img { transform: scale(1.04); }
.video-facade__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,27,58,0) 40%, rgba(36,27,58,.75) 100%);
}
.video-facade__btn {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px;
  border-radius: 50%; background: rgba(255,255,255,.94); color: var(--coral);
  display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(0,0,0,.5);
  transition: transform .2s;
}
.video-facade:hover .video-facade__btn { transform: scale(1.1); }
.video-facade__label {
  position: absolute; left: 18px; right: 18px; bottom: 14px; color: #fff;
  font-weight: 700; font-size: 15.5px; line-height: 1.35;
}
.video-facade__desc {
  position: absolute; left: 18px; top: 14px; color: #fff; font-size: 12.5px; font-weight: 700;
  background: rgba(240,79,120,.9); border-radius: 999px; padding: 4px 12px;
}
.video-embed { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------------- Демо-аудиоплеер ---------------- */
.audio-demo {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--lilac); border: 1.5px solid rgba(138,114,248,.25);
  border-radius: 16px; padding: 11px 16px; cursor: pointer;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 700; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.audio-demo:hover { border-color: var(--lav); background: #fff; }
.audio-demo__icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center;
}
.audio-demo .i-pause { display: none; }
.audio-demo.is-playing .i-pause { display: block; }
.audio-demo.is-playing .i-play { display: none; }
.audio-demo__wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.audio-demo__wave i { width: 3px; border-radius: 2px; background: var(--lav); height: 8px; }
.audio-demo.is-playing .audio-demo__wave i { animation: mc-bar .9s ease-in-out infinite; }
.audio-demo__wave i:nth-child(1) { animation-delay: 0s; }
.audio-demo__wave i:nth-child(2) { animation-delay: .12s; height: 14px; }
.audio-demo__wave i:nth-child(3) { animation-delay: .24s; height: 9px; }
.audio-demo__wave i:nth-child(4) { animation-delay: .36s; height: 16px; }
.audio-demo__wave i:nth-child(5) { animation-delay: .48s; height: 8px; }
.audio-demo__wave i:nth-child(6) { animation-delay: .6s; height: 13px; }
.audio-demo__wave i:nth-child(7) { animation-delay: .72s; height: 10px; }
@keyframes mc-bar { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1.35); } }
.audio-demo__text { text-align: left; }
.audio-hint { font-size: 12.5px; color: var(--muted); }

/* ---------------- Модальное окно связи ---------------- */
.mc-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.mc-modal.is-open { visibility: visible; }
.mc-modal__overlay { position: absolute; inset: 0; background: rgba(36,27,58,.62); opacity: 0; transition: opacity .25s; backdrop-filter: blur(4px); }
.mc-modal.is-open .mc-modal__overlay { opacity: 1; }
.mc-modal__window {
  position: relative; width: 100%; max-width: 470px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--paper); border-radius: 26px; padding: 30px 28px 24px;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.5);
  transform: translateY(26px) scale(.97); opacity: 0; transition: transform .28s, opacity .28s;
}
.mc-modal.is-open .mc-modal__window { transform: none; opacity: 1; }
.mc-modal__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  border: none; border-radius: 50%; background: rgba(36,27,58,.07); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.mc-modal__close:hover { background: rgba(36,27,58,.14); }
.mc-modal__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.mc-modal__ill { width: 92px; height: 92px; object-fit: cover; border-radius: 20px; flex-shrink: 0; box-shadow: var(--shadow-soft); }
.mc-modal__head h3 { font-size: 19px; margin-bottom: 8px; }
.mc-modal__sub { font-size: 14px; color: var(--muted); line-height: 1.55; }
.mc-modal__choose { font-weight: 700; font-size: 15px; margin-bottom: 12px; color: var(--ink); }
.mc-modal__btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  border-radius: 18px; padding: 14px 18px; margin-bottom: 10px; color: #fff;
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.mc-modal__btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.05); }
.mc-modal__btn--tg { background: #279FD9; box-shadow: 0 12px 26px -12px rgba(39,159,217,.7); }
.mc-modal__btn--max { background: var(--grad); box-shadow: 0 12px 26px -12px rgba(138,114,248,.7); }
.mc-modal__btn-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.mc-modal__btn-text { display: flex; flex-direction: column; line-height: 1.3; }
.mc-modal__btn-text b { font-size: 16px; }
.mc-modal__btn-text small { font-size: 12.5px; opacity: .85; font-weight: 600; }
.mc-modal__email { text-align: center; font-size: 13.5px; color: var(--muted); margin: 14px 0 10px; }
.mc-modal__email a { font-weight: 700; }
.mc-modal__micro { text-align: center; font-size: 12px; color: var(--muted); border-top: 1px dashed rgba(36,27,58,.15); padding-top: 12px; }

/* ---------------- FAQ ---------------- */
.faq-item { background: #fff; border: 1.5px solid rgba(36,27,58,.09); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 22px;
  font-weight: 700; font-size: 16.5px; color: var(--ink); position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 18px; transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item__body { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ---------------- Портфолио ---------------- */
.case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-card .video-facade { border-radius: 0; box-shadow: none; border: none; }
.case-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card__body h3 { font-size: 18px; }
.case-card__body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.case-card__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }
.case-card__meta span { background: var(--lilac); color: var(--lav-dark); font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.case-card__actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 4px; }
.case-card__watch { font-size: 13.5px; color: var(--muted); }

/* ---------------- Страницы (шапка внутренних) ---------------- */
.page-hero { background: var(--ink); color: rgba(255,255,255,.8); padding: 46px 0 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -140px; top: -140px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(closest-side, rgba(138,114,248,.3), transparent 70%); }
.page-hero h1 { color: #fff; max-width: 820px; position: relative; }
.page-hero .breadcrumbs a, .page-hero .breadcrumbs li { color: rgba(255,255,255,.6); }
.page-hero__lead { max-width: 720px; margin-top: 18px; font-size: 17.5px; position: relative; }

.cta-strip { border-radius: var(--radius); background: var(--grad); color: #fff; padding: 44px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; box-shadow: var(--shadow); }
.cta-strip h2 { color: #fff; margin: 0; font-size: clamp(20px, 2.6vw, 30px); max-width: 560px; }
.cta-strip .btn--ghost { border-color: rgba(255,255,255,.55); }
.cta-strip .btn--white { background: #fff; color: var(--coral); }
.cta-strip .btn--white:hover { color: var(--coral-dark); }

.notice {
  background: rgba(53,185,138,.1); border: 1.5px solid rgba(53,185,138,.35);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14px; color: #1E7A5C;
}
.footnote { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

.requisites { font-size: 15px; color: var(--muted); line-height: 1.8; }
.requisites b { color: var(--ink); }

.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; background: var(--grad-soft); color: var(--coral); display: grid; place-items: center; }
.contact-card h3 { font-size: 17px; margin-bottom: 4px; }
.contact-card p { font-size: 14.5px; }

.blog-card h3 { font-size: 18px; }
.blog-card .blog-card__soon { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mint); margin-top: 12px; }

/* ---------------- Адаптив компонентов ---------------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .cta-strip { padding: 32px 24px; }
  .mc-modal__head { flex-direction: column; align-items: center; text-align: center; }
  .mc-modal__ill { width: 76px; height: 76px; }
}
