/* ==========================================================================
   Страница мастера — по артборду «03 Мастер - страница.dc.html».
   ========================================================================== */

/* Ритм по вертикали взят из макета: шапка сама даёт 56px до своей линии,
   поэтому у секции нижнего отступа нет; дальше секции по 80px, последняя 90px.
   Общие .sec / .sec--sm давали 216px между шапкой и фото — слишком много. */
.msec--hero { padding: 40px 0 0; }
.msec { padding-block: 80px; }
.msec--other { padding-block: 90px; }

/* ------------------------------------------------------------------ шапка */
.mhero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 56px; align-items: start;
  padding-bottom: 56px; border-bottom: 1px solid var(--bd-14);
}
.mhero__h1 { margin-bottom: 26px; }
.mhero__name {
  display: block;
  font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(40px, 5.2vw, 66px); line-height: 1.02;
  color: var(--tx-white);
}
.mhero__role {
  display: block; margin-top: 12px;
  font-weight: 400; font-size: 14px; letter-spacing: .04em;
  color: var(--acc-lt);
}
.mhero__lead { max-width: 560px; margin-bottom: 18px; }
.mhero__lead p { font-size: 16px; line-height: 1.6; color: #cdbcb6; margin-bottom: 12px; }
.mhero__lead p:last-child { margin-bottom: 0; }
.mhero__more { margin-bottom: 40px; }

.mspecs {
  margin-top: 4px;
  display: flex; flex-wrap: wrap; gap: 0;
  background: linear-gradient(165deg, var(--surface-2), var(--bg));
  border-radius: var(--r-md); overflow: hidden;
  margin-bottom: 30px; max-width: 540px;
}
.mspecs__i {
  position: relative; flex: 1; min-width: 120px; padding: 20px 24px;
  border-right: 1px solid var(--bd-14); transition: background .18s;
}
.mspecs__i:last-child { border-right: none; }
.mspecs__i:hover { background: rgba(230, 190, 152, .05); }
.mspecs__n {
  font-weight: 600; letter-spacing: -.02em;
  font-size: 32px; color: var(--acc-lt); line-height: 1;
}
.mspecs__l {
  font-weight: 500; font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tx-dim-2); margin-top: 9px;
}

/* отдельный блок под параметрами — свободна ли сейчас и как принимает */
.mvisit {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 540px; margin: -16px 0 30px; padding: 18px 24px;
  background: linear-gradient(165deg, var(--surface-2), var(--bg));
  border-radius: var(--r-md);
}
.mvisit__live {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 12.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--live);
}
.mvisit__live i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(47, 169, 110, .55); animation: mvisit-pulse 2s infinite;
}
@keyframes mvisit-pulse {
  70% { box-shadow: 0 0 0 8px rgba(47, 169, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 169, 110, 0); }
}
.mvisit__row { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.mvisit__t { font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--acc-lt); }
.mvisit__d {
  font-weight: 500; font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tx-dim-2);
}

.mtags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 36px; max-width: 560px; }
.mtags a, .mtags span {
  font-size: 12px; color: var(--acc-lt);
  background: rgba(230, 190, 152, .08); border: 1px solid var(--bd-20);
  padding: 6px 15px; border-radius: var(--r-pill);
}
.mtags a:hover { background: rgba(230, 190, 152, .14); border-color: var(--bd-30); color: var(--acc); }

.mhero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.mhero__note { font-weight: 300; font-size: 13px; color: var(--tx-faint); }

.mhero__pic {
  position: sticky; top: 96px;
  border-radius: var(--r-md); overflow: hidden;
  /* тёплое свечение по краю кадра плюс мягкая тень под ним */
  box-shadow: 0 0 0 1px rgba(230, 190, 152, .1),
              0 0 70px rgba(230, 190, 152, .13),
              0 34px 80px rgba(0, 0, 0, .55);
}

.mhero__vid {
  display: block; width: 100%; aspect-ratio: 3/4;
  object-fit: cover; background: var(--bg);
}

/* ---------------------------------------------------------------- заголовки */
.msec__h2 {
  font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15;
  color: var(--tx-white); margin-bottom: 14px;
}
.msec__h2 span { color: var(--acc-lt); }
.msec__lead { font-weight: 300; font-size: 15px; color: var(--tx-dim); max-width: 520px; margin-bottom: 44px; }

/* ------------------------------------------------------------------ фото */
.mgal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mgal__i {
  aspect-ratio: 1/1; border-radius: var(--r); overflow: hidden;
  border: none; background: var(--bg) center/cover no-repeat;
  padding: 0; cursor: pointer; display: block; width: 100%; position: relative;
  transition: box-shadow .3s;
}
/* Кадр лежит на отдельном слое — его и приближаем, рамка при этом не «дышит». */
.mgal__i::before {
  content: ''; position: absolute; inset: 0;
  background: inherit; background-size: cover; background-position: center;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .35s;
}
.mgal__i:hover::before, .mgal__i:focus-visible::before {
  transform: scale(1.07); filter: brightness(1.06) saturate(1.06);
}
.mgal__i:hover, .mgal__i:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(230, 190, 152, .35), 0 14px 34px rgba(0, 0, 0, .45);
}
/* значок «развернуть» в углу — понятнее курсора-лупы и не перекрывает кадр */
.mgal__i:not(.mgal__i--more)::after {
  content: ''; position: absolute; right: 10px; bottom: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--bd-30);
  background: rgba(13, 10, 8, .55) center/13px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eecfb2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 3H3v6M15 21h6v-6M21 9V3h-6M3 15v6h6'/%3E%3C/svg%3E");
  backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(5px); transition: opacity .18s, transform .18s;
}
.mgal__i:hover::after, .mgal__i:focus-visible::after { opacity: 1; transform: none; }

/* восьмая карточка: сколько снимков осталось за кадром */
.mgal__i--more {
  aspect-ratio: 1/1;
  border: 1px dashed var(--bd-25); background: rgba(230, 190, 152, .03);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; cursor: pointer;
}
.mgal__i--more:hover { border-color: var(--acc); background: rgba(230, 190, 152, .07); }
.mgal__n { font-size: 30px; color: var(--acc-lt); line-height: 1; }
.mgal__lab { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-dim); }

/* ----------------------------------------------------------------- видео */
/* Кадр во всю ширину контейнера, внутри — вертикальный ролик целиком.
   Подложка: тот же кадр, размытый, чтобы по бокам не было пустоты. */
.mstage {
  position: relative; width: 100%;
  display: grid; place-items: center;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface) center/cover no-repeat;
}
.mstage::before {
  content: ''; position: absolute; inset: 0;
  backdrop-filter: blur(30px) brightness(.4);
  background: rgba(13, 10, 8, .35);
}
.mvid {
  position: relative;
  max-height: 560px; width: auto; max-width: 100%;
  display: block;
}
@media (max-width: 760px) {
  .mvid { max-height: 70vh; }
}

/* -------------------------------------------------------------- интервью */
.mqa { display: flex; flex-direction: column; gap: 12px; }
.mqa__i {
  background: var(--surface); border: none;
  border-radius: var(--r-md); padding: 22px 26px;
}
.mqa__q { font-weight: 500; font-size: 15px; line-height: 1.5; color: var(--tx-hi); margin-bottom: 10px; }
.mqa__a { font-weight: 300; font-size: 16px; line-height: 1.7; color: #cdbcb6; }
.mqa__more { margin-top: 22px; }

/* ------------------------------------------------------- другие мастера */
.mother { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mother__i {
  border-radius: var(--r); overflow: hidden;
  background: var(--surface); display: block;
  transition: background .18s, transform .18s;
}
.mother__i:hover { background: var(--surface-2); transform: translateY(-3px); }
.mother__pic { aspect-ratio: 4/5; background: var(--bg) center/cover no-repeat; }
.mother__txt { padding: 16px 18px 18px; }
.mother__n { font-weight: 700; letter-spacing: -.02em; font-size: 19px; color: var(--tx-white); }
.mother__m { font-size: 12px; color: var(--tx-dim-2); margin-top: 4px; }
.mother__more { text-align: center; margin-top: 40px; }

/* ------------------------------------------------------------- адаптив */
@media (max-width: 1100px) {
  .mhero { grid-template-columns: 1fr; gap: 36px; }
  .mhero__pic { position: static; max-width: 520px; }
  .mgal, .mother { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .mgal, .mother { grid-template-columns: repeat(2, 1fr); }
  .mspecs__i { min-width: 50%; border-bottom: 1px solid var(--bd-14); }
  .mhero__lead p { font-size: 16px; }
}

/* ---------------------------------------------------------- комментарии */
.cmts { display: flex; flex-direction: column; border-bottom: 1px solid var(--bd-16); }
.cmt { padding: 18px 0; border-top: 1px solid var(--bd-16); }
.cmt__body { min-width: 0; }
/* Главное здесь — сам текст комментария, поэтому он самый светлый.
   Имя, дата и кнопки уходят на второй план и проявляются при наведении. */
.cmt__head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 6px; flex-wrap: wrap; }
.cmt__author { font-weight: 500; font-size: 12.5px; color: var(--tx-dim-2); }
.cmt__date { font-weight: 300; font-size: 12px; color: #6f5f53; }
.cmt__text { font-weight: 300; font-size: 15.5px; line-height: 1.75; color: var(--tx); }
.cmt--reply {
  margin-top: 14px; padding: 0 0 0 18px;
  border-top: none; border-left: 1px solid rgba(230, 190, 152, .18);
}
.cmt--reply .cmt__author { font-size: 12px; }
.cmt--reply .cmt__text { font-size: 14px; color: var(--tx-mute); }
.cmts__acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.cmt-form { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.cmt-form__name { max-width: 280px; }
.cmt-form .textarea { min-height: 88px; }
.cmt-form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 2px; }

/* плашка демо-сборки в блоке комментариев */
.cmt-demo {
  margin-bottom: 20px; padding: 12px 16px;
  border: 1px solid rgba(217, 138, 106, .45); border-radius: var(--r);
  background: rgba(217, 138, 106, .1);
  font-size: 13px; line-height: 1.6; color: #e8b79f;
}

/* лайк и ответ под комментарием */
.cmt__acts { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.cmt__like, .cmt__act {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font); font-weight: 400; font-size: 12.5px;
  letter-spacing: 0; text-transform: none; color: #6f5f53;
  transition: color .18s;
}
.cmt__like { display: inline-flex; align-items: center; gap: 7px; }
.cmt__like svg { transition: transform .2s, fill .2s; }
.cmt__like:hover, .cmt__act:hover { color: var(--acc-lt); }
.cmt__like.is-on { color: var(--acc-lt); }
.cmt__like.is-on svg { fill: currentColor; transform: scale(1.12); }
.cmt-form--reply { margin: 14px 0 4px; padding-left: 18px; border-left: 1px solid rgba(230, 190, 152, .18); }
