/* =========================================
   «Заклади, які нам довіряють» — home page block
   Top: the same two-column layout as the SEO sections above it (.seo-block: heading left, text right),
   then one swipeable rail of tall cards (the testimonial clip first, then the venues)
   and the two site-style buttons. Class prefix tv-.
   ========================================= */
/* top: the same two-column layout as «Як обрати обладнання…» / «Питання та відповіді» (.seo-block: heading left, text right) */
.tv-top { padding-bottom: 32px; }
.tv-col { position: relative; min-width: 0; padding-right: 110px; }
.tv-top .seo-lead { margin-bottom: 14px; }
.tv-links { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.tv-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tv-links a:hover { color: var(--accent-hover); }

/* what Oksana said, as an editorial pull quote: a hairline above, her words set larger, a small credit line.
   No quotation marks, no avatar, no card. */
.tv-quote { margin: 8px 0 0; padding-top: 22px; border-top: 1px solid var(--border-light); }
.tv-quote blockquote { margin: 0; }
.tv-quote blockquote p { margin: 0; max-width: 36em; font-size: 21px; font-weight: 500; line-height: 1.55; letter-spacing: -0.01em; color: var(--text-main); text-wrap: pretty; }
.tv-quote figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin-top: 16px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.tv-quote-name { font-weight: 700; color: var(--text-main); }
.tv-quote-role::before, .tv-quote-watch::before { content: '·'; margin: 0 10px; color: var(--text-muted); }
.tv-quote-watch { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--accent); cursor: pointer; }
.tv-quote-watch:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
    .tv-quote blockquote p { font-size: 18px; }
    .tv-quote figcaption { flex-direction: column; align-items: flex-start; gap: 4px; }
    .tv-quote-role::before, .tv-quote-watch::before { content: none; }
    .tv-quote-watch { margin-top: 6px; }
}

/* arrows: the same round white buttons as the blog rail (.blog-nav), bottom right of the text column */
.tv-nav { position: absolute; right: 0; bottom: 0; display: flex; gap: 10px; }
.tv-arrow { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid var(--border-light); color: var(--accent); box-shadow: 0 6px 18px rgba(27, 49, 82, 0.16); cursor: pointer; transition: background 0.2s ease, opacity 0.2s ease; }
.tv-arrow:hover { background: var(--accent-soft); }
.tv-arrow:disabled { opacity: 0.35; cursor: default; background: #fff; }
@media (max-width: 1024px) { .tv-nav { display: none; } .tv-col { padding-right: 0; } }

/* the rail */
.tv-rail { list-style: none; margin: 0; padding: 2px 0 8px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tv-rail::-webkit-scrollbar { display: none; }
.tv-card { flex: 0 0 280px; height: 360px; border-radius: 20px; overflow: hidden; scroll-snap-align: start; background: #1b2434; }
.tv-card--clip { flex-basis: 203px; }
.tv-card figure { margin: 0; position: relative; width: 100%; height: 100%; }
.tv-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) { .tv-card:hover img { transform: scale(1.04); } }
.tv-card[role="button"] { cursor: zoom-in; }
.tv-card figcaption { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 90px 20px 18px; color: #fff; background: linear-gradient(to top, rgba(10, 22, 40, 0.78), rgba(10, 22, 40, 0.32) 60%, rgba(10, 22, 40, 0)); }
.tv-card figcaption span { order: -1; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, 0.84); }
.tv-card figcaption strong { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }

/* the clip card: a poster, the whole card opens the player */
.tv-frame { position: relative; width: 100%; height: 100%; }
.tv-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-open { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.tv-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 20px; }
/* the play button: frosted glass over the picture */
.tv-play, .tv-lb-play {
    display: grid; place-items: center; border-radius: 50%; color: #fff; padding: 0;
    background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 8px 28px rgba(8, 20, 40, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.tv-play { width: 46px; height: 46px; }
.tv-play svg, .tv-lb-play svg { filter: drop-shadow(0 1px 3px rgba(8, 20, 40, 0.35)); }
@media (hover: hover) { .tv-open:hover .tv-play { transform: scale(1.08); background: rgba(255, 255, 255, 0.34); } .tv-lb-play:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.34); } }
.tv-who { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; padding: 56px 16px 14px; color: #fff; background: linear-gradient(to top, rgba(10, 22, 40, 0.72), rgba(10, 22, 40, 0)); pointer-events: none; }
.tv-who strong { font-size: 15px; font-weight: 700; }
.tv-who span { font-size: 12.5px; color: rgba(255, 255, 255, 0.84); }

/* the viewer: stories-style, like Instagram on a computer. The current item large in the middle,
   the neighbours smaller and dimmed beside it, thin progress bars on top. No borders, no shadows, no scrollbars. */
.tv-lb { position: fixed; inset: 0; z-index: 10050; background: rgba(12, 20, 34, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.35s ease; overscroll-behavior: none; touch-action: none; }
.tv-lb.is-open { opacity: 1; }
.tv-lb:focus { outline: none; }
.tv-lb-stage { position: absolute; inset: 0; overflow: hidden; }
.tv-lb-card { position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--h); border-radius: 14px; overflow: hidden; background: #0d1626; cursor: pointer; transform-origin: center center; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, filter 0.4s ease; will-change: transform; }
.tv-lb-card:not(.is-active) { filter: brightness(0.48) saturate(0.8); }
@media (hover: hover) { .tv-lb-card:not(.is-active):hover { filter: brightness(0.7) saturate(0.9); } }
.tv-lb-card.is-active { cursor: default; }
.tv-lb-media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: #0d1626; }
.tv-lb-cap { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 3px; padding: 96px 22px 22px; color: #fff; background: linear-gradient(to top, rgba(6, 12, 22, 0.72), rgba(6, 12, 22, 0)); pointer-events: none; transition: opacity 0.3s ease; }
.tv-lb-cap strong { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.tv-lb-cap span { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.tv-lb-card.is-playing .tv-lb-cap { opacity: 0; }
.tv-lb-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; width: 62px; height: 62px; cursor: pointer; }
.tv-lb-card:not(.is-active) .tv-lb-play, .tv-lb-card.is-playing .tv-lb-play { display: none; }
.tv-lb-card:not(.is-active) video { pointer-events: none; }

/* progress bars over the top edge of the current item */
.tv-lb-bars { position: absolute; left: 50%; top: calc(50% - var(--h) / 2 + 12px); z-index: 30; width: calc(var(--w) - 28px); translate: -50% 0; display: flex; gap: 4px; pointer-events: none; }
.tv-lb-bars i { flex: 1 1 0; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.32); transition: background 0.3s ease; }
.tv-lb-bars i.is-done { background: rgba(255, 255, 255, 0.72); }
.tv-lb-bars i.is-on { background: #fff; }

/* arrows sit in the gaps beside the current item */
.tv-lb-arrow { position: absolute; top: 50%; z-index: 30; width: 34px; height: 34px; translate: -50% -50%; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #1a2433; background: rgba(255, 255, 255, 0.92); cursor: pointer; transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.tv-lb-arrow:hover { transform: scale(1.08); }
.tv-lb-arrow:disabled { opacity: 0; pointer-events: none; }
.tv-lb-prev { left: calc(50% - var(--w) / 2 - 36px); }
.tv-lb-next { left: calc(50% + var(--w) / 2 + 36px); }

.tv-lb-close { position: fixed; top: 18px; right: 18px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: transparent; cursor: pointer; transition: background 0.2s ease; }
.tv-lb-close:hover { background: rgba(255, 255, 255, 0.12); }
.tv-lb-close:focus-visible, .tv-lb-arrow:focus-visible, .tv-lb-play:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 3px; }
.tv-lb-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tv-lb.is-instant, .tv-lb.is-instant * { transition: none !important; }

@media (max-width: 700px) {
    .tv-lb { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .tv-lb-card { border-radius: 0; }
    .tv-lb-arrow { display: none; }
    .tv-lb-bars { top: calc(50% - var(--h) / 2 + 10px + env(safe-area-inset-top, 0px)); }
    .tv-lb-close { top: calc(22px + env(safe-area-inset-top, 0px)); right: 10px; background: rgba(0, 0, 0, 0.22); }
    .tv-lb-cap { padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .tv-lb, .tv-lb-card { transition-duration: 0.01ms !important; } }

/* buttons after the rail */
.tv-foot { display: flex; justify-content: flex-end; margin-top: 28px; }
.tv-cta { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.tv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; text-decoration: none; white-space: nowrap; background: var(--accent); color: #fff; transition: background 0.2s ease; }
.tv-btn:hover { background: var(--accent-hover); color: #fff; }
.tv-btn--ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tv-btn--ghost:hover { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 760px) {
    .tv-top { padding-bottom: 20px; }
    .tv-rail { margin: 0 -15px; padding: 2px 15px 8px; scroll-padding-inline: 15px; }
    .tv-foot { margin-top: 22px; }
    .tv-card { flex-basis: 74%; }
    .tv-card--clip { flex-basis: 203px; }
    .tv-cta { width: 100%; }
    .tv-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .tv-card img { transition-duration: 0.01ms !important; } }
