/* Specialists: a carousel of landscape photos shown whole (4:3, no cropping) */
.sc-viewport { margin-top: 28px; overflow: hidden; touch-action: pan-y; }
/* The track moves by transform; specialists.js rotates the cards for an endless loop */
.sc-track {
  display: flex; gap: 20px;
  margin: 0; padding: 0; list-style: none;
  will-change: transform;
}

.sc-card { flex: 0 0 calc((100% - 60px) / 4); min-width: 0; }
.sc-card a { display: grid; gap: 6px; color: var(--green, #1f5546); text-decoration: none; }
.sc-photo { display: block; overflow: hidden; margin-bottom: 10px; border-radius: 20px; aspect-ratio: 4 / 3; background: #e8e5dd; }
.sc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.sc-card a:hover .sc-photo img { transform: scale(1.03); }
/* Same grid in every card: surname on the first line, name and patronymic on the second,
   two lines reserved for the role, so experience and price sit at one height everywhere */
.sc-name { font: 500 18px/1.25 var(--font-heading, "Montserrat", Arial, sans-serif); letter-spacing: -.01em; }
.sc-name > span { display: block; }
.sc-name { min-height: var(--sc-name-h, auto); }
.sc-role {
  min-height: var(--sc-role-h, calc(2 * 1.35em));
  font: 400 15px/1.35 var(--font-sans, "Golos Text", Arial, sans-serif); color: rgba(31, 85, 70, .78);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-meta { font: 500 14px/1.3 var(--font-sans, "Golos Text", Arial, sans-serif); color: #b65334; }
.sc-card a:focus-visible { outline: 2px solid var(--green, #1f5546); outline-offset: 4px; border-radius: 20px; }

.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.sc-all {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: 999px;
  background: #b65334; color: #fff !important; font: 500 16px/1.2 var(--font-sans, "Golos Text", Arial, sans-serif); text-decoration: none;
}
.sc-all:hover { background: #9c4429; }
.sc-arrows { display: flex; gap: 8px; }
.sc-arrow {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(31, 85, 70, .3); border-radius: 50%; background: transparent; color: #1f5546; cursor: pointer;
}
.sc-arrow:hover { border-color: #1f5546; }
.sc-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1100px) { .sc-card { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 760px) {
  .sc-track { gap: 14px; }
  .sc-card { flex-basis: 78%; }
  .sc-name { font-size: 17px; }
  .sc-foot { margin-top: 22px; }
  .sc-all { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {  .sc-photo img { transition: none; } }
