/* ═══════════════════════════════════════════════════════════════
   Ведущие «Маэстро»: секция «Кто проводит программу» и страница ведущего.
   Подключается после site.min.css, improvements.css и cases.css.
   Цвета, шрифты и радиусы — только токены дизайн-системы.
═══════════════════════════════════════════════════════════════ */

/* ─── Фон: тёмно-синий с мятным и песочным свечением ─── */
.host-band {
  --section-bg:
    radial-gradient(46% 62% at 82% 12%, var(--ms-mint-glow) 0%, transparent 70%),
    radial-gradient(40% 58% at 6% 96%, var(--ms-sand-glow) 0%, transparent 70%),
    linear-gradient(160deg, var(--ms-navy-700) 0%, var(--ms-navy) 48%, var(--ms-navy-deep) 100%);
  --section-detail: none;
  --section-line: var(--ms-line-navy);
  overflow: clip;
  scroll-margin-top: 110px;
}

.host-deco {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* точечный узор бренда: мятный + песочный, около 5 % */
.host-deco::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--ms-mint) 1px, transparent 1.6px),
    radial-gradient(circle, var(--ms-sand) 1px, transparent 1.6px);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
  opacity: 0.06;
  -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 60%, transparent 95%);
  mask-image: linear-gradient(115deg, transparent 20%, #000 60%, transparent 95%);
}

/* большая корона-водяной знак */
.host-deco__crown {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: min(620px, 70vw);
  opacity: 0.05;
}

.host-wrap {
  position: relative;
  z-index: 1;
}

.host-wrap .section-title {
  margin-bottom: 0;
}

/* ─── Раскладка секции ─── */
.host-feature {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3.4vw, 48px);
  margin-top: 40px;
}

/* ─── Портрет с именем ─── */
.host-portrait {
  position: relative;
  margin: 0;
  isolation: isolate;
}

/* рамка-тень со смещением: даёт глубину без тяжёлой тени */
.host-portrait::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--ms-mint-line);
  border-radius: var(--radius-md);
  z-index: -1;
}

.host-portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--ms-line-navy);
  background: var(--ms-navy-deep);
}

.host-portrait__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.host-portrait__frame::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: var(--grad-protect);
  pointer-events: none;
}

.host-portrait__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
}

.host-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ms-white);
  /* значения токенов --text-shadow-video-* из дизайн-системы: в site.min.css их пока нет */
  text-shadow: var(--text-shadow-video-name, 0.007em 0.021em 0.022em color-mix(in srgb, var(--ms-navy-deep) 29%, transparent));
}

.host-rule {
  display: block;
  width: 96px;
  height: 4px;
  margin: 14px 0 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-rule);
}

.host-role {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ms-mint);
  text-shadow: var(--text-shadow-video-role, 0.027em 0.054em 0.043em color-mix(in srgb, var(--ms-navy-deep) 39%, transparent));
}

/* ─── Текст и факты ─── */
.host-info {
  min-width: 0;
}

.host-lead {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ms-on-navy-90);
}

.host-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.host-facts li {
  padding: 14px 14px 13px;
  border: 1px solid var(--ms-line-navy);
  border-top: 3px solid var(--ms-sand);
  border-radius: var(--radius-md);
  background: var(--ms-fill-navy);
}

.host-facts b {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: 20px;
  line-height: 1.1;
  color: var(--ms-white);
  white-space: nowrap;
}

.host-facts span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ms-on-navy-65);
}

.host-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.host-formats .badge {
  font-size: 11px;
  padding: 6px 12px;
}

/* ─── Цитата гостя ─── */
.host-quote {
  position: relative;
  margin: 24px 0 0;
  padding: 20px 22px 18px 58px;
  border: 1px solid var(--ms-line-navy);
  border-radius: var(--radius-md);
  background: var(--ms-fill-navy);
}

.host-quote::before {
  content: "«";
  position: absolute;
  left: 18px;
  top: 8px;
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: 48px;
  line-height: 1;
  color: var(--ms-sand);
}

.host-quote p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ms-white);
}

.host-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ms-on-navy-65);
}

.host-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.host-actions--flush {
  margin-top: 0;
}

/* ─── Ряд видео под секцией: промо и отзывы гостей ─── */
.host-reel {
  margin-top: 48px;
}

.host-reel__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-sand);
}

.host-reel__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ms-line-navy);
}

.host-reel__body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 48px);
  align-items: center;
  margin-top: 18px;
}

.host-videos.host-videos--row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.host-reel__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.host-reel__aside .host-quote {
  margin: 0;
  align-self: stretch;
  border-top: 3px solid var(--ms-sand);
}

.host-reel__aside .host-quote p {
  font-size: 19px;
}

.host-videos .case-video:focus-visible {
  outline: 2px solid var(--ms-sand-300);
  outline-offset: -4px;
}

/* ═══════════════ Страница ведущего ═══════════════ */

.host-hero {
  padding-top: 40px;
}

.host-hero .host-feature {
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  margin-top: 0;
}

.host-hero__title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ms-white);
}

.host-hero__title small {
  display: block;
  margin-top: 16px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--ms-mint);
}

.host-hero .host-lead {
  margin-top: 22px;
  max-width: 560px;
}

.host-crumbs {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ms-on-navy-45);
}

.host-crumbs a {
  color: var(--ms-on-navy-65);
  text-decoration: none;
}

.host-crumbs a:hover {
  color: var(--ms-mint);
}

/* о ведущем */
.host-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-top: 32px;
}

.host-about p {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ms-on-navy-90);
}

.host-skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.host-skill {
  padding: 18px 18px 16px;
  border: 1px solid var(--ms-line-navy);
  border-top: 3px solid var(--ms-mint);
  border-radius: var(--radius-md);
  background: var(--ms-fill-navy);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
}

.host-skill:hover {
  transform: translateY(calc(var(--hover-lift, 3px) * -1));
  border-color: var(--ms-on-navy-25);
  border-top-color: var(--ms-mint);
}

.host-skill h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ms-white);
}

.host-skill p {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ms-on-navy-65);
}

/* видео */
.host-videos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 220px));
  gap: 16px;
  margin-top: 32px;
}

.host-videos .case-video-tile {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--ms-line-navy);
}

/* цитаты */
.host-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.host-quotes .host-quote {
  margin: 0;
  border-top: 3px solid var(--ms-sand);
}

.host-quotes .host-quote p {
  font-size: 19px;
}

/* кадры */
.host-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.host-gallery figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ms-navy-deep);
}

.host-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.host-gallery figure:hover img {
  transform: scale(1.03);
}

/* пример работы */
.host-case {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin-top: 32px;
  padding: 18px;
  border: 1px solid var(--ms-line-navy);
  border-top: 3px solid var(--ms-mint);
  border-radius: var(--radius-md);
  background: var(--ms-fill-navy);
}

.host-case__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.host-case__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-case time {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ms-on-navy-65);
}

.host-case h3 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ms-white);
}

.host-case p {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ms-on-navy-90);
}

/* финальный призыв */
.host-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--ms-mint-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 120% at 100% 0%, var(--ms-mint-glow) 0%, transparent 70%),
    var(--ms-fill-navy);
}

.host-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ms-white);
}

.host-cta p {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ms-on-navy-65);
}

.host-section-head {
  max-width: 720px;
}

/* ─── Адаптив ─── */
@media (max-width: 1100px) {
  .host-feature {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  }

  .host-videos {
    grid-template-columns: repeat(3, minmax(0, 220px));
  }
}

@media (max-width: 860px) {
  .host-reel__body,
  .host-hero .host-feature,
  .host-about,
  .host-case {
    grid-template-columns: minmax(0, 1fr);
  }

  .host-hero .host-portrait {
    max-width: 420px;
  }

  .host-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .host-quotes {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .host-feature {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 28px;
  }

  .host-feature > .host-portrait {
    max-width: 420px;
    margin-right: 14px;
  }

  .host-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* на телефоне ряд роликов — лента с прокруткой пальцем */
  .host-videos.host-videos--row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 44%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: -28px;
    padding-right: 28px;
  }

  .host-videos.host-videos--row::-webkit-scrollbar {
    display: none;
  }

  .host-videos.host-videos--row > * {
    scroll-snap-align: start;
  }

  .host-reel {
    margin-top: 36px;
  }

  .host-skills {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .host-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .host-facts li {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  .host-facts span {
    margin-top: 0;
  }

  .host-portrait__caption {
    left: 18px;
    right: 18px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .host-skill,
  .host-gallery img {
    transition: none;
  }
}

/* ─── Ссылка на страницу ведущего в карточке секции «Команда» на главной ─── */
.team-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ms-mint);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.team-card__more::after {
  content: "→";
  transition: transform var(--dur-base) var(--ease-out);
}

.team-card__more:hover {
  color: var(--ms-mint-300);
}

.team-card__more:hover::after {
  transform: translateX(3px);
}

.team-card__more:focus-visible {
  outline: 2px solid var(--ms-mint);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}