/* Карточка «Как голосовая фраза превращается во встречу» с официального сайта Капсулы (kapsula.avat.studio, раздел #how):
   стили и анимация скопированы оттуда. На обложке кейса она стоит справа, слегка размыта, фон тёмный. */
.kc-hero--dark { background: var(--hero-bg, #0a0b0d); color: #f0f2f4; }
.kc-hero--dark .kc-hero-bg { background: var(--hero-bg, #0a0b0d); }
.kc-hero--dark .kc-hero-bg::before { display: none; }
.kc-hero--dark .kc-hero-bg::after { background: radial-gradient(55% 75% at 76% 42%, var(--hero-glow, rgba(53, 217, 141, .16)), transparent 72%); }
.kc-hero--dark .kc-h1, .kc-hero--dark .kc-lead { color: #f0f2f4; }
.kc-hero--dark .kc-lead { color: #c4cad0; }
.kc-hero--dark .kc-crumbs, .kc-hero--dark .kc-crumbs a { color: #8b929a; }
.kc-hero--dark .kc-crumbs span:last-child { color: #c4cad0; }

.kc-hero-reel { position: absolute; z-index: 0; top: calc(50% - 108px); left: 52%; right: 1.6%; width: auto; max-width: 860px; margin-left: auto; transform: translateY(-50%); pointer-events: none;
  filter: blur(.4px); opacity: 1;
  --on-dark: #f0f2f4; --on-dark-2: #a7aeb6; --on-dark-3: #8b929a; --g-bright: #35d98d; --ease-out: cubic-bezier(.16, 1, .3, 1); --beat: 9s;
  font-family: Inter, system-ui, sans-serif; }
.kc-hero--dark .kc-wrap { position: relative; z-index: 1; }
.kc-hero--dark .kc-hero-copy { width: 48%; } /* экран делится пополам: слева текст, справа карточка */

.reel__window { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: clamp(22px, 2.4vw, 32px);
  background: radial-gradient(circle at 18% 0, rgba(53,217,141,.09), transparent 31%), linear-gradient(145deg, #111619, #0d1012 68%);
  box-shadow: 0 42px 90px -46px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06); }
.reel__chrome { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 clamp(18px, 2vw, 28px); border-bottom: 1px solid rgba(255,255,255,.08); }
.reel__brand, .reel__local { display: inline-flex; align-items: center; }
.reel__brand { gap: 9px; color: var(--on-dark); font-size: 13px; font-weight: 600; }
.reel__brand > i { position: relative; width: 13px; height: 23px; overflow: hidden; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 6px rgba(255,255,255,.09); }
.reel__brand > i b { position: absolute; inset: 51% 1px 1px; border-radius: 0 0 999px 999px; background: var(--g-bright); box-shadow: 0 0 10px rgba(53,217,141,.48); }
.reel__local { gap: 7px; color: var(--on-dark-3); font: 500 9px/1 ui-monospace, "JetBrains Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.reel__local i { width: 6px; height: 6px; border-radius: 50%; background: var(--g-bright); box-shadow: 0 0 0 5px rgba(53,217,141,.07), 0 0 14px rgba(53,217,141,.35); }
.reel__capture { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 15px; align-items: center; margin: 0 clamp(18px, 2.2vw, 32px); padding: 24px 0 21px; border-bottom: 1px solid rgba(255,255,255,.08); }
.reel__mic { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(53,217,141,.26); border-radius: 50%; background: rgba(53,217,141,.09); color: var(--g-bright); box-shadow: 0 0 0 9px rgba(53,217,141,.024); }
.reel__mic svg { width: 20px; height: 20px; }
.reel__wave { min-width: 0; height: 38px; display: flex; align-items: center; gap: clamp(3px, .45vw, 6px); overflow: hidden; }
.reel__wave i { flex: 1 1 3px; max-width: 4px; height: 7px; border-radius: 999px; background: rgba(240,242,244,.34); transform-origin: center; }
.reel__wave i:nth-child(4n+2), .reel__wave i:nth-child(7n) { height: 18px; }
.reel__wave i:nth-child(5n+3) { height: 28px; background: var(--g-bright); }
.reel__listening { display: inline-flex; align-items: center; gap: 7px; color: var(--on-dark-3); font: 500 9px/1 ui-monospace, "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.reel__listening i { width: 6px; height: 6px; border-radius: 50%; background: var(--g-bright); }
.reel__content { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: clamp(24px, 3vw, 46px); align-items: stretch; padding: clamp(26px, 3vw, 42px) clamp(18px, 2.2vw, 32px); }
.reel__phrase { display: grid; align-content: center; gap: 12px; min-width: 0; }
.reel__phrase > small, .reel__result small { color: var(--g-bright); font: 500 9px/1.2 ui-monospace, "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.reel__phrase > p { margin: 0; max-width: 22ch; color: var(--on-dark); font-size: clamp(23px, 2.2vw, 34px); line-height: 1.12; letter-spacing: -.035em; }
.reel__phrase ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 3px 0 0; padding: 0; list-style: none; }
.reel__phrase li { padding: 6px 10px; border: 1px solid rgba(53,217,141,.14); border-radius: 999px; background: rgba(53,217,141,.067); color: rgba(240,242,244,.88); font: 500 10px/1 ui-monospace, "JetBrains Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.reel__result { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 13px; align-items: start; padding: clamp(20px, 2.2vw, 30px); border: 1px solid rgba(53,217,141,.16); border-radius: 20px; background: linear-gradient(145deg, rgba(53,217,141,.1), rgba(255,255,255,.035)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.reel__check { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--g-bright); color: #052a17; font-size: 17px; font-weight: 700; }
.reel__result > span:last-child { min-width: 0; display: grid; gap: 7px; }
.reel__result b { color: var(--on-dark); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.18; }
.reel__result em { color: var(--on-dark-3); font-size: 12px; font-style: normal; }
.reel__timeline { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 0; padding: 0 clamp(18px, 2.2vw, 32px); border-top: 1px solid rgba(255,255,255,.08); list-style: none; }
.reel__timeline li { position: relative; display: flex; align-items: center; gap: 9px; min-height: 62px; color: var(--on-dark-3); }
.reel__timeline li + li { border-left: 1px solid rgba(255,255,255,.08); padding-left: clamp(14px, 2vw, 28px); }
.reel__timeline span { font: 500 9px/1 ui-monospace, "JetBrains Mono", monospace; letter-spacing: .08em; }
.reel__timeline b { font-size: 12px; font-weight: 500; }
.reel__timeline li::after { content: ""; position: absolute; left: 0; right: 18px; bottom: -1px; height: 1px; background: var(--g-bright); transform: scaleX(0); transform-origin: left center; }
@keyframes reelWave { 0%, 100% { transform: scaleY(.45); opacity: .48; } 50% { transform: scaleY(1.35); opacity: 1; } }
@keyframes reelPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(53,217,141,.24); } 50% { box-shadow: 0 0 0 8px rgba(53,217,141,0); } }
@keyframes reelResult { 0%, 48% { opacity: .68; transform: translateY(6px); } 58%, 90% { opacity: 1; transform: none; } 100% { opacity: .68; transform: translateY(6px); } }
@keyframes reelToken { 0%, 25% { opacity: .32; transform: translateY(3px); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: .32; transform: translateY(3px); } }
@keyframes reelStepA { 0%, 5%, 23%, 100% { color: var(--on-dark-3); } 8%, 20% { color: var(--on-dark); } }
@keyframes reelStepB { 0%, 20%, 56%, 100% { color: var(--on-dark-3); } 26%, 52% { color: var(--on-dark); } }
@keyframes reelStepC { 0%, 52%, 94%, 100% { color: var(--on-dark-3); } 60%, 90% { color: var(--on-dark); } }
@keyframes reelLineA { 0%, 5%, 23%, 100% { transform: scaleX(0); } 8%, 20% { transform: scaleX(1); } }
@keyframes reelLineB { 0%, 20%, 56%, 100% { transform: scaleX(0); } 26%, 52% { transform: scaleX(1); } }
@keyframes reelLineC { 0%, 52%, 94%, 100% { transform: scaleX(0); } 60%, 90% { transform: scaleX(1); } }
.reel.is-live .reel__wave i { animation: reelWave .9s ease-in-out infinite; }
.reel.is-live .reel__wave i:nth-child(3n+1) { animation-delay: -.28s; }
.reel.is-live .reel__wave i:nth-child(4n+2) { animation-delay: -.62s; }
.reel.is-live .reel__listening i { animation: reelPulse 1.5s ease-out infinite; }
.reel.is-live .reel__result { animation: reelResult var(--beat) var(--ease-out) infinite; }
.reel.is-live .reel__phrase li { animation: reelToken var(--beat) var(--ease-out) infinite; }
.reel.is-live .reel__phrase li:nth-child(2) { animation-delay: .12s; }
.reel.is-live .reel__phrase li:nth-child(3) { animation-delay: .24s; }
.reel.is-live .reel__phrase li:nth-child(4) { animation-delay: .36s; }
.reel.is-live .reel__timeline li:nth-child(1) { animation: reelStepA var(--beat) linear infinite; }
.reel.is-live .reel__timeline li:nth-child(2) { animation: reelStepB var(--beat) linear infinite; }
.reel.is-live .reel__timeline li:nth-child(3) { animation: reelStepC var(--beat) linear infinite; }
.reel.is-live .reel__timeline li:nth-child(1)::after { animation: reelLineA var(--beat) linear infinite; }
.reel.is-live .reel__timeline li:nth-child(2)::after { animation: reelLineB var(--beat) linear infinite; }
.reel.is-live .reel__timeline li:nth-child(3)::after { animation: reelLineC var(--beat) linear infinite; }
@media (max-width: 950px) {
  /* на узком экране карточка уходит за текст и становится ещё тише */
  .kc-hero--dark .kc-hero-copy { width: 100%; }
  .kc-hero-reel { left: auto; right: -30%; width: 120%; max-width: none; margin-left: 0; top: auto; bottom: -4%; transform: none; opacity: .34; filter: blur(3px);
    -webkit-mask-image: none; mask-image: none; }
  .kc-hero--dark .kc-hero-bg::after { background: linear-gradient(180deg, rgba(10,11,13,.55), rgba(10,11,13,.2)); }
  .reel__content { grid-template-columns: 1fr; }
  .reel__listening { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reel.is-live .reel__wave i, .reel.is-live .reel__listening i, .reel.is-live .reel__result, .reel.is-live .reel__phrase li, .reel.is-live .reel__timeline li, .reel.is-live .reel__timeline li::after { animation: none; }
  .reel__result, .reel__phrase li { opacity: 1; transform: none; }
}

/* Обложка без выглядывающего окна макета: занимает ровно первый экран (как полноценный блок), следующий блок не заезжает.
   Текст и карточка стоят по центру по высоте. */
@media (min-width: 951px) {
  .kc-hero--tight { min-height: max(calc(100svh - 76px), 680px); padding: 40px 0; }
  .kc-hero--tight .kc-hero-reel { top: calc(50% - 22px); transform: translateY(-50%); }
  .kc-hero--tight .kc-hero-copy { padding: 0; }
}

/* Цветное фото на заднем плане тёмной обложки: затемнено и размыто, под текстом темнее, справа ярче (как дом у «Дома Фасадов») */
.kc-hero--photo .kc-hero-bg::before { display: block; inset: 0; left: 0; right: 0; width: auto; aspect-ratio: auto; background-position: 62% 40%; background-size: cover;
  filter: blur(var(--hero-blur, 5px)) saturate(1.5) brightness(1); transform: scale(1.08); transform-origin: center; -webkit-mask-image: none; mask-image: none; opacity: 1; }
.kc-hero--photo .kc-hero-bg::after { background: linear-gradient(90deg, rgba(10, 11, 13, .72) 0%, rgba(10, 11, 13, .38) 40%, rgba(10, 11, 13, 0) 100%), linear-gradient(180deg, rgba(10, 11, 13, .35), rgba(10, 11, 13, 0) 30%, rgba(10, 11, 13, .55) 100%); }

.kc-hero--photo .lv-win { background: rgba(10, 12, 14, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (max-width: 950px) { .kc-hero--photo .kc-hero-bg::after { background: linear-gradient(180deg, rgba(10, 11, 13, .66), rgba(10, 11, 13, .78)); } }
@media (max-width: 950px) { .kc-hero--photo .kc-hero-bg::before { filter: blur(5px) saturate(1.3) brightness(.55); } .kc-hero--photo .kc-hero-bg::after { background: linear-gradient(180deg, rgba(10, 11, 13, .55), rgba(10, 11, 13, .7)); } }
