/* Homepage photograph framing. */
.home .home-photo { border-radius: 28px; overflow: hidden; }
.home .home-photo > img { -webkit-user-drag: none; }
.home .hero__photo > img { object-position: 68% 10%; }
.home .hero__minis .teacher-copy > span { font-size: inherit; font-weight: inherit; line-height: inherit; }
.home .teacher-logos { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-block: 4px 6px; }
.home .teacher-logo { display: flex; flex: 0 0 auto; min-width: 0; align-items: center; justify-content: center; padding: 0; background: transparent; line-height: 0; }
.home .teacher-logo img { display: block; width: 100%; max-width: none; height: auto; object-fit: contain; -webkit-user-drag: none; }
.home .teacher-logo--yandex { width: 31.5%; max-width: 101px; }
/* Match the BANK lettering to Yandex's lowercase height, then align their baselines. */
.home .teacher-logo--tbank { width: 44.64%; max-width: 143.2px; transform: translateY(6%); }
.home .teacher-logo--t2 { width: 12.66%; max-width: 40.6px; transform: translateY(-15%); }
.home .portfolio-block {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 2vw, 30px) clamp(24px, 3vw, 44px);
  padding: clamp(28px, 3vw, 44px) clamp(24px, 3.5vw, 50px) 0;
  overflow: hidden;
}
.home .portfolio-block__title { grid-area: 1 / 1 / 2 / -1; z-index: 1; font-size: clamp(30px, 3vw, 42px); }
.home .portfolio-block > .block__content { grid-area: 2 / 1 / 3 / 2; padding-bottom: clamp(30px, 3.1vw, 44px); }
.home .portfolio-block .res-list { gap: clamp(14px, 1.4vw, 20px); margin-top: 0; }
.home .portfolio-block .res-list li { padding: clamp(15px, 1.4vw, 20px) clamp(16px, 1.65vw, 24px); }
.home .portfolio-block .res-list b { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.25; }
.home .portfolio-block .res-list span { display: block; margin-top: 5px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.48; }
.home .portfolio-block .res-check { flex: 0 0 28px; width: 28px; height: 28px; margin-top: 0; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.home .portfolio-student {
  position: relative;
  grid-area: 1 / 2 / 3 / 3;
  place-self: end center;
  width: min(calc(100% + 24px), 580px);
  aspect-ratio: 920 / 1060;
  overflow: hidden;
}
.home .portfolio-student img { position: absolute; inset: 0 auto auto 0; width: 100%; height: auto; -webkit-user-drag: none; }
@media (max-width: 1100px) {
  .home .portfolio-block { grid-template-columns: minmax(0, 1fr); }
  .home .portfolio-block__title, .home .portfolio-block > .block__content, .home .portfolio-student { grid-area: auto; }
  .home .portfolio-block > .block__content { padding-bottom: 0; }
  .home .portfolio-student { width: min(calc(100% + 24px), 520px); }
}
@media (max-width: 720px) {
  .home .home-photo { border-radius: 24px; }
  .home .portfolio-block .res-list li { gap: 12px; }
  .home .portfolio-block .res-check { flex-basis: 22px; width: 22px; height: 22px; }
}
