.block-people {
  padding: 60px 0;
}

.block-people__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.block-people__header {
  text-align: center;
}

.block-people__title {
  margin: 0;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--tg-color-primary-black, #000000);
}

.block-people__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.block-people__item {
  display: block;
}

.block-people__card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 1px -4px 29.7px 0px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.block-people__card:hover {
  transform: translateY(-4px);
  box-shadow: 1px -4px 40px 0px rgba(0, 0, 0, 0.16);
}

.block-people__card-image {
  border-radius: 16px;
  overflow: hidden;
}

.block-people__card-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}

.block-people__card-image--clickable {
  cursor: pointer;
}

.block-people__card-image--clickable:hover img {
  transform: scale(1.05);
}

.block-people__card-content {
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.block-people__card-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.block-people__card-logo img {
  max-width: 140px;
  max-height: 50px;
  -o-object-fit: contain;
     object-fit: contain;
}

.block-people__card-name {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tg-color-primary-black, #1a1a2e);
}

.block-people__card-name--clickable {
  cursor: pointer;
  transition: color 0.2s ease;
}

.block-people__card-name--clickable:hover {
  color: var(--tg-color-primary-orange, #F5A623);
}

.block-people__card-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: var(--tg-color-primary-black, #000000);
  margin: 0;
}

.block-people__card-title--clickable {
  cursor: pointer;
  transition: color 0.2s ease;
}

.block-people__card-title--clickable:hover {
  color: var(--tg-color-primary-orange, #F5A623);
}

.block-people__card-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--tg-color-grey-600, #666666);
  margin: 0;
}

.block-people__card-text p {
  margin: 0;
}

.block-people__card-read-more {
  background: none;
  border: none;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--tg-color-primary-orange, #F5A623);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
  align-self: flex-start;
}

.block-people__card-read-more:hover {
  gap: 8px;
}

.block-people__card-read-more-arrow {
  font-size: 20px;
  line-height: 1;
}

.block-people__card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 8px;
}

.block-people__card-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--tg-color-primary-orange, #F5A623);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.block-people__card-button:hover {
  background: var(--tg-color-primary-orange-dark, #e09515);
  transform: translateY(-2px);
}

.block-people__card-button svg {
  flex-shrink: 0;
}

.block-people__card-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #0077B5;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.block-people__card-linkedin:hover {
  background: #005885;
  transform: translateY(-2px);
}

.block-people__card-linkedin svg {
  flex-shrink: 0;
}

.block-people__dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 700px;
  width: calc(100% - 48px);
  max-height: calc(100vh - 48px);
  border: none;
  border-radius: 16px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.block-people__dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.block-people__dialog[open] {
  animation: dialogFadeIn 0.3s ease;
}

.block-people__dialog-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.block-people__dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--tg-color-primary-black, #000000);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.block-people__dialog-close:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.block-people__dialog-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.block-people__dialog-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.block-people__dialog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.block-people__dialog-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.block-people__dialog-logo img {
  max-width: 140px;
  max-height: 50px;
  -o-object-fit: contain;
     object-fit: contain;
}

.block-people__dialog-name {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tg-color-primary-black, #1a1a2e);
}

.block-people__dialog-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tg-color-primary-black, #1a1a2e);
  margin: 0;
}

.block-people__dialog-short-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--tg-color-grey-600, #666666);
}

.block-people__dialog-full-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--tg-color-grey-700, #444444);
}

.block-people__dialog-full-text p {
  margin: 0 0 16px;
}

.block-people__dialog-full-text p:last-child {
  margin-bottom: 0;
}

.block-people__dialog-full-text ul,
.block-people__dialog-full-text ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.block-people__dialog-full-text li {
  margin-bottom: 8px;
}

@keyframes dialogFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 1023px) {
  .block-people {
    padding: 40px 0;
  }

  .block-people__title {
    font-size: 32px;
  }

  .block-people__title br {
    display: none;
  }
}

@media (max-width: 992px) {
  .block-people__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .block-people__grid {
    grid-template-columns: 1fr;
  }
}