@charset "UTF-8";
/* Страница «Наша команда». Шапка и вкладки: components/lists-head.css */

.deya-team { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px 28px; align-items: start; }
.deya-team__item { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.deya-team__photo { height: 380px; border-radius: 28px; overflow: hidden; position: relative; background: var(--gray); }
.deya-team__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Монограмма, если у сотрудника нет фото */
.deya-team__mono { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-d), #0E9DB0); color: #fff; font-family: var(--serif); font-size: clamp(64px, 9vw, 108px); line-height: 1; letter-spacing: .02em; }
.deya-team__name { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; }
.deya-team__role { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--teal-d); }
.deya-team__quote { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: #2B424A; }
.deya-team__logo { margin-top: 80px; display: flex; justify-content: center; }
.deya-team__logo img { display: block; width: min(420px, 100%); height: auto; }

/* «Ступенька» карточек как в макете (на широких экранах) */
@media (min-width: 901px) {
	.deya-team__item:nth-child(3n + 2) { margin-top: 40px; }
}
@media (max-width: 900px) {
	.deya-team { margin-top: 40px; gap: 40px 24px; }
	.deya-team__logo { margin-top: 56px; }
}
@media (max-width: 720px) {
	.deya-team__photo { height: auto; aspect-ratio: 4 / 4.4; }
}
@media (max-width: 420px) {
	.deya-team { margin-top: 32px; gap: 36px 16px; }
	.deya-team__name { font-size: 22px; }
	.deya-team__logo { margin-top: 48px; }
}
