.frame-scroll-container { -webkit-overflow-scrolling: touch; }

/* BS (прев’ю + експорт): картки ~вдвічі вужчі за w-72; TW без змін */
.about-frame-strip--bs .frame-scroll-container > li:not([aria-hidden="true"]),
#section-preview-root.section-preview--bootstrap .frame-scroll-container > li:not([aria-hidden="true"]),
[data-preview-framework="bootstrap"] .frame-scroll-container > li:not([aria-hidden="true"]) {
    flex: 0 0 16rem !important;
    width: 16rem !important;
    max-width: min(16rem, 85vw) !important;
}

.frame-sq-12 { width: 3rem; height: 3rem; flex-shrink: 0; }

.frame-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frame-card-hover:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--bs-box-shadow);
}

.frame-icon-hover {
    transition: transform 0.2s ease;
}

.frame-card-hover:hover .frame-icon-hover {
    transform: scale(1.05);
}

.frame-title-hover {
    transition: color 0.2s ease;
}

.frame-card-hover:hover .frame-title-hover {
    color: var(--bs-primary);
}

/* Stack: как grid grid-cols-1 gap-lg (1.5rem в типичной шкале) */
.vertical-manifesto-grid {
    display: grid;
    width: 100%;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
}

/* Строка карточки: flex + gap-6 + items-start — то же, что tw flex flex-row items-start gap-6 */
.philosophy-v6-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

/* Как absolute -top-6 у бейджа в оригинале */
.philosophy-v6-badge-wrap {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: -1.5rem;
}

.philosophy-v6-box {
    flex: 1;
    min-width: 0;
}

/* Круг как в Bootstrap + фикс «вытянутой» капсулы во flex */
.philosophy-vertical__badge {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    aspect-ratio: 1;
    box-sizing: border-box;
}

.philosophy-bg__img {
    object-fit: cover;
}

#scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* #scroll-container::-webkit-scrollbar {
  display: none;
} */
/* 
#scroll-container {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
} */

/* @media (pointer: fine) {
  #scroll-container {
    scroll-snap-type: x proximity;
  }
} */

.values-scroll-deck__hint-right {
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    right: 1rem;
}

.values-scroll-deck__hint-left {
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    left: 1rem;
}

.values-scroll-deck__item {
    scroll-snap-align: center;
    width: 90%;
    min-width: 280px;
}

@media (min-width: 768px) {
    .values-scroll-deck__item {
        width: 70%;
    }
}

@media (min-width: 992px) {
    .values-scroll-deck__item {
        width: 55%;
    }
}

.values-scroll-deck__card {
    min-height: 380px;
}

.values-scroll-deck__thumb {
    width: 6rem;
    height: 6rem;
}

.values-scroll-deck__overlay {
    height: 6rem;
}

/* team v29 — split quote layout + floating marks & sketch-line decor */
.team-quote__scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.team-quote__mark {
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 18vw, 13rem);
  line-height: 1;
  font-weight: 700;
  user-select: none;
  pointer-events: none;
}

.team-quote__mark--open {
  top: 6%;
  left: 4%;
  animation: team-quote-mark-drift 14s ease-in-out infinite;
}

.team-quote__mark--close {
  right: 5%;
  bottom: 10%;
  animation: team-quote-mark-drift 16s ease-in-out infinite reverse;
  animation-delay: 2s;
}

.team-quote__sketch {
  position: absolute;
  pointer-events: none;
}

.team-quote__sketch--tl {
  top: 4rem;
  left: 0;
  width: 10rem;
  height: 10rem;
}

.team-quote__sketch--br {
  right: 0;
  bottom: 5rem;
  width: 11rem;
  height: 11rem;
}

.team-quote__dots {
  position: absolute;
  top: 42%;
  right: 12%;
  display: flex;
  gap: 0.5rem;
  pointer-events: none;
}

.team-quote__sketch-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.team-quote__sketch-path {
  stroke-linecap: round;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
}

.team-quote__sketch-path--a {
  animation: team-quote-sketch-draw 9s ease-in-out infinite alternate;
}

.team-quote__sketch-path--b {
  animation: team-quote-sketch-draw 11s ease-in-out infinite alternate-reverse;
  animation-delay: 1.5s;
}

.team-quote__dot {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: currentColor;
}

.team-quote__dot--a {
  animation: team-quote-dot-orbit 4s ease-in-out infinite;
}

.team-quote__dot--b {
  animation: team-quote-dot-orbit 4s ease-in-out infinite;
  animation-delay: 0.65s;
}

.team-quote__dot--c {
  animation: team-quote-dot-orbit 4s ease-in-out infinite;
  animation-delay: 1.3s;
}

@keyframes team-quote-mark-drift {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-1.25rem) rotate(5deg) scale(1.06);
    opacity: 0.38;
  }
}

@keyframes team-quote-sketch-draw {
  0% {
    stroke-dashoffset: 280;
    opacity: 0.25;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.75;
  }
}

@keyframes team-quote-dot-orbit {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.35;
  }
  33% {
    transform: translate(0.35rem, -0.65rem) scale(1.4);
    opacity: 1;
  }
  66% {
    transform: translate(-0.25rem, 0.45rem) scale(0.85);
    opacity: 0.5;
  }
}

.team-quote__image-wrap {
  position: relative;
  overflow: hidden;
}

.team-quote__image-wrap img {
  transition: transform 300ms ease;
}

.team-quote__image-wrap:hover img {
  transform: translateY(-2%);
}

.team-quote__img {
  width: 100%;
  height: 24rem;
  object-fit: cover;
  object-position: center;
  display: block;
}

.team-quote__bio {
  text-align: justify;
  text-align-last: left;
}

@media (max-width: 1024px) {
  .team-quote__bio {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-quote__mark,
  .team-quote__sketch-path,
  .team-quote__dot {
    animation: none;
  }

  .team-quote__sketch-path {
    stroke-dashoffset: 0;
    opacity: 0.4;
  }
}

