.tour-panel-hover {
    transition: box-shadow 0.2s ease;
}

.tour-panel-hover:hover {
    box-shadow: var(--bs-box-shadow);
}

details[open] .tour-open-icon {
    transform: scale(1.05);
}

details[open] .tour-chevron {
    transform: rotate(180deg);
}

.tour-open-icon,
.tour-chevron {
    transition: transform 0.3s ease;
}

/* v23 — Bootstrap branch: same rhythm as Tailwind gap-lg + grid columns */
.numbered-step-grid-timeline__bs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .numbered-step-grid-timeline__bs-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .numbered-step-grid-timeline__bs-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Parity with Tailwind max-w-2xl on header block */
.numbered-step-grid-timeline__area-bw {
    max-width: 42rem;
}

.numbered-step-grid-timeline__min-shrink {
  min-width: 0;
}

/* Bootstrap: сетка + зазор; пропорции как md:w-1/2 и lg: 2/3 + 1/3 */
.values-bento-split__bs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    .values-bento-split__bs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .values-bento-split__bs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .values-bento-split__bs-grid .values-bento-split__bs-item--0 {
        grid-column: span 2;
    }

    .values-bento-split__bs-grid .values-bento-split__bs-item--1 {
        grid-column: span 1;
    }

    .values-bento-split__bs-grid .values-bento-split__bs-item--2 {
        grid-column: span 1;
    }

    .values-bento-split__bs-grid .values-bento-split__bs-item--3 {
        grid-column: span 2;
    }
}

.values-bento-split__subtitle-max {
    max-width: 48rem;
}

/* Текст под абсолютным кругом: отступы сильнее, чем были в bs (избегаем перекрытия) */
.values-bento-split__body {
    min-width: 0;
    margin-top: 6rem;
    margin-left: 0;
}

@media (min-width: 768px) {
    .values-bento-split__body {
        margin-top: 2rem;
        margin-left: 6rem;
    }
}

.values-bento-split__thumb {
    width: 4rem;
    height: 4rem;
}

@media (min-width: 768px) {
    .values-bento-split__thumb {
        width: 5rem;
        height: 5rem;
    }
}

/* 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;
  }
}

