:root {
  --stachanov-rood: #9D3030;
  --ink: #111827; 
  --paper: #ffffff;
  --page: #f9fafb;
}

section .grid > .bg-white.rounded-md {
  transition: box-shadow .25s ease, transform .2s ease;
}
section .grid > .bg-white.rounded-md:hover {
  box-shadow: 0 12px 24px -16px rgba(0,0,0,.25);
  transform: translateY(-2px);
}

.senior-carousel {
  --fade-w: 36px;
  position: relative;
}
.senior-carousel::before,
.senior-carousel::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: var(--fade-w);
  pointer-events: none; z-index: 5;
}
.senior-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--page), rgba(249,250,251,0));
}
.senior-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--page), rgba(249,250,251,0));
}


.senior-track {
  scroll-behavior: smooth;
  padding-bottom: .5rem;
  padding-top: .5rem;
}
.senior-track::-webkit-scrollbar { display: none; }
.senior-track { -ms-overflow-style: none; scrollbar-width: none; }

.senior-card {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.senior-card:hover {
  border-color: var(--stachanov-rood);
  box-shadow: 0 14px 28px -18px rgba(17,24,39,.35);
  transform: translateY(-2px);
}


.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 9999px;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(6px);
  border: 1px solid rgba(0,0,0,.08);
  color: var(--ink);
  box-shadow: 0 8px 18px -12px rgba(0,0,0,.4);
  z-index: 10;
}
@media (min-width: 640px) {
  .carousel-btn { display: inline-flex; }
}
.carousel-prev { left: .25rem; }
.carousel-next { right: .25rem; }
.carousel-btn:hover {
  color: var(--paper);
  background: var(--stachanov-rood);
  border-color: var(--stachanov-rood);
}


h1, h2, h3 { color: var(--ink); }
.senior-card h3, .senior-card p { margin: 0; }



.senior-card:focus-within,
.carousel-btn:focus-visible {
  outline: 2px solid var(--stachanov-rood);
  outline-offset: 2px;
}

.li-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9999px;
  border: 1px solid var(--stachanov-rood);
  color: var(--stachanov-rood);
  background: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  text-transform: lowercase;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.li-btn:hover {
  background: var(--stachanov-rood);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -15px rgba(157,48,48,.6);
}
.li-btn:focus-visible {
  outline: 2px solid var(--stachanov-rood);
  outline-offset: 2px;
}
.li-btn svg,
.li-btn .li-icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.senior-track { gap: 1.25rem; padding-bottom: 1rem; }

.section-title {
  text-align: center;
  color: var(--stachanov-rood);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-title::after {
  content: "";
  width: 90px;
  height: 2px;
  background: var(--stachanov-rood);
  margin-top: .6rem;
  border-radius: 2px;
}
