@media (max-width: 768px) {
  .services-section {
    min-height: auto;
    padding-bottom: 44px;
  }

  .services-section__overlay {
    display: none;
    background: none;
  }

  .services-section__inner {
    display: block;
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 24px;
  }

  .services-section__intro {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    padding-top: 0;
    text-align: center;
    transform: none;
  }

  .services-section__eyebrow {
    justify-content: center;
    margin-inline: auto;
    font-size: 11px;
    letter-spacing: 0.32em;
    transform: translateX(-10px);
  }

  .services-section__eyebrow span {
    width: 42px;
  }

  .services-section__title {
    font-size: clamp(40px, 11vw, 56px);
    font-weight: 700;
    letter-spacing: 0.015em;
    text-align: center;
  }

  .services-section__lead {
    margin-right: auto;
    margin-left: auto;
    margin-top: 26px;
    font-size: 16px;
    line-height: 1.55;
    text-align: center;
  }

  .services-section__cta {
    width: min(100%, 300px);
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
    margin-top: 30px;
  }

  .services-section__cards {
    display: flex;
    gap: 16px;
    margin: 42px -18px 0;
    padding: 4px 18px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-left: 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .services-section__cards::-webkit-scrollbar {
    display: none;
  }

  .services-card {
    flex: 0 0 min(72vw, 270px);
    min-height: 250px;
    padding: 22px 18px 20px;
    scroll-snap-align: start;
  }

  .services-card__title {
    min-height: 38px;
    margin-top: 24px;
    font-size: 21px;
    line-height: 1.08;
  }

  .services-card__text {
    min-height: 82px;
    margin-top: 10px;
    margin-bottom: 18px;
    font-size: 13.5px;
    line-height: 1.48;
  }

  .services-card__action {
    min-height: 36px;
    padding: 0 11px 0 13px;
    border-radius: 11px;
    font-size: 11.5px;
  }

  .service-modal {
    padding: 18px;
  }

  .service-modal__dialog {
    width: 100%;
    max-height: 86vh;
    overflow: hidden;
    border-radius: 22px;
  }

  .service-modal__content {
    max-height: 86vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 62px 24px 28px 20px;
  }

  .service-modal__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    margin: 0;
  }

  .service-modal__content::-webkit-scrollbar {
    width: 6px;
  }

  .service-modal__title {
    font-size: clamp(26px, 7.6vw, 34px);
    font-weight: 700;
    line-height: 1.1;
  }

  .service-modal__lead {
    font-size: 16px;
  }

  .service-modal__list {
    grid-template-columns: 1fr;
  }

  .team-section {
    padding: 64px 0 72px;
  }

  .team-section::before {
    display: none;
    background: none;
  }

  .team-section__inner {
    width: calc(100% - 36px);
  }

  .team-section__header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team-section__copy {
    max-width: 100%;
    text-align: center;
  }

  .team-section__eyebrow {
    justify-content: center;
    margin-bottom: 16px;
    margin-right: auto;
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 0.32em;
  }

  .team-section__eyebrow span {
    width: 42px;
  }

  .team-section__title {
    font-size: clamp(34px, 9.5vw, 48px);
    font-weight: 720;
    letter-spacing: 0.005em;
    line-height: 0.98;
  }

  .team-section__lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.58;
  }

  .team-section__accent {
    margin-top: 12px;
    font-size: 16px;
  }

  .team-section__signal {
    width: 100%;
    max-width: 320px;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-inline: auto;
    padding: 20px 22px;
    border-radius: 20px;
    text-align: center;
  }

  .team-section__signal .team-section__signal-line--green {
    color: #7cff00;
  }

  .team-section__signal .team-section__signal-line--cyan {
    color: #23dfff;
  }

  .team-section__signal .team-section__signal-line--purple {
    color: #b65cff;
  }

  .team-grid {
    grid-auto-columns: minmax(282px, 86vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 36px -18px 0;
    padding: 4px 18px 18px;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 22px,
      #000 calc(100% - 22px),
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 22px,
      #000 calc(100% - 22px),
      transparent 100%
    );
    overscroll-behavior-x: contain;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .team-grid::-webkit-scrollbar {
    display: none;
  }

  .team-card {
    width: 100%;
    min-width: 0;
    min-height: 500px;
    justify-content: flex-end;
    padding: 20px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .team-card::before {
    top: 20px;
    left: 22px;
    width: 42px;
    z-index: 4;
  }

  .team-card__media {
    inset: 38px 18px auto;
    z-index: 1;
    height: 250px;
    min-height: 0;
    margin: 0;
  }

  .team-card__media::after {
    right: -18px;
    bottom: -34px;
    left: -18px;
    height: 126px;
  }

  .team-card__media img {
    width: min(88%, 270px);
    height: 100%;
    max-height: 250px;
  }

  .team-card--rilaine .team-card__media img,
  .team-card--rilaine:hover .team-card__media img {
    object-position: center top;
    transform: translateY(4px) scale(0.96);
  }

  .team-card__content {
    position: relative;
    z-index: 3;
    display: grid;
    align-content: start;
    padding-top: 228px;
  }

  .team-card__role {
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .team-card__name {
    height: 46px;
    line-height: 1;
  }

  .team-card__name-svg {
    width: min(100%, 190px);
    height: 46px;
  }

  .team-card__name-svg--wide {
    width: min(100%, 225px);
  }

  .team-card__name-svg text {
    font-size: 42px;
    letter-spacing: -2.2px;
  }

  .team-card__name::after {
    width: 44px;
    bottom: -14px;
  }

  .team-card__text {
    max-width: 100%;
    margin-top: 28px;
    min-height: auto;
    font-size: 13px;
    line-height: 1.55;
  }

  .team-card__tags {
    gap: 8px;
    margin-top: 16px;
    padding-top: 0;
  }

  .team-card__tag {
    gap: 6px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .team-card__tag-dot {
    width: 6px;
    height: 6px;
  }

  .team-value {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
    padding: 22px;
    border-radius: 22px;
  }

  .team-value__main {
    justify-content: flex-start;
    gap: 16px;
  }

  .team-value__icon--puzzle {
    width: 70px;
    height: 70px;
  }

  .team-value__copy {
    text-align: left;
  }

  .team-value__copy strong {
    font-size: 17px;
  }

  .team-value__copy span {
    font-size: 14px;
  }

  .team-value__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .team-value__item {
    min-height: 92px;
    padding: 14px 10px;
    font-size: 12px;
  }

  .team-value__item + .team-value__item {
    border-left: 0;
  }

  .team-value__item:nth-child(2n) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .team-value__item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .team-value__item-icon {
    width: 32px;
    height: 32px;
  }

}

@media (max-width: 420px) {
  .team-grid {
    grid-auto-columns: minmax(270px, 88vw);
    gap: 14px;
    padding-bottom: 16px;
  }

  .team-card {
    min-height: 480px;
    padding: 18px;
  }

  .team-card__media {
    inset: 36px 16px auto;
    height: 230px;
  }

  .team-card__media::after {
    right: -16px;
    left: -16px;
    height: 118px;
  }

  .team-card__media img {
    width: min(88%, 255px);
    max-height: 235px;
  }

  .team-card__content {
    padding-top: 220px;
  }

  .team-card__text {
    font-size: 12.5px;
  }

  .team-value__items {
    grid-template-columns: 1fr;
  }

  .team-value__item:nth-child(2n) {
    border-left: 0;
  }

  .team-value__item:nth-child(n + 2) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}
